GATE CS 2021 Set 2 | Question 49

Algorithms › Algorithm Analysis · MCQ · 2 marks · Answer: C

  1. Question 49Algorithmsmcq2 marks
    For constants and , consider the following recurrence defined on the non-negative integers:
    Which one of the following options is correct about the recurrence ?
    • A.
      If is , then is .
    • B.
      If is , then is .
    • C.
      If is for some , then is .
      ✓
    • D.
      If is , then is .

    Answer: C

    Solution

    This is Master theorem Case 1: if then — option (C). (Case 2 with gives an extra factor, so (D) is wrong.)

More GATE PYQ on Algorithm Analysis

All GATE CS Algorithms PYQ →

Attempt GATE CS 2021 Set 2 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →