ISRO 2018 · Heap Sort & Non-Comparison Sorts

MCQ · 1 mark · Problem PROG-SORT-0023

Given two sorted list of size m and n respectively. The number of comparisons needed the worst case by the merge sort algorithm will be:
  1. A
    m-n
  2. B
    maximum of m and n
  3. C
    minimum of m and n
  4. D
    m+n-1

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/213553/isro2018-35

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