public class QuickSort extends SortAlgorithm
Modifier and Type | Field and Description |
---|---|
private int[] |
array |
Modifier and Type | Method and Description |
---|---|
int[] |
getArray() |
int |
hoarePartition(int startIndex,
int endIndex) |
void |
hoareSort(int startIndex,
int endIndex) |
private int |
lomutoPartition(int startIndex,
int endIndex) |
void |
lomutoSort(int startIndex,
int endIndex) |
void |
setArray(int[] array) |
swap, swap
public int[] getArray()
public void setArray(int[] array)
public void lomutoSort(int startIndex, int endIndex)
private int lomutoPartition(int startIndex, int endIndex)
public void hoareSort(int startIndex, int endIndex)
public int hoarePartition(int startIndex, int endIndex)