Time Left - 20:00 mins

GATE 2023 Algorithm Evaluation Quiz 3

Attempt now to get your rank among 169 students!

Question 1

The time required to execute the following fragment of code is _______.

Question 2

Which of the following problems cannot be solved using Dynamic Programming?

Question 3

Suppose an input set of size n is applied Quick Sort and partition always produces 9 to 1 split. Find the time complexity of such organization of data.

Question 4

Consider the following max-heap which is stored in the array.
55, 48, 51, 25, 18, 35, 24, 8, 19
Which of the following represent the max heap after one deletion?

Question 5

In Quicksort for sorting n element, Partition algorithm 10th smallest element selected with O(n) is selected always, what is the time complexity of that case?

Question 6Multiple Correct Options

Merge sort works by splitting a list of n numbers in half, sorting each half recursively, and merging the two halves.

Which of the following data structures will allow merge sort to work in O(nlogn) time? [Multiple Select Question]

Question 7

If merge sort uses 2 seconds to sort a set of 64 elements. How much time would be needed by merge sort to sort 512 elements?

Question 8

Consider the following recurrence relation :

Which of the following best describes T(n) ?

  • 169 attempts
  • 0 upvotes
  • 1 comment
Jul 5GATE & PSU CS