public class BigR1Array
extends java.lang.Object
Constructor and Description |
---|
BigR1Array(double[] adblA)
BigR1Array Constructor
|
Modifier and Type | Method and Description |
---|---|
double[] |
array()
Retrieve the Array Contents
|
boolean |
heapSort()
Heap Sort the Big Array
|
boolean |
insertionSort()
Insertion Sort the Big Array
|
boolean |
mergeSort()
In-place Big Array Merge Sort
|
boolean |
mergeSort(int iStart,
int iEnd)
Contiguous Stretch Merge Sort
|
boolean |
mergeSort(int i1Start,
int i1End,
int i2Start,
int i2End)
Merge the Sorted Sub Array Pair
|
boolean |
quickSort()
Sort the Full Array using Quick Sort
|
boolean |
quickSort(int iLow,
int iHigh)
Sort the Specified Range in the Array using Quick Sort
|
boolean |
transfer(int iPickupIndex,
int iDropOffIndex)
Transfer all Elements from the Pickup Index to the Drop Off Index, and contiguously Shift the
Intermediate Array
|
public BigR1Array(double[] adblA) throws java.lang.Exception
adblA
- The Array to be Sortedjava.lang.Exception
- Thrown if the Inputs are Invalidpublic double[] array()
public boolean transfer(int iPickupIndex, int iDropOffIndex)
iPickupIndex
- The Pickup IndexiDropOffIndex
- The Drop off Indexpublic boolean quickSort(int iLow, int iHigh)
iLow
- Lower Index of the Range (Inclusive)iHigh
- Upper Index of the Range (Inclusive)public boolean quickSort()
public boolean mergeSort(int i1Start, int i1End, int i2Start, int i2End)
i1Start
- The Left Starting Index (Inclusive)i1End
- The Left Ending Index (Inclusive)i2Start
- The Right Starting Index (Inclusive)i2End
- The Right End Index (Inclusive)public boolean mergeSort(int iStart, int iEnd)
iStart
- The Master Starting Index (Inclusive)iEnd
- The Master Ending Index (Inclusive)public boolean mergeSort()
public boolean heapSort()
public boolean insertionSort()