Algorithm Analysis
Study notes are awaiting editorial approval. You can still practise the reviewed questions below.
Related previous-year questions
Practise this topic- 2026 · Consider the following recurrence relations: For all $n > 1$, $T_1(n) = 4T_1\left(\frac{n}{2}\right) + T_2(n)$ $T_2(n) = 5T_2\left(\frac{n}{4}\right)
- 2026 · Consider the following functions, where $n$ is a positive integer. $n^{1/3}, \quad \log(n), \quad \log(n!), \quad 2^{\log(n)}$ Which one of the foll
- 2026 · Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity $\Theta(n)$?
- 2026 · 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
- 2025 · Consider the following recurrence relation: $T(n) = 2T(n - 1) + n2^n$ for $n > 0$, $T(0) = 1$. Which ONE of the options is CORRECT?
- 2025 · An array $A$ of length $n$ with distinct elements is said to be bitonic if there is an index $1 \le i \le n$ such that $A[1 \dots i]$ is sorted in the
- 2024 · Given an integer array of size N, we want to check if the array is sorted (in either ascending or descending order). An algorithm solves this problem
- 2024 · Consider the following recurrence relation: $$T(n) = \begin{cases} \sqrt{n}T(\sqrt{n}) + n & \text{for } n \ge 1, \\ 1 & \text{for } n = 1. \end{cases
- 2023 · Let $f$ and $g$ be functions of natural numbers given by $f(n) = n$ and $g(n) = n^2$. Which of the following statements is/are TRUE?
- 2023 · Consider functions `Function_1` and `Function_2` expressed in pseudocode as follows: ```text Function_1 while n > 1 do for i = 1 to n do x = x
- 2022 · Which one of the following statements is TRUE for all positive functions $f(n)$?
- 2021 · Consider the following three functions. $$f_1 = 10^n \qquad f_2 = n^{\log n} \qquad f_3 = n^{\sqrt{n}}$$ Which one of the following options arranges t