Medium
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 53 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
9
What is recursion?6
What is special about quick sort?2
What do you call a structure whose data are nodes and linked together by oriented arcs?2
What about the merge sort method?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?5
What does the While loop do?