ParallelQuickSort
cern.colt

Class ParallelQuickSort



  • public class ParallelQuickSortextends Object
    Multithreaded implementation of quicksort.
    • Constructor Detail

      • ParallelQuickSort

        public ParallelQuickSort()
    • Method Detail

      • quickSort

        public static void quickSort(byte[] x,             int off,             int len,             ByteComparator comp,             int nThreads)
        Multithreaded quicksort.
        Parameters:
        x - array to be sorted
        off - first index of subarray
        len - length of subarray
        comp - comparator
        nThreads - number of threads
      • quickSort

        public static void quickSort(char[] x,             int off,             int len,             CharComparator comp,             int nThreads)
        Multithreaded quicksort.
        Parameters:
        x - array to be sorted
        off - first index of subarray
        len - length of subarray
        comp - comparator
        nThreads - number of threads
      • quickSort

        public static void quickSort(double[] x,             int off,             int len,             DoubleComparator comp,             int nThreads)
        Multithreaded quicksort.
        Parameters:
        x - array to be sorted
        off - first index of subarray
        len - length of subarray
        comp - comparator
        nThreads - number of threads
      • quickSort

        public static void quickSort(float[] x,             int off,             int len,             FloatComparator comp,             int nThreads)
        Multithreaded quicksort.
        Parameters:
        x - array to be sorted
        off - first index of subarray
        len - length of subarray
        comp - comparator
        nThreads - number of threads
      • quickSort

        public static void quickSort(int[] x,             int off,             int len,             IntComparator comp,             int nThreads)
        Multithreaded quicksort.
        Parameters:
        x - array to be sorted
        off - first index of subarray
        len - length of subarray
        comp - comparator
        nThreads - number of threads
      • quickSort

        public static void quickSort(long[] x,             int off,             int len,             LongComparator comp,             int nThreads)
        Multithreaded quicksort.
        Parameters:
        x - array to be sorted
        off - first index of subarray
        len - length of subarray
        comp - comparator
        nThreads - number of threads
      • quickSort

        public static void quickSort(Object[] x,             int off,             int len,             int nThreads)
        Multithreaded quicksort.
        Parameters:
        x - array to be sorted
        off - first index of subarray
        len - length of subarray
        nThreads - number of threads
      • quickSort

        public static void quickSort(Object[] x,             int off,             int len,             Comparator comp,             int nThreads)
        Multithreaded quicksort.
        Parameters:
        x - array to be sorted
        off - first index of subarray
        len - length of subarray
        comp - comparator
        nThreads - number of threads
      • quickSort

        public static void quickSort(short[] x,             int off,             int len,             ShortComparator comp,             int nThreads)
        Multithreaded quicksort.
        Parameters:
        x - array to be sorted
        off - first index of subarray
        len - length of subarray
        comp - comparator
        nThreads - number of threads

SCaVis 2.1 © jWork.ORG