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 16–20 of 40

Q16GATE 2015 (Session 3)1 markMCQ−0.33 if wrong
Consider the equality ∑i=0ni3=X\sum_{i=0}^{n}i^{3}=X and the following choices for X
I.Θ(n4)\Theta (n^{4})
II. Θ(n5)\Theta (n^{5})
III. O(n5)O (n^{5})
IV. Ω(n3)\Omega (n^{3})
The equality above remains correct if X is replaced by

Q17GATE 2015 (Session 3)2 marksMCQ−0.67 if wrong
Let f(n)=nf(n)=n and g(n)=n1+sin  ng(n)=n^{1+sin \; n} where n is a positive integer. Which of the following statements is/are correct?
I. f(n)=O(g(n))f(n)=O(g(n))
II. f(n)=Ω(g(n))f(n)= \Omega (g(n))

Q18GATE 20132 marksMCQ−0.67 if wrong
Consider the following function:
 int unknown(int n){
   int i, j, k=0;
   for (i=n/2; i<=n; i++)
        for (j=2; j<=n; j=j*2)
             k = k + n/2;
    return (k);
} 
The return value of the function is

Q19GATE 20121 markMCQ−0.33 if wrong
Let W(n) and A(n) denote respectively, the worst case and average case running time of an algorithm executed on an input of size n. Which of the following is ALWAYS TRUE?

Q20GATE 20112 marksMCQ−0.67 if wrong
Which of the given options provides the increasing order of asymptotic complexityoffunctions f1, f2, f3 and f4?

f1(n)=2n;f_{1}(n)=2^{n};
f2(n)=n3/2;f_{2}(n)=n^{3/2};
f3(n)=nlog2n;f_{3}(n)=nlog_{2}n;
f4(n)=nlog2nf_{4}(n)=n^{log_{2}n}

Keep practising

Topics in Algorithms

All CS topics ›