numbers = (20, 40, 47, 67, 24, 61, 99, 71, 94)
Partition(numbers, 0, 5) is called.
Assume quicksort always chooses the element at the midpoint as
the pivot.
What is the pivot?
What is the low partition?
What is the high partition?
What is numbers after Partition(numbers, 0, 5) completes?
numbers = (20, 40, 47, 67, 24, 61, 99, 71, 94) Partition(numbers, 0, 5) is called. Assume quicksort always chooses the e
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am