Greedy Algorithms questions

Q38

GATE CS 2014 CS-2Algorithm DesignNAT2 marks
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 ____.
Show answer without attempting

Answer: 358

0/10 correct0 marks

Related topics in Algorithm Design