Hard
We use with the following code a method of sorting by fusion in order to sort a large number of data. What do the parameters A, i and j correspond to?
function merge_sort(A, i, j)
{
If i<j
{
k = (i+j)/2;
merge_sort(A,i,k);
merge_sort(A,k+1,j);
merge(A,i,k,j);
}
}
Author: KahinaStatus: PublishedQuestion passed 56 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
9
What is recursion?2
Given an array of 17 elements sorted in ascending order, what is the cost of accessing the element with index 10?6
What type of structure are the results of a recursive function stored in?2
What about the merge sort method?2
What is the complexity of this algorithm?5
What does the While loop do?7
What is special about quick sort?