VibraXX
Live Quiz Arena
๐ŸŽ 1 Free Round Daily
โšก Enter Arena
Homeโ€บCategoriesโ€บLogic & Puzzlesโ€บQuestion
Question
โ† Logic & Puzzles

If a large dataset of product reviews is sorted alphabetically using the merge sort algorithm, which computational complexity characterizes its average-case time performance?

A)O(n^2) โ€” Quadratic time
B)O(n) โ€” Linear time
C)O(n log n) โ€” Linearithmic timeโœ“
D)O(2^n) โ€” Exponential time

๐Ÿ’ก Explanation

Merge sort employs a divide-and-conquer approach, which involves recursively dividing the data and then merging it. Because of this recursive division and merging mechanism, merge sort achieves an average-case time complexity of O(n log n). Therefore, linearithmic time is the correct characterization, rather than the quadratic, linear, or exponential alternatives.

๐Ÿ† Up to ยฃ1,000 monthly prize pool

Ready for the live challenge? Join the next global round now.
*Terms apply. Skill-based competition.

โšก Enter Arena

Related Questions

Browse Logic & Puzzles โ†’