public class FloatArrays
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BASE_THRESHOLD
Default Limit for Insertion/Selection Sort
|
static float[] |
EMPTY_ARRAY
Empty Array Reference used for Uninitialized Collections
|
static int |
PARALLEL_THRESHOLD
Default Threshold for Multithreaded Sorting Algorythm options
|
| Constructor and Description |
|---|
FloatArrays() |
| Modifier and Type | Method and Description |
|---|---|
static float[] |
heapify(float[] data,
int size,
FloatComparator comp)
Helper function to create a Heap out of an array.
|
static float[] |
insertionSort(float[] array)
Sorts an array according to the natural ascending order using InsertionSort,
|
static float[] |
insertionSort(float[] array,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Insertion Sort,
|
static void |
insertionSort(float[] array,
int length)
Sorts an array according to the natural ascending order using InsertionSort,
|
static void |
insertionSort(float[] array,
int length,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Insertion Sort,
|
static void |
insertionSort(float[] array,
int from,
int to)
Sorts an array according to the natural ascending order using InsertionSort,
|
static void |
insertionSort(float[] array,
int from,
int to,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Insertion Sort,
|
static float[] |
memFreeMergeSort(float[] array)
Sorts an array according to the natural ascending order using Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
memFreeMergeSort(float[] array,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
memFreeMergeSort(float[] array,
int length)
Sorts an array according to the natural ascending order using Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
memFreeMergeSort(float[] array,
int length,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
memFreeMergeSort(float[] array,
int from,
int to)
Sorts an array according to the natural ascending order using Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
memFreeMergeSort(float[] array,
int from,
int to,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static float[] |
mergeSort(float[] array)
Sorts an array according to the natural ascending order using Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
mergeSort(float[] array,
float[] supp,
int from,
int to)
Sorts an array according to the natural ascending order using Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
mergeSort(float[] array,
float[] supp,
int from,
int to,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static float[] |
mergeSort(float[] array,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
mergeSort(float[] array,
int length)
Sorts an array according to the natural ascending order using Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
mergeSort(float[] array,
int length,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
parallelMemFreeMergeSort(float[] array)
Sorts an array according to the natural ascending order using Parallel Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
parallelMemFreeMergeSort(float[] array,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Parallel Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
parallelMemFreeMergeSort(float[] array,
int length)
Sorts an array according to the natural ascending order using Parallel Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
parallelMemFreeMergeSort(float[] array,
int length,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Parallel Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
parallelMemFreeMergeSort(float[] array,
int from,
int to)
Sorts an array according to the natural ascending order using Parallel Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
parallelMemFreeMergeSort(float[] array,
int from,
int to,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Parallel Memory Free Merge Sort,
This implementation is inspired by FastUtil original merge sort, but without the need to allocate a copy of the original Array.
|
static void |
parallelMergeSort(float[] array)
Sorts an array according to the natural ascending order using Parallel Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
parallelMergeSort(float[] array,
float[] supp,
int from,
int to)
Sorts an array according to the natural ascending order using Parallel Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
parallelMergeSort(float[] array,
float[] supp,
int from,
int to,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Parallel Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
parallelMergeSort(float[] array,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using a Parallel Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
parallelMergeSort(float[] array,
int length)
Sorts an array according to the natural ascending order using Parallel Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
parallelMergeSort(float[] array,
int length,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Parallel Merge Sort,
This implementation was copied from FastUtil with a couple custom optimizations
|
static void |
parallelQuickSort(float[] array)
Sorts an array according to the natural ascending order using Parallel Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static void |
parallelQuickSort(float[] array,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Parallel Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static void |
parallelQuickSort(float[] array,
int length)
Sorts an array according to the natural ascending order using Parallel Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static void |
parallelQuickSort(float[] array,
int length,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Parallel Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static void |
parallelQuickSort(float[] array,
int from,
int to)
Sorts an array according to the natural ascending order using Parallel Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static void |
parallelQuickSort(float[] array,
int from,
int to,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Parallel Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static float[] |
pour(FloatIterator iter)
A Helper function that pours all elements of a iterator into a Array
|
static float[] |
pour(FloatIterator iter,
int max)
A Helper function that pours all elements of a iterator into a Array
|
static float[] |
quickSort(float[] array)
Sorts an array according to the natural ascending order using Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static float[] |
quickSort(float[] array,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static void |
quickSort(float[] array,
int length)
Sorts an array according to the natural ascending order using Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static void |
quickSort(float[] array,
int length,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static void |
quickSort(float[] array,
int from,
int to)
Sorts an array according to the natural ascending order using Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static void |
quickSort(float[] array,
int from,
int to,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Quick Sort,
This implementation is a custom of FastUtil quicksort but with a different code structure,
and that sorting Algorithm is based on the tuned quicksort adapted from Jon L.
|
static float[] |
reverse(float[] array)
Simple Array Reversal method
|
static float[] |
reverse(float[] array,
int length)
Simple Array Reversal method
|
static float[] |
reverse(float[] array,
int offset,
int length)
Simple Array Reversal method
|
static float[] |
selectionSort(float[] array)
Sorts an array according to the natural ascending order using Selection Sort,
|
static float[] |
selectionSort(float[] array,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Selection Sort,
|
static void |
selectionSort(float[] array,
int length)
Sorts an array according to the natural ascending order using Selection Sort,
|
static void |
selectionSort(float[] array,
int length,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Selection Sort,
|
static void |
selectionSort(float[] array,
int from,
int to)
Sorts an array according to the natural ascending order using Selection Sort,
|
static void |
selectionSort(float[] array,
int from,
int to,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator using Selection Sort,
|
static int |
shiftDown(float[] data,
int size,
int index,
FloatComparator comp)
Method to validate if the current value is the lowest value in the heap
|
static int |
shiftUp(float[] data,
int index,
FloatComparator comp)
Method to sort a specific value into the heap.
|
static float[] |
shuffle(float[] array)
Simple Shuffle method for Arrays.
|
static float[] |
shuffle(float[] array,
int length)
Simple Shuffle method for Arrays.
|
static float[] |
shuffle(float[] array,
int offset,
int length)
Simple Shuffle method for Arrays.
|
static float[] |
shuffle(float[] array,
int offset,
int length,
java.util.Random random)
Simple Shuffle method for Arrays.
|
static float[] |
shuffle(float[] array,
int length,
java.util.Random random)
Simple Shuffle method for Arrays.
|
static float[] |
shuffle(float[] array,
java.util.Random random)
Simple Shuffle method for Arrays.
|
static float[] |
stableSort(float[] array)
Sorts an array according to the natural ascending order,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static float[] |
stableSort(float[] array,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static void |
stableSort(float[] array,
int length)
Sorts an array according to the natural ascending order,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static void |
stableSort(float[] array,
int length,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static void |
stableSort(float[] array,
int from,
int to)
Sorts an array according to the natural ascending order,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static void |
stableSort(float[] array,
int from,
int to,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static float[] |
unstableSort(float[] array)
Sorts an array according to the natural ascending order,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static float[] |
unstableSort(float[] array,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static void |
unstableSort(float[] array,
int length)
Sorts an array according to the natural ascending order,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static void |
unstableSort(float[] array,
int length,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static void |
unstableSort(float[] array,
int from,
int to)
Sorts an array according to the natural ascending order,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static void |
unstableSort(float[] array,
int from,
int to,
FloatComparator comp)
Sorts the specified range of elements according to the order induced by the specified comparator,
potentially dynamically choosing an appropriate algorithm given the type and size of the array.
|
static float[] |
unwrap(java.lang.Float[] a)
A Helper function to convert a Float Array to a float Array.
|
static float[] |
unwrap(java.lang.Float[] a,
int length)
A Helper function to convert a Float Array to a float Array.
|
static float[] |
unwrap(java.lang.Float[] a,
int offset,
int length)
A Helper function to convert a Float Array to a float Array.
|
static java.lang.Float[] |
wrap(float[] a)
A Helper function to convert a Primitive Array to a Float Array.
|
static java.lang.Float[] |
wrap(float[] a,
int length)
A Helper function to convert a Primitive Array to a Float Array.
|
static java.lang.Float[] |
wrap(float[] a,
int offset,
int length)
A Helper function to convert a Primitive Array to a Float Array.
|
public static final int BASE_THRESHOLD
public static final int PARALLEL_THRESHOLD
public static final float[] EMPTY_ARRAY
public static java.lang.Float[] wrap(float[] a)
a - the array that should be convertedpublic static java.lang.Float[] wrap(float[] a,
int length)
a - the array that should be convertedlength - the maximum length that should be covertedpublic static java.lang.Float[] wrap(float[] a,
int offset,
int length)
a - the array that should be convertedoffset - the starting offset of the inputarraylength - the maximum length that should be covertedpublic static float[] unwrap(java.lang.Float[] a)
a - the array that should be convertedpublic static float[] unwrap(java.lang.Float[] a,
int length)
a - the array that should be convertedlength - the maximum length that should be covertedpublic static float[] unwrap(java.lang.Float[] a,
int offset,
int length)
a - the array that should be convertedoffset - the starting offset of the inputarraylength - the maximum length that should be covertedpublic static float[] pour(FloatIterator iter)
iter - the elements that should be gathered.public static float[] pour(FloatIterator iter, int max)
iter - the elements that should be gathered.max - how many elements should be addedpublic static int shiftDown(float[] data,
int size,
int index,
FloatComparator comp)
data - the current heap.size - the size of the heapindex - the index that should be validatedcomp - the comparator to sort the heap. Can be nullpublic static int shiftUp(float[] data,
int index,
FloatComparator comp)
data - the heap itself.index - that should be heapified.comp - the comparator to sort the heap. Can be nullpublic static float[] heapify(float[] data,
int size,
FloatComparator comp)
data - the array to heapifysize - the current size of elements within the array.comp - the Comparator to sort the array. Can be nullpublic static float[] shuffle(float[] array)
array - the elements that should be shuffledpublic static float[] shuffle(float[] array,
int length)
array - the elements that should be shuffledlength - the length of the arraypublic static float[] shuffle(float[] array,
int offset,
int length)
array - the elements that should be shuffledoffset - the start arraylength - the length of the arraypublic static float[] shuffle(float[] array,
java.util.Random random)
array - the elements that should be shuffledrandom - the Random Number Generator that should be used for the shufflingpublic static float[] shuffle(float[] array,
int length,
java.util.Random random)
array - the elements that should be shuffledlength - the length of the arrayrandom - the Random Number Generator that should be used for the shufflingpublic static float[] shuffle(float[] array,
int offset,
int length,
java.util.Random random)
array - the elements that should be shuffledoffset - the start arraylength - the length of the arrayrandom - the Random Number Generator that should be used for the shufflingpublic static float[] reverse(float[] array)
array - the Array that should flippublic static float[] reverse(float[] array,
int length)
array - the Array that should fliplength - the length of the arraypublic static float[] reverse(float[] array,
int offset,
int length)
array - the Array that should fliplength - the length of the arrayoffset - the start of the arraypublic static float[] stableSort(float[] array,
FloatComparator comp)
array - the array that needs to be sortedcomp - the Comparator that decides the sorting orderpublic static void stableSort(float[] array,
int length,
FloatComparator comp)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedcomp - the Comparator that decides the sorting orderpublic static void stableSort(float[] array,
int from,
int to,
FloatComparator comp)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted tocomp - the Comparator that decides the sorting orderpublic static float[] stableSort(float[] array)
array - the array that needs to be sortedpublic static void stableSort(float[] array,
int length)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedpublic static void stableSort(float[] array,
int from,
int to)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted topublic static float[] unstableSort(float[] array,
FloatComparator comp)
array - the array that needs to be sortedcomp - the Comparator that decides the sorting orderpublic static void unstableSort(float[] array,
int length,
FloatComparator comp)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedcomp - the Comparator that decides the sorting orderpublic static void unstableSort(float[] array,
int from,
int to,
FloatComparator comp)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted tocomp - the Comparator that decides the sorting orderpublic static float[] unstableSort(float[] array)
array - the array that needs to be sortedpublic static void unstableSort(float[] array,
int length)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedpublic static void unstableSort(float[] array,
int from,
int to)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted topublic static float[] insertionSort(float[] array,
FloatComparator comp)
array - the array that needs to be sortedcomp - the Comparator that decides the sorting orderpublic static void insertionSort(float[] array,
int length,
FloatComparator comp)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedcomp - the Comparator that decides the sorting orderpublic static void insertionSort(float[] array,
int from,
int to,
FloatComparator comp)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted tocomp - the Comparator that decides the sorting orderpublic static float[] insertionSort(float[] array)
array - the array that needs to be sortedpublic static void insertionSort(float[] array,
int length)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedpublic static void insertionSort(float[] array,
int from,
int to)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted topublic static float[] selectionSort(float[] array,
FloatComparator comp)
array - the array that needs to be sortedcomp - the Comparator that decides the sorting orderpublic static void selectionSort(float[] array,
int length,
FloatComparator comp)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedcomp - the Comparator that decides the sorting orderpublic static void selectionSort(float[] array,
int from,
int to,
FloatComparator comp)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted tocomp - the Comparator that decides the sorting orderpublic static float[] selectionSort(float[] array)
array - the array that needs to be sortedpublic static void selectionSort(float[] array,
int length)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedpublic static void selectionSort(float[] array,
int from,
int to)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted topublic static float[] mergeSort(float[] array,
FloatComparator comp)
array - the array that needs to be sortedcomp - the Comparator that decides the sorting orderpublic static void mergeSort(float[] array,
int length,
FloatComparator comp)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedcomp - the Comparator that decides the sorting orderpublic static void mergeSort(float[] array,
float[] supp,
int from,
int to,
FloatComparator comp)
array - the array that needs to be sortedsupp - the auxillary array that is used to simplify the sortingfrom - where the array should be sorted fromto - where the array should be sorted tocomp - the Comparator that decides the sorting orderpublic static float[] mergeSort(float[] array)
array - the array that needs to be sortedpublic static void mergeSort(float[] array,
int length)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedpublic static void mergeSort(float[] array,
float[] supp,
int from,
int to)
array - the array that needs to be sortedsupp - the auxillary array that is used to simplify the sortingfrom - where the array should be sorted fromto - where the array should be sorted topublic static void parallelMergeSort(float[] array,
FloatComparator comp)
array - the array that needs to be sortedcomp - the Comparator that decides the sorting orderSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelMergeSort(float[] array,
int length,
FloatComparator comp)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedcomp - the Comparator that decides the sorting orderSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelMergeSort(float[] array,
float[] supp,
int from,
int to,
FloatComparator comp)
array - the array that needs to be sortedsupp - the auxillary array that is used to simplify the sortingfrom - where the array should be sorted fromto - where the array should be sorted tocomp - the Comparator that decides the sorting orderSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelMergeSort(float[] array)
array - the array that needs to be sortedSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelMergeSort(float[] array,
int length)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelMergeSort(float[] array,
float[] supp,
int from,
int to)
array - the array that needs to be sortedsupp - the auxillary array that is used to simplify the sortingfrom - where the array should be sorted fromto - where the array should be sorted toSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void memFreeMergeSort(float[] array,
FloatComparator comp)
array - the array that needs to be sortedcomp - the Comparator that decides the sorting orderpublic static void memFreeMergeSort(float[] array,
int length,
FloatComparator comp)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedcomp - the Comparator that decides the sorting orderpublic static void memFreeMergeSort(float[] array,
int from,
int to,
FloatComparator comp)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted tocomp - the Comparator that decides the sorting orderpublic static float[] memFreeMergeSort(float[] array)
array - the array that needs to be sortedpublic static void memFreeMergeSort(float[] array,
int length)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedpublic static void memFreeMergeSort(float[] array,
int from,
int to)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted topublic static void parallelMemFreeMergeSort(float[] array,
FloatComparator comp)
array - the array that needs to be sortedcomp - the Comparator that decides the sorting orderSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelMemFreeMergeSort(float[] array,
int length,
FloatComparator comp)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedcomp - the Comparator that decides the sorting orderSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelMemFreeMergeSort(float[] array,
int from,
int to,
FloatComparator comp)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted tocomp - the Comparator that decides the sorting orderSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelMemFreeMergeSort(float[] array)
array - the array that needs to be sortedSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelMemFreeMergeSort(float[] array,
int length)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelMemFreeMergeSort(float[] array,
int from,
int to)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted toSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static float[] quickSort(float[] array,
FloatComparator comp)
array - the array that needs to be sortedcomp - the Comparator that decides the sorting orderpublic static void quickSort(float[] array,
int length,
FloatComparator comp)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedcomp - the Comparator that decides the sorting orderpublic static void quickSort(float[] array,
int from,
int to,
FloatComparator comp)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted tocomp - the Comparator that decides the sorting orderpublic static float[] quickSort(float[] array)
array - the array that needs to be sortedpublic static void quickSort(float[] array,
int length)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedpublic static void quickSort(float[] array,
int from,
int to)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted topublic static void parallelQuickSort(float[] array,
FloatComparator comp)
array - the array that needs to be sortedcomp - the Comparator that decides the sorting orderSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelQuickSort(float[] array,
int length,
FloatComparator comp)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedcomp - the Comparator that decides the sorting orderSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelQuickSort(float[] array,
int from,
int to,
FloatComparator comp)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted tocomp - the Comparator that decides the sorting orderSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelQuickSort(float[] array)
array - the array that needs to be sortedSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelQuickSort(float[] array,
int length)
array - the array that needs to be sortedlength - the maxmium size of the array to be sortedSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as neededpublic static void parallelQuickSort(float[] array,
int from,
int to)
array - the array that needs to be sortedfrom - where the array should be sorted fromto - where the array should be sorted toSanityChecks.invokeTask(java.util.concurrent.ForkJoinTask<T>) which the threadpool can be changed as needed