|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.data.ArrayQuickSort
public class ArrayQuickSort
A generic quicksort. Based on chapter 9 of Algorithms, by Robert Sedgewick, 1988 ISBN 0-201-06673-4
| Constructor Summary | |
|---|---|
ArrayQuickSort()
|
|
| Method Summary | |
|---|---|
static ArrayQuickSort |
singleton()
|
void |
sort(ArraySortingGopher gopher)
Just do it. |
void |
sort(ArraySortingGopher gopher,
int start,
int end)
Does the job using the given gopher over the given range. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayQuickSort()
| Method Detail |
|---|
public static ArrayQuickSort singleton()
public final void sort(ArraySortingGopher gopher)
sort in interface ArraySortingAlgorithm
public final void sort(ArraySortingGopher gopher,
int start,
int end)
ArraySortingAlgorithm
sort in interface ArraySortingAlgorithm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||