1
GATE CSE 2026 Set 1
MCQ (Single Correct Answer)
+1
-0

Consider the following recurrence relations:

For all $n>1$,

$$ \begin{aligned} & T_1(n)=4 T_1\left(\frac{n}{2}\right)+T_2(n) \\ & T_2(n)=5 T_2\left(\frac{n}{4}\right)+\theta\left(\log _2 n\right) \end{aligned} $$

Assume that for all $n \leq 1, T_1(n)=1$ and $T_2(n)=1$. Which one of the following options is correct?

A

$T_1(n)=\theta\left(n^2\right)$

B

$T_1(n)=\theta\left(n^2 \log _2 n\right)$

C

$T_1(n)=\theta\left(n^{\log _4 5}\right)$

D

$T_1(n)=\theta\left(n^{\log _4 5} \log _2 n\right)$

2
GATE CSE 2021 Set 2
MCQ (Single Correct Answer)
+1
-0.33
Let H be a binary min-heap consisting of n elements implemented as an array. What is the worst case time complexity of an optimal algorithm to find the maximum element in H?
A
θ(log n)
B
θ(n)
C

θ(1)

D
θ(n log n)
3
GATE CSE 2021 Set 2
MCQ (Single Correct Answer)
+1
-0.33
What is the worst-case number of arithmetic operations performed by recursive binary search on a sorted array of size n?
A
θ(n)
B
θ(√n)
C
θ(log2(n))
D
θ(n2)
4
GATE CSE 2021 Set 1
MCQ (Single Correct Answer)
+1
-0.33
A binary search tree T contains n distinct elements. What is the time complexity of picking an element in T that is smaller than the maximum element in T?
A
Θ(1)
B
Θ(n log n)
C
Θ(log n)
D
Θ(n)

GATE CSE Subjects

Browse all chapters by subject

Software Engineering
Web Technologies