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.
Solve 12+ Asymptotic Analysis and Recurrence Relations previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.
Answer it here to see how it works. Nothing is recorded until you sign in.
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.
Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.
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.
We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.
Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.
Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.
Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.
No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.
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.
Solve 12+ Asymptotic Analysis and Recurrence Relations previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.
An algorithmic recurrence relation expresses the running time of a recursive algorithm in terms of the running time on smaller inputs.
The time complexity for the smallest possible input size (e.g., ).
Time for input , expressed as the sum of time to solve smaller subproblems and time to divide/combine.
Merge Sort:
Guess the asymptotic bound, then verify using mathematical induction.
Since , , proving .
Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity ?
A
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.
Let be the recurrence relation defined as follows:
Which one of the following statements is TRUE?
Consider the following recurrence relation:
Which one of the following options is CORRECT?
A
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.
["A","D"]
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.
Which one of the following statements is TRUE for all positive functions ?