| Modifier and Type | Method and Description |
|---|---|
static void |
quickSort(SortingGopher gopher)
Convenience method to apply the QuickSort algorithm to the given gopher.
|
static void |
selectionSort(SortingGopher gopher)
Convenience method to apply the SelectionSort algorithm to the given
gopher.
|
static void |
sort(SortingGopher gopher)
Convenience method for when you don't particularly care which sort method
is used.
|
static void |
sort3(SortingGopher gopher,
int a,
int b,
int c)
Low-level comparison of three items at the given indices.
|
public static void sort3(SortingGopher gopher, int a, int b, int c)
SortingAlgorithm implementations.gopher - gopher providing access to underlying array-like structurea - first index to sortb - second index to sortc - third index to sortpublic static void sort(SortingGopher gopher)
quickSort(SortingGopher)).gopher - gopher providing access to underlying array-like structurepublic static void quickSort(SortingGopher gopher)
gopher - gopher providing access to underlying array-like structureQuickSortpublic static void selectionSort(SortingGopher gopher)
gopher - gopher providing access to underlying array-like structureSelectionSort