Recent questions tagged merge-sort

0 votes
0 answers
1
Calculate the minimum and maximum number of element comparisons involved in 2 way merge sort assuming n is power of 2.
2 votes
1 answer
7
1 votes
1 answer
9
Consider the following array of elements being sorted by merge sort. The sum of all the elements to which $13$ gets compared is _____$$14\; 13\; 24\; 56\; 87\; 98\; 4\; 6...
5 votes
5 answers
11
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 :$m^{*}n$minimum of $m,...
0 votes
0 answers
12
1 votes
1 answer
13
0 votes
1 answer
15
Find the total number of comparisons if merge sort is used. Explain with proper steps.2, 5, 8, 4, 1, 7, 6, 3Total no of comparison.
0 votes
0 answers
16
What is the extra memory needed for merge sort:1] In case of Iterative merge sort.(DS:Array)2]In case of Recursive merge sort.(DS:Array)3] In case of Iterative merge sort...
1 votes
1 answer
17
The average no. of comparisons performed by the merge sort algorithm, in merging 2 sorted lists of length 2 is___________.Ans: $\frac{8}{3}$