public final class QubbleSort extends BubbleSort
SortApp.SortAlgorithm
+ minor improvements.stopRequested
Constructor and Description |
---|
QubbleSort() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Start as application.
|
void |
sort(int[] a)
The real sorting method.
|
protected void |
sort(int[] a,
int lo0,
int hi0)
The quick sort with bubble sort algorithm.
|
bSort
getMaxPossiVal, pause, pause, pause, startMe, stop, swap
protected void sort(int[] a, int lo0, int hi0)
a
- the array to be sortedlo0
- the lower indexhi0
- the upper indexpublic void sort(int[] a)
SortApp.SortAlgorithm
SortApp.SortAlgorithm.pause(int, int)
, SortApp.SortAlgorithm.pause(int)
, SortApp.SortAlgorithm.pause()
directly
or indirectly by utilising SortApp.SortAlgorithm.swap(int, int)
for element
exchanges within the array having been provided to this
sort
implementation. pausing
does all else like counting steps,
displaying the sorting state and else.sort
in class BubbleSort
public static void main(java.lang.String[] args)
SortApp.SortAlgorithm.startMe()