|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalgs.model.array.FirstSelector
public class FirstSelector
Quicksort selector during partition that selects leftmost element.
Constructor Summary | |
---|---|
FirstSelector()
|
Method Summary | |
---|---|
int |
selectPivotIndex(java.lang.Comparable[] ar,
int left,
int right)
Select leftmost index of ar[left,right] as the pivot index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FirstSelector()
Method Detail |
---|
public int selectPivotIndex(java.lang.Comparable[] ar, int left, int right)
selectPivotIndex
in interface IPivotIndex
ar
- base array of elements.left
- left index of sub-arrayright
- right index of sub-array
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |