Given array vals[left,right] select right as the pivot index. More...
Functions | |
| int | selectPivotIndex (void **vals, int left, int right) |
| Code to select a pivot index around which to partition ar[left, right]. | |
Given array vals[left,right] select right as the pivot index.
| int selectPivotIndex | ( | void ** | vals, | |
| int | left, | |||
| int | right | |||
| ) |
Code to select a pivot index around which to partition ar[left, right].
Select the rightmost one
| vals | the array of elements. | |
| left | the left end of the subarray range | |
| right | the right end of the subarray range |
Algorithm Development Kit 1.0