Practice free →
HomeGATE CSEcomputerscienceAlgorithms › Non-comparison sorts like counting / radix / buc…

Non-comparison sorts like counting / radix / bucket can run in O(n) because

Athey use a faster comparison instruction in modern CPUs
Bthe input is always already partially sorted
Cthey read bits or digits directly, bypassing the comparison-tree bound
Dthey break the comparison-based Ω(n log n) bound by using more memory
Answer & Solution
Correct answer: C. they read bits or digits directly, bypassing the comparison-tree bound
The Ω(n log n) bound applies only to algorithms that distinguish elements solely through comparisons. Counting / radix / bucket sorts look at the actual bit or digit representation of each element. That extra information lets them sort in O(n) when keys come from a bounded universe. It is not about a faster compare or input being pre-sorted.
Solve this in the app — GATE CSE practice & 24k+ MCQs →
Related questions