Given array vals[left,right] select left 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 left 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 leftmost 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