Engineering & Science
GATE Computer Science
Mad4Study — GATE Computer Science Solved Questions & Revision Notes
https://mad4study.com
- GATE CS
- 2026–27 pattern practice
- Algorithms
- Big-O notation
- Medium
Which of the following statements is true?
Asymptotic Analysis
Pick an option to check your answer.
Answer: B. Solution
By Stirling's approximation, log(n!)=nlogn−n+O(logn). Directly:
- Upper bound: n!≤nn⇒log(n!)≤nlogn.
- Lower bound: the largest 2n factors are each ≥2n, so n!≥(2n)n/2⇒log(n!)≥2nlog2n.
Both bounds are Θ(nlogn).
Why not the others
- n2=O(nlogn) is false: nlognn2=lognn→∞.
- 22n=O(2n) is false: 2n22n=2n→∞.
- n!=O(2n) is false: n! outgrows 2n since each new factor exceeds 2 for n≥3.
mad4study.com/exams/gate-cs/questions/gate-cs-2026-q001
Report an error
More practice questions in Big-O notation
GATE CS · Algorithms · Asymptotic Analysis
For interactive CBT mock test, OMR practice, and full syllabus notes, visit https://mad4study.com