96.7k views
4 votes
Trace (show) the steps that quicksort takes when sorting the following array into ascending order:

9 6 2 4 8 7 5 3
Assume that the pivot value is 4

User KKRocks
by
7.6k points

1 Answer

3 votes
I hope this is easy enough to understand. Everything greater than 4 moves to the right (in this case 5, 6, 7, 8 & 9) while everything less moves to the left (in this case 2 & 3).
Trace (show) the steps that quicksort takes when sorting the following array into-example-1
User Zalog
by
8.1k points