GATE CS 2012 · Heap Sort & Non-Comparison Sorts

MCQ · 2 marks · Problem PROG-SORT-0041

A list of n strings, each of length n, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is
  1. A
    O (n log n)
  2. B
    O (\(n^{2} log n\))
  3. C
    O (\(n^{2}+ log n\))
  4. D
    O (\(n^{2}\))

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1762/gate2012-39

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com