next up previous
Next: Up: Previous:

Pseudocode



Quicksort(A,p,r)
1
$\;\;\;\;\;$if p < r
2
$\;\;\;\;\;$then q = Partition(A,p,r)
3
$\;\;\;\;\;$ $\;\;\;\;\;$Quicksort(A,p,q)
4
$\;\;\;\;\;$ $\;\;\;\;\;$Quicksort(A,q+1,r)



Initial Call: Quicksort(A,1,length(A))


next up previous
Next: Up: Previous: