GATE CSE Algorithms – Time Complexity, Recurrences & Amortized Analysis Practice Test | Set 1

Questions 16-20 of 100

0% completed (0/100 answered)
Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 16

MCQ · Single Correct 1 mark

According to the Master Theorem for T(n) = a T(n/b) + f(n) with a >= 1, b > 1, if f(n) = O($n^{log_b$ a-$\epsilon}$) for some constant $\epsilon > 0$, then T(n) is:

Answers for question 16

Question 17

MCQ · Single Correct 2 mark

What is the solution to the recurrence relation T(n) = 2 T(n/2) + n log n?

Answers for question 17

Question 18

MCQ · Single Correct 2 mark

What is the solution to the recurrence relation T(n) = 4 T(n/2) + $n^2$ sqrt(n)?

Answers for question 18

Question 19

MCQ · Single Correct 1 mark

Solve the recurrence T(n) = T(n/2) + 1 with base case T(1) = 1.

Answers for question 19

Question 20

MCQ · Single Correct 1 mark

What is the asymptotic tight bound for T(n) = 2 T(n/2) + n?

Answers for question 20
Scroll to Top