Professional Documents
Culture Documents
Q2. Mergesort is being criticized because of extra space it requires for merging. Describe a
procedure for in place merging.
Q3
Q4 Assume that a mergesort algorithm in the worst case takes 30 seconds for an input of size 64.
Which of the following most closely approximates the maximum input size of a problem that can be
solved in 6 minutes?
Q5 Given two sorted list of size 'm' and 'n' respectively. The number of comparisons needed in the
worst case by the merge sort algorithm will be_______