Asymptotic Worst-Case Time & Space Complexity — GATE CS Previous Year Questions
Practise GATE CS previous year questions on Asymptotic Worst-Case Time & Space Complexity in Algorithms. Filter by year, marks and question type.
Public question previews
- Consider the following recurrence relations: For all n > 1, T1(n) = 4T1(n/2) + T2(n), T2(n) = 5T2(n/4) + Θ(log2 n). Assume that for all n <= 1, T1(n) = 1 and T2(n) = 1. Which one of the following options is correct? (2026 · 1 mark · MCQ)
- Consider the following functions, where n is a positive integer. n^(1/3), log(n), log(n!), 2^log(n) 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. (2026 · 1 mark · MCQ)
- Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity Θ(n)? (2026 · 1 mark · MSQ)
- Consider an array A of integers of size n. The indices of A run from 1 to n. An algorithm is to be designed to check whether A satisfies the condition given below. ∀i,j ∈ {1, … , n - 1} such that i > j, (A[i + 1] - A[i]) > (A[j + 1] - A[j]) Which one of the following gives the worst case time complexity of the fastest algorithm that can be designed for the problem? (2026 · 2 marks · MCQ)
- Consider the following recurrence relation: T(n) = 2T(n - 1) + n 2^n for n > 0, T(0) = 1. Which ONE of the following options is CORRECT? (2025 · 1 mark · MCQ)