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
    Level 3: Exam Standard
    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
    Level 3: Exam Standard

    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
    Level 3: Exam Standard
    Consider the following recurrence relation:



    Which ONE of the following options is CORRECT?
    Question 5
    2024 Slot Set2 PYQ
    Level 3: Exam Standard

    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
    Level 3: Exam Standard
    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
    Level 3: Exam Standard

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

    Question 10
    2021 Slot Set2 PYQ
    Level 3: Exam Standard
    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.

    Explore complete test series, official past papers, and chapter-wise study tools.

    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.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: This is a growth hierarchy question. We must simplify the expressions using logarithmic properties and Stirling's approximation, then order them from slowest to fastest growing.

    Exam route:

    1. Simplify : Since the base of log is 2, .
    2. Simplify : By Stirling's approximation, .
    3. List the simplified functions: , , , .
    4. Order them using the standard hierarchy: .
    5. Map back to original forms: .

    Learning route:

    We analyze the asymptotic growth of each function:

    • : Logarithmic growth. This is the slowest among the choices.
    • : Fractional polynomial growth. Any (for ) grows strictly faster than . So .
    • : Assuming base 2, . This is linear growth. Linear growth is strictly faster than any fractional polynomial, so .
    • : Using Stirling's approximation, . Taking the log gives . This grows strictly faster than linear .

    Combining these, the increasing order is: .

    Substituting the original expressions back: .

    Answer: A

    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.

    Correct Answer:

    ["A","B"]

    Step-by-Step Solution

    Insight: This question requires determining the asymptotic complexity of four different recurrences and selecting those that evaluate to .

    Exam route:

    1. Option A: . This is a simple linear loop. Unrolling gives . TRUE.
    2. Option B: . Master Theorem: . Critical function . . Case 1 applies. . TRUE.
    3. Option C: . Master Theorem: . Matches critical function . Case 2 applies. . FALSE.
    4. Option D: . Unrolling gives sum of first integers: . FALSE.

    Learning route:

    We analyze each recurrence individually:

    • For , the algorithm performs 1 unit of work and reduces the problem size by 1. This takes exactly steps, so .
    • For , the problem is divided into 2 subproblems of half the size, with 1 unit of overhead. By the Master Theorem, since the overhead is polynomially smaller than the critical function , the leaves dominate. The number of leaves is , so .
    • For , the overhead matches the critical function . The work is balanced across levels, yielding .
    • For , the work at each step is proportional to . Unrolling yields .

    Answer: A, B

    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.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: This is a non-standard linear recurrence. The presence of and the coefficient $2$ suggest dividing the entire recurrence by to simplify it into a summable form.

    Exam route:

    1. Divide by :

    .

    1. Let . The recurrence becomes .
    2. Unroll : .
    3. Back-substitute: .

    Learning route:

    The recurrence is with .

    We can solve this using the substitution method (change of variables). We divide both sides by :

    Let . Then .

    The recurrence simplifies to .

    This is a simple arithmetic progression. Unrolling it gives:

    Since , .

    Finally, we substitute back :

    Answer: A

    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.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: This is a linear homogeneous recurrence relation. The key is to find the characteristic roots, but crucially, you must apply the initial conditions because they might zero out the dominant root.

    Exam route:

    1. Write the characteristic equation for :

    .

    1. Find the roots: .
    2. Write the general solution: .
    3. Apply initial conditions to find and :

    1. Solve the system: Multiply the first equation by 2 to get . Subtract this from the second equation: .
    2. Substitute back into the first equation: .
    3. The exact solution is .
    4. Therefore, .

    Learning route:

    The recurrence is a second-order linear homogeneous recurrence with constant coefficients.

    The standard method is to assume a solution of the form . Substituting this into the recurrence yields the characteristic equation .

    The roots are and . Because the roots are distinct, the general solution is a linear combination: .

    A common trap is to immediately conclude that since , the term will dominate, making . However, this assumes .

    We must use the initial conditions and to find the constants.

    .

    .

    Solving this system yields and .

    Because the coefficient of the dominant root is exactly zero, the term vanishes entirely. The sequence is simply , which is .

    Answer: A

    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.

    Correct Answer:

    ["A","C"]

    Step-by-Step Solution

    Insight: This is a foundational asymptotic notation question. We evaluate the definitions of Big-O, Big-Omega, little-o, and Big-Theta for and .

    Exam route:

    1. Check Big-O: is true for . So .
    2. Check Big-Omega: , which fails for large . So .
    3. Check little-o: . So .
    4. Check Big-Theta: Requires both Big-O and Big-Omega. Since , .

    Learning route:

    The definition of requires for sufficiently large . For and , we can choose and , satisfying the condition. Thus, is TRUE.

    The definition of requires . This would mean , or . No positive constant can satisfy this for all . Thus, is FALSE.

    The definition of means . Here, . Thus, is TRUE.

    The definition of requires both and . Since the latter is false, is FALSE.

    Answer: A, C

    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.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: This is an asymptotic verification question. To determine if a statement holds for "all positive functions", we must test it against different function classes: polynomials, exponentials, and decreasing functions.

    Exam route:

    1. Test Option A: Let (a polynomial). Then and . The ratio is exactly 1, so . This holds for all positive polynomials.
    2. Test Option B: Let . Then and . The ratio is 1, not 0. Thus, .
    3. Test Option C: Let (an exponential). Then and . The ratio is . Thus, .
    4. Test Option D: Let (a positive decreasing function). Then and . The ratio is . Thus, .

    Learning route:

    The statement must be universally true for the specified class of functions.

    For Option A, any positive polynomial (with ) has the property that is dominated by and is dominated by . Since both are , their ratio approaches a non-zero constant (), proving .

    Options B, C, and D fail because they make universal claims that are easily broken by choosing a specific counterexample from a different function class.

    Answer: A

    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 .

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: This is a direct application of the Master Theorem for divide-and-conquer recurrences. We must match the given conditions to the three standard cases.

    Exam route:

    1. Recall the Master Theorem for . The critical function is .
    2. Option A: . This doesn't cleanly fit Case 2 unless , but even then it yields , not .
    3. Option B: . must be at least , so it cannot be .
    4. Option C: . This is the exact statement of Case 1 (leaves dominate). Thus . TRUE.
    5. Option D: . This is Case 2 (balanced), which yields , not .

    Learning route:

    The Master Theorem applies to recurrences of the form . We compare to the critical function .

    • Case 1: If for some , the leaves dominate, and . Option C matches this exactly.
    • Case 2: If for , the work is balanced. For , , the solution is . Option D misses the extra factor.
    • Option A and B represent functions that either fall into the "gaps" where the Master Theorem fails or result in different complexities. For instance, is always bounded below by , making Option B's impossible when .

    Answer: C

    More previous year questions (pyqs) in this unit