Asymptotic Notation: GATE CS Previous Year Questions

Asymptotic Notation · Algorithms

40 questions · asked in 21 of 27 years (2000–2026)

MCQ 37 · MSQ 2 · NAT 11-mark 27 · 2-mark 13

2000Questions per year2026

Questions 6–10 of 40

Q6GATE 20221 markMCQ−0.33 if wrong
Which one of the following statements is TRUE for all positive functions f(n)f(n)?

Q7GATE 2021 (Session 1)1 markMCQ−0.33 if wrong
Consider the following three functions.

f1=10n  f2=nlog⁡n  f3=nnf_1=10^n\; f_2=n^{\log n}\;f_3=n^{\sqrt {n}}

Which one of the following options arranges the functions in the increasing order of asymptotic growth rate?

Q8GATE 20192 marksMCQ−0.67 if wrong
There are n unsorted arrays: A1,A2,...,AnA_1,A_2,...,A_n. Assume that n is odd. Each of A1,A2,...,AnA_1,A_2,...,A_n contains n distinct elements. There are no common elements between any two arrays. The worst-case time complexity of computing the median of the medians of A1,A2,...,AnA_1,A_2,...,A_n is ________ .

Q9GATE 2017 (Session 1)1 markMCQ−0.33 if wrong
Consider the following functions from positive integers to real numbers:

10,n,n,log2n,100n10,\sqrt{n},n, log_{2}n,\frac{100}{n}.

The CORRECT arrangement of the above functions in increasing order of asymptotic complexity is:

Q10GATE 2017 (Session 2)1 markMCQ−0.33 if wrong
Match the algorithms with their time complexities:
Algorithm Time complexity P. Towers of Hanoi with n disks i. θ(n2) Q. Binary search given n sorted numbers ii. θ(n log n) R. Heap sort given n numbers at the worst case iii. θ(2n) S. Addition of two n × n matrices iv. θ(log n)

Keep practising

Topics in Algorithms

All CS topics ›