Consider . By the Master Theorem, the solution is:
GATE CSE · Algorithms
Generate diverse GATE-level questions covering time and space complexity, Big-O, Theta, Omega notations, best/worst/average cases, and comparison of growth rates.
103 questions · 0 PYQs · 20 AI practice · GATE CSE 2027
Consider . By the Master Theorem, the solution is:
If and , which of the following is necessarily true?
Which one of the following functions grows the fastest as n → ∞?
Consider the function f(n) = 3n√n + 4n·logn + n + 5. Which is the tightest upper bound?
Which of the following is true? (I) n² ∈ O(n³) (II) n³ ∈ O(n²) (III) 2^(n+1) ∈ O(2^n)
Which of the following are TRUE about (little-o) notation? (Select all that apply)
(i)
(ii)
(iii)
(iv)
An algorithm processes an array and its recurrence is with . What is ?
Which of the following pairs satisfy ? (Select all that apply)
(i)
(ii)
(iii)
(iv)
Consider a recursive algorithm with recurrence . What is the value of ? (Enter the exact decimal or fraction)
An algorithm has a worst-case running time of . The tightest Big-O bound is:
Select one or more correct options. Which of the following statements are TRUE about Big-O notation?
Which of the following statements is FALSE?
The recurrence has the solution:
Which of the following are examples of algorithms in their average or worst case? (Select all that apply)
(i) Merge Sort
(ii) Heap Sort
(iii) Bubble Sort
(iv) Quick Sort (average case)
The recurrence has the solution:
The recurrence has solution:
Arrange the following functions in increasing order of growth:
(log n)^2, √n, n/log n, n
What is the time complexity of the following code snippet?
c
for (int i = 0; i < n; i++) {
for (int j = i; j < n; j++) {
// Some constant-time operation
}
}
if and only if:
Which notation gives a strict upper bound (not tight), i.e., grows strictly slower than ?
Want unlimited AI-generated Asymptotic Analysis questions?
Sign up free and practice with adaptive difficulty — Easy, Medium, Hard. New questions every session.
Start practising for free →