ISRO 2007 · Heap Sort & Non-Comparison Sorts

MCQ · 1 mark · Problem PROG-SORT-0049

The average case and worst case complexities for Merge sort algorithm are
  1. A
    \(O (n^2), O (n^2)\)
  2. B
    \(O (n^2), O (n \log_2 n)\)
  3. C
    \(O (n \log_2 n), O (n^2)\)
  4. D
    \(O(n \log_2 n), O (n \log_2 n)\)

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

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/49624/isro2007-58

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