GATE 2015 CS (CS3) – Question 37
Worst-case mergesort takes 30 seconds for input size 64. Which best approximates the maximum size sortable in six minutes?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) 512
Explanation
Model time as c n log₂n. Six minutes is twelve times thirty seconds, so the target n log₂n is 12×64×6=4608. At n=512, n log₂n=512×9=4608 exactly. Thus B is the matching size under the stated asymptotic model.
More Asymptotic Analysis and Time/Space Complexity questions
- GATE 2015 CS (CS3) Q41
- GATE 2015 CS (CS3) Q64
- GATE 2021 CS (CS2) Q49
- GATE 2026 CS (CS1) Q17
- GATE 2026 CS (CS1) Q47
- GATE 2026 CS (CS2) Q24
All Asymptotic Analysis and Time/Space Complexity questions →