Search results for merging

0 votes
1 answer
2
Given two max heap, one of size n and other m. Calculate the time complexity of merging them to get a max heap.
3 votes
2 answers
4
The average no. of comparisons performed by the merge sort algorithm, in merging two sorted lists of length 2 is -a) 8/3b) 8/5c) 11/7d) 11/6
3 votes
1 answer
5
How many swaps are performed in Merge sort algorithm in worst case?
0 votes
3 answers
6
A list of n string, each of length n, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is(A) (B) (C) (D)...
0 votes
0 answers
7
Can anyone help me to understand this problem….??
0 votes
1 answer
8
What is the minimum and maximum number of comparisons required to merge two lists of size m and n ?
2 votes
1 answer
9
Given a set of sorted files f1,f2,f3,f4,f5 of lengths 99,27,71,199,259 we need to merge these files into a single sorted file Using Optimal Merge Pattern.
0 votes
2 answers
10
The total number of comparions required to merge 4 sorted files containing 15, 3, 9 and 8 records into a single sorted file is A.66 B.39 C.15 D.33
2 votes
4 answers
11
Suppose there are 4 sorted lists of 8 elements each. If we merge these lists into a single sorted list of 32 elements. The key comparisons that are needed in the worst ca...
2 votes
2 answers
14
0 votes
2 answers
16
If I have two lists of length 2 then no of comparisons in the worst case would be 2 only , since If I have say 10,20 in list A and 5,7 in list B so then on merging 10 is ...
0 votes
0 answers
17
Can anyone clarify hy they are getting 269 and and I am getting 258?
0 votes
0 answers
18
0 votes
1 answer
19