|
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.MedianSelector
public class MedianSelector
Select median of first/middle/last.
| Constructor Summary | |
|---|---|
MedianSelector()
|
|
| Method Summary | |
|---|---|
int |
selectPivotIndex(java.lang.Comparable[] ar,
int left,
int right)
Compute median of three elements, ar[left], ar[mid], ar[right] to use as the pivot. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MedianSelector()
| Method Detail |
|---|
public int selectPivotIndex(java.lang.Comparable[] ar,
int left,
int right)
selectPivotIndex in interface IPivotIndexar - 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 | ||||||||