Algorithm Analysis questions

Q17

GATE CS 2026 CS-1Algorithm AnalysisMCQ1 mark−1/3 if wrong
Consider the following recurrence relations:
For all n>1n > 1,
T1(n)=4T1(n2)+T2(n)T_1(n) = 4T_1\left(\frac{n}{2}\right) + T_2(n)
T2(n)=5T2(n4)+Θ(log⁡2n)T_2(n) = 5T_2\left(\frac{n}{4}\right) + \Theta(\log_2 n)

Assume that for all n≤1n \le 1, T1(n)=1T_1(n) = 1 and T2(n)=1T_2(n) = 1.
Which one of the following options is correct?
Show answer without attempting

Answer: A

Q24

GATE CS 2026 CS-2Algorithm AnalysisMCQ1 mark−1/3 if wrong
Consider the following functions, where nn is a positive integer.

n1/3,log⁡(n),log⁡(n!),2log⁡(n)n^{1/3}, \quad \log(n), \quad \log(n!), \quad 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.
Show answer without attempting

Answer: A

Q25

GATE CS 2026 CS-2Algorithm AnalysisMSQ1 mark
Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity Θ(n)\Theta(n)?
More than one option can be correct.
Show answer without attempting

Answer: A, B

Q38

GATE CS 2026 CS-2Algorithm AnalysisMCQ2 marks−2/3 if wrong
Consider an array AA of integers of size nn. The indices of AA run from 1 to nn. An algorithm is to be designed to check whether AA satisfies the condition given below.

∀i,j∈{1,…,n−1}\forall i, j \in \{1, \dots, n - 1\} such that i>ji > j, (A[i+1]−A[i])>(A[j+1]−A[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?
Show answer without attempting

Answer: A

0/40 correct0 marks

Related topics in Algorithms