Recent questions tagged merge-sort

0 votes
0 answers
31
is mergesort inplace on linked list?it is not inplace on array
0 votes
1 answer
32
What is the right answer?
0 votes
0 answers
33
Can anyone help me to understand this problem….??
2 votes
4 answers
34
Suppose there are 4 sorted list of 16 elements each. If we merge these lists into a single sorted list of 64 elements. The key comparisons that are needed in the worst ca...
0 votes
1 answer
35
What mean by First Pass of algorithm and Second Pass of algorithm in a 2-way Merge Sort Algorithm ?
1 votes
2 answers
36
0 votes
1 answer
37
In the standard merge sort algorithm on a list of size n, what is the maximum number of times an item can be compared?
0 votes
1 answer
38
no of comparisons in merge sort max?how many max no swaps??[if inplace algo]
0 votes
1 answer
39
given n elements merge them into one sorted list using merge procedure then what is the time complexity for this ?explain with example
0 votes
0 answers
40
what is the time complexity of merge sort for already sorted array explain with example?
3 votes
1 answer
41
How many swaps are performed in Merge sort algorithm in worst case?
0 votes
3 answers
42
0 votes
1 answer
43
can anyone explain in detail why and how is merge sort optimal for linked list?
0 votes
1 answer
44
Is straight merge sort in gate syllabus?? If yes, where to study from?
0 votes
1 answer
45
n sorted subarrays each of size log n. find single sorted array with all elements.find time complexity
0 votes
1 answer
46
4 votes
1 answer
47
. In the standard merge sort algorithm on a list of size n, what is the maximum number of times an item can be compared?a)2b)lognc)n-1d)nlogn
1 votes
1 answer
50
suppose merge sort takes 2 sec to sort a set of 64 keys then how much time will take to sort a set of 512 keys?here, ans is 24 sec how it is plz explain me.
1 votes
1 answer
51
In a modified merge sort, the input array is split at a position one-third of the length(N) of the array. What is the worst case time complexity of this merge sort?
0 votes
3 answers
52
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)...
3 votes
2 answers
53
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
1 votes
2 answers
54
2 votes
1 answer
55
Given "log n" sorted lists each of size "n/log n",what is the total time required to merge them into one single list.
0 votes
0 answers
56
You are asked to sort 15 randomly generated numbers. One should prefer - 1. Bubble Sort2. Quick Sort3. Merge Sort4. Heap Sort Please explain why others 3 sorting algorith...
0 votes
1 answer
57
Assume that merge sort 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 p...
0 votes
1 answer
59
Why do we say Merge sort makes good use of locality of reference? and if I have $1 \hspace{0.1cm} billion$ elements and my memory can only store $1 \hspace{0.1cm} million...
1 votes
1 answer
60
You have 1 billions elements, but memory which can hold only 1 million. How would you sort it using merge sort?Source-:https://gateoverflow.in/blog/4532/iiit-hyderabad-in...