If I understand this algorithm correctly it will sort an array (A) with p being a pointer to the first element, and r being a pointer to the last element in descending order.
1.Quicksort(A,p,r)
2. if p < r then
3. q = Partition(A,p,r)
4. Quicksort(A,p,q)
5. Quicksort(A,q+1,r)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.