Hard
What is the name of the sort method used in the following code ?
function sort(A, first, last)
{
If first < last
{
pivot <-- pivot_choice(A, first, last)
pivot <-- partition(A, first, last, pivot)
sort(A, first, pivot-1)
sort(A, pivot+1, last)
}
}
Author: KahinaStatus: PublishedQuestion passed 136 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 is special about quick sort?2
What do you call a structure whose data are nodes and linked together by oriented arcs?5
What does the While loop do?6
What type of structure are the results of a recursive function stored in?2
What about the merge sort method?