chapter
    Asymptotic Analysis and Recurrence Relations PYQs for GATE CS

    Solve 12+ Asymptotic Analysis and Recurrence Relations previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    2026 Slot Set2 PYQ
    Consider the following functions, where is a positive integer.


    Which one of the following options lists the functions in increasing order of asymptotic growth rate?

    Note: Assume the base of log to be 2.
    Question 2
    2026 Slot Set2 PYQ

    Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity ?

    Question 3
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following recurrence relations:

    For all ,


    Assume that for all , and .

    Which one of the following options is correct?
    Question 4
    2025 Slot Set1 PYQ
    Consider the following recurrence relation:



    Which ONE of the following options is CORRECT?
    Question 5
    2024 Slot Set2 PYQ

    Let be the recurrence relation defined as follows:

    Which one of the following statements is TRUE?

    Question 6
    2024 Slot Set1 PYQ
    Level 3: Exam Standard

    Consider the following recurrence relation:

    Which one of the following options is CORRECT?

    Question 7
    2023 PYQ
    Let and be functions of natural numbers given by and .
    Which of the following statements is/are TRUE?
    Question 8
    2023 PYQ
    Level 3: Exam Standard
    Consider functions Function 1 and Function 2 expressed in pseudocode as follows:

    Function 1
    while n>1 do
       for to do
          
       end for
       
    end while

    Function 2
    for to do
       
    end for

    Let and denote the number of times the statement “” is executed in Function 1 and Function 2, respectively.

    Which of the following statements is/are TRUE?
    Question 9
    2022 PYQ

    Which one of the following statements is TRUE for all positive functions ?

    Question 10
    2021 Slot Set2 PYQ
    For constants and , consider the following recurrence defined on the non-negative integers:


    Which one of the following options is correct about the recurrence ?
    Free preview ends here

    Login to view the complete previous-year questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Asymptotic Analysis and Recurrence Relations PYQs for GATE CS

    Solve 12+ Asymptotic Analysis and Recurrence Relations previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Anatomy of an Algorithmic Recurrence

    Anatomy of an Algorithmic Recurrence

    An algorithmic recurrence relation expresses the running time of a recursive algorithm in terms of the running time on smaller inputs.

    1. Base Case

    The time complexity for the smallest possible input size (e.g., ).

    2. Recursive Step

    Time for input , expressed as the sum of time to solve smaller subproblems and time to divide/combine.

    Merge Sort:

    The Substitution Method for Recurrences

    The Substitution Method

    Guess the asymptotic bound, then verify using mathematical induction.

    Step 1 & 2: Guess and verify base case.
    Step 3: Inductive step for .

    Since , , proving .

    Asymptotic Analysis and Recurrence Relations: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Algorithms · 2026_Set2 MCQ
    Consider the following functions, where is a positive integer.


    Which one of the following options lists the functions in increasing order of asymptotic growth rate?

    Note: Assume the base of log to be 2.
    1. A.

    2. B.

    3. C.

    4. D.

    Question 2 · Algorithms · 2026_Set2 MSQ

    Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity ?

    1. A.

    2. B.

    3. C.

    4. D.

    Question 3 · Algorithms · 2026_Set1 MCQ
    Consider the following recurrence relations:

    For all ,


    Assume that for all , and .

    Which one of the following options is correct?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a system of recurrence relations, recognizable because depends on the solution of .

    Why this method applies: We must solve the recurrences sequentially, starting from the one that is self-contained (), find its asymptotic bound, and then substitute that bound into the other recurrence ().

    Step 1: Solve using the Master Theorem.

    Step 2: Identify . The critical exponent is .

    Step 3: Compare the driving function with . Since grows strictly slower than any positive polynomial power of , for some .

    Step 4: By Case 1 of the Master Theorem, .

    Step 5: Substitute this into the first recurrence: .

    Step 6: Apply the Master Theorem to . Here, . The critical exponent is .

    Step 7: Compare the new driving function with . Since , we have for .

    Step 8: By Case 1 of the Master Theorem again, the root dominates, so .

    Answer: Option A is correct.

    Question 4 · Algorithms · 2025_Set1 MCQ
    Consider the following recurrence relation:



    Which ONE of the following options is CORRECT?
    1. A.

    2. B.

    3. C.

    4. D.

    Question 5 · Algorithms · 2024_Set2 MCQ

    Let be the recurrence relation defined as follows:

    Which one of the following statements is TRUE?

    1. A.

    2. B.

    3. C.

    4. D.

    Question 6 · Algorithms · 2024_Set1 MCQ

    Consider the following recurrence relation:

    Which one of the following options is CORRECT?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a recurrence relation with a square root argument, recognizable because the recursive call is .

    Why this method applies: Standard Master Theorem does not apply directly to . We must use a change of variables to transform it into a standard divide-and-conquer recurrence.

    Step 1: Let . Then .

    Step 2: Substitute this into the recurrence: .

    Step 3: Divide the entire equation by to simplify: .

    Step 4: Define a new function . The recurrence becomes .

    Step 5: This is a standard recurrence. By the Master Theorem (or simple expansion), .

    Step 6: Substitute back . We get .

    Step 7: Since , we have , which implies .

    Answer: Option A is correct.

    Question 7 · Algorithms · 2023 MSQ
    Let and be functions of natural numbers given by and .
    Which of the following statements is/are TRUE?
    1. A.

    2. B.

    3. C.

    4. D.

    Question 8 · Algorithms · 2023 MSQ
    Consider functions Function 1 and Function 2 expressed in pseudocode as follows:

    Function 1
    while n>1 do
       for to do
          
       end for
       
    end while

    Function 2
    for to do
       
    end for

    Let and denote the number of times the statement “” is executed in Function 1 and Function 2, respectively.

    Which of the following statements is/are TRUE?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["A","D"]

    Step-by-Step Solution

    Key idea: This is a loop complexity analysis question, recognizable because it provides pseudocode and asks for the asymptotic relationship between the execution counts of two functions.

    Why this method applies: We need to mathematically count the number of iterations for each loop structure and then compare their growth rates using asymptotic notation definitions.

    Step 1: Analyze Function 1. The outer while loop halves each time. The inner for loop runs times, then times, then times, and so on.

    Step 2: The total number of executions is bounded by the geometric series: .

    Step 3: Thus, .

    Step 4: Analyze Function 2. The for loop runs exactly times. Thus, , which is also .

    Step 5: Compare and . Since both are , their ratio approaches a constant (). Therefore, is TRUE.

    Step 6: Check other options. is FALSE because the limit of their ratio is not 0. is FALSE for the same reason. is TRUE because .

    Answer: Options A and D are true.

    Question 9 · Algorithms · 2022 MCQ

    Which one of the following statements is TRUE for all positive functions ?

    1. A.

      , when is a polynomial

    2. B.

    3. C.

      , when is an exponential function

    4. D.

    Question 10 · Algorithms · 2021_Set2 MCQ
    For constants and , consider the following recurrence defined on the non-negative integers:


    Which one of the following options is correct about the recurrence ?
    1. A.

      If is , then is .

    2. B.

      If is , then is .

    3. C.

      If is for some , then is .

    4. D.

      If is , then is .

    More previous year questions (pyqs) in this unit