chapter

    Asymptotic Analysis and Recurrence Relations Practice Questions for Gate Cs

    Solve 322+ Asymptotic Analysis and Recurrence Relations practice 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
    Level 1: Warm-up

    Consider the following recurrence relations:

    How many of these recurrences can be directly solved using the standard Master Theorem without falling into its failure cases or requiring a change of variables?

    Question 2
    Level 1: Warm-up

    How many of the following statements are TRUE for and ?

    Question 3
    Level 1: Warm-up

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

    Question 4
    Level 1: Warm-up

    Which of the following sequences of functions are listed in strictly increasing order of asymptotic growth rate?

    Question 5
    Level 1: Warm-up

    What is the minimum integer value of such that the Master Theorem can be directly applied to the recurrence without violating the polynomial gap conditions?

    Question 6
    Level 1: Warm-up

    Consider the recurrence . Which of the following statements is TRUE regarding the asymptotic bound?

    Question 7
    Level 1: Warm-up

    Match the recurrence relation in List I with the correct Master Theorem case in List II by eliminating the incorrect cases.

    List I:

    List II:

    P. Case 1 (Leaves dominate)

    Q. Case 2 (Balanced)

    R. Case 3 (Root dominates)

    Question 8
    Level 1: Warm-up

    Reverse-engineer the applicability of the Master Theorem. How many of the following recurrences can be directly solved using the standard Master Theorem?

    Question 9
    Level 1: Warm-up

    A student asserts that the Master Theorem Case 2 applies to the recurrence for all valid integer values of . What is the minimum integer value of that proves this assertion false?

    Question 10
    Level 1: Warm-up

    Consider the recurrence . A student claims: "Since , the Master Theorem Case 1 applies, giving ." Which of the following correctly evaluates this claim?

    Free preview ends here

    Login to view the complete practice 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 Practice Questions for GATE CS

    Solve 322+ Asymptotic Analysis and Recurrence Relations practice 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 MCQ

    Consider the following recurrence relations:

    How many of these recurrences can be directly solved using the standard Master Theorem without falling into its failure cases or requiring a change of variables?

    1. A.

      1

    2. B.

      2

    3. C.

      3

    4. D.

      4

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: The Master Theorem applies when and the critical function have a polynomial gap, or match exactly with a log factor.

    Step 1: For , critical is . matches exactly. Case 2 applies. (Works)

    Step 2: For , critical is . matches with . Case 2 applies. (Works)

    Step 3: For , critical is . is smaller, but only by a logarithmic factor, not a polynomial one. Master Theorem fails. (Fails)

    Step 4: For , critical is . is polynomially larger. Case 3 applies. (Works)

    Step 5: Recurrences 1, 2, and 4 work. Total count is 3.

    Answer: C

    Question 2 · Algorithms MCQ

    How many of the following statements are TRUE for and ?

    1. A.

      1

    2. B.

      2

    3. C.

      3

    4. D.

      4

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: Big-Theta implies both Big-O and Big-Omega, while little-o requires a strictly slower growth rate.

    Step 1: Compare and . As , the term becomes negligible.

    Step 2: is TRUE because for .

    Step 3: is TRUE because for and large .

    Step 4: Since both O and hold, is TRUE.

    Step 5: is FALSE because they grow at the exact same rate (the limit of their ratio is 1, not 0).

    Step 6: Exactly 3 statements are true.

    Answer: C

    Question 3 · Algorithms MCQ

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

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: Use the standard asymptotic growth hierarchy to order functions from slowest to fastest.

    Step 1: Recall the standard hierarchy: .

    Step 2: Check Option A: . This perfectly matches the hierarchy.

    Step 3: Check Option B: Incorrectly places before .

    Step 4: Check Option C: Incorrectly places before and .

    Step 5: Check Option D: Incorrectly places before .

    Answer: Option A.

    Question 4 · Algorithms MSQ

    Which of the following sequences of functions are listed in strictly increasing order of asymptotic growth rate?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["A","B"]

    Step-by-Step Solution

    Key idea: The standard growth hierarchy orders functions from slowest to fastest: logarithmic, fractional polynomial, linear, linearithmic, polynomial, exponential.

    Step 1: Check A. . This is strictly increasing.

    Step 2: Check B. . This is strictly increasing.

    Step 3: Check C. is super-polynomial and grows faster than . The order is wrong.

    Step 4: Check D. grows faster than . The order is wrong.

    Answer: A, B

    Question 5 · Algorithms MCQ

    What is the minimum integer value of such that the Master Theorem can be directly applied to the recurrence without violating the polynomial gap conditions?

    1. A.

      -1

    2. B.

      0

    3. C.

      1

    4. D.

      2

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The Master Theorem's Case 2 applies when the driving function matches the critical function multiplied by a logarithmic factor where .

    Step 1: Identify the critical function for . Here , so the critical function is .

    Step 2: The driving function is . For Case 2 to apply, must be , which perfectly matches with .

    Step 3: If , , which is smaller than but not polynomially smaller, causing the Master Theorem to fail.

    Step 4: Therefore, the minimum integer value for that allows direct application of the Master Theorem is $0$.

    Answer: 0

    Question 6 · Algorithms MCQ

    Consider the recurrence . Which of the following statements is TRUE regarding the asymptotic bound?

    1. A.

      because the driving function is bounded above by the critical function.

    2. B.

      because the Master Theorem fails and a change of variables is required.

    3. C.

      because the driving function is bounded below by a polynomial factor.

    4. D.

      because the root dominates the recursion tree.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: When the driving function is smaller than the critical function by only a logarithmic factor, the Master Theorem fails, and a change of variables is needed.

    Step 1: Identify . The critical function is .

    Step 2: The driving function is . This is smaller than , but the difference is a logarithmic factor (), not a polynomial factor ().

    Step 3: Because the gap is not polynomial, the Master Theorem's Case 1 does not apply.

    Step 4: Using the change of variables , the recurrence transforms to , which sums to the harmonic series . Back-substituting gives .

    Answer:

    Question 7 · Algorithms MCQ

    Match the recurrence relation in List I with the correct Master Theorem case in List II by eliminating the incorrect cases.

    List I:

    List II:

    P. Case 1 (Leaves dominate)

    Q. Case 2 (Balanced)

    R. Case 3 (Root dominates)

    1. A.

      1-Q, 2-R, 3-P

    2. B.

      1-P, 2-Q, 3-R

    3. C.

      1-Q, 2-P, 3-R

    4. D.

      1-R, 2-Q, 3-P

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: Calculate the critical function for each recurrence and compare it with the driving function to eliminate incorrect cases.

    Step 1: For , . Critical function is . Since matches exactly, this is Case 2 (Q).

    Step 2: For , . Critical function is . Since is polynomially larger, this is Case 3 (R).

    Step 3: For , . Critical function is . Since is polynomially smaller, this is Case 1 (P).

    Step 4: Matching them gives 1-Q, 2-R, 3-P.

    Answer: 1-Q, 2-R, 3-P

    Question 8 · Algorithms MCQ

    Reverse-engineer the applicability of the Master Theorem. How many of the following recurrences can be directly solved using the standard Master Theorem?

    1. A.

      1

    2. B.

      2

    3. C.

      3

    4. D.

      4

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: Check each recurrence against the strict conditions of the Master Theorem, specifically looking for polynomial gaps or exact matches.

    Step 1: . Critical function is . matches exactly with . Case 2 applies. (Yes)

    Step 2: . Critical function is . is smaller by a logarithmic factor. The Master Theorem fails. (No)

    Step 3: . Critical function is . matches exactly with . Case 2 applies. (Yes)

    Step 4: . Critical function is . is polynomially smaller. Case 1 applies. (Yes)

    Step 5: Count the "Yes" answers. Recurrences 1, 3, and 4 work. The count is 3.

    Answer: 3

    Question 9 · Algorithms MCQ

    A student asserts that the Master Theorem Case 2 applies to the recurrence for all valid integer values of . What is the minimum integer value of that proves this assertion false?

    1. A.

      1

    2. B.

      2

    3. C.

      3

    4. D.

      4

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The Master Theorem requires comparing the driving function with the critical function . Case 2 only applies when they match exactly (up to log factors).

    Step 1: Identify the parameters. Here and .

    Step 2: Test the minimum valid integer . The critical function is .

    Step 3: Compare with the critical function $1$. Since is polynomially larger than $1$, Case 3 applies, not Case 2.

    Step 4: Thus, contradicts the student's assertion.

    Answer: 1

    Question 10 · Algorithms MCQ

    Consider the recurrence . A student claims: "Since , the Master Theorem Case 1 applies, giving ." Which of the following correctly evaluates this claim?

    1. A.

      True, because the driving function is bounded above by the critical function.

    2. B.

      False, the Master Theorem fails due to a logarithmic gap, and the true bound is .

    3. C.

      False, the Master Theorem fails, and the true bound is .

    4. D.

      True, because the leaves dominate the recursion tree.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The Master Theorem requires a polynomial gap between and the critical function. A logarithmic gap causes the theorem to fail.

    Step 1: Identify the critical function. For , it is .

    Step 2: Compare with . The difference is a factor of .

    Step 3: Recognize that is not a polynomial factor . Thus, Case 1 does not apply.

    Step 4: The correct resolution is the change of variables method, which yields .

    Answer: False, the Master Theorem fails due to a logarithmic gap, and the true bound is .

    More practice questions in this unit