GATE CS 2014 · Set-2 · Asymptotic Analysis & Recurrences

NAT · 2 marks · Problem PROG-DIVC-0106

Suppose P, Q, R, S, T are sorted sequences having lengths 20, 24, 30, 35, 50 respectively. They are to be merged into a single sequence by merging together two sequences at a time. The number of comparisons that will be needed in the worst case by the optimal algorithm for doing this is .

Numerical answer (NAT).

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

Show the worked solutionOfficial GATE Answer Key: [358.0, 358.0].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1997/gate2014-2-38

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