com.metsci.glimpse.util.primitives.algorithms
Class Sorting

java.lang.Object
  extended by com.metsci.glimpse.util.primitives.algorithms.Sorting

public class Sorting
extends java.lang.Object

Author:
osborn

Constructor Summary
Sorting()
           
 
Method Summary
static boolean isSorted(long[] x)
           
static boolean isSorted(long[] x, int fromIndex, int toIndex)
           
static void mergesort(long[] x, int[] aux, int fromIndex, int toIndex)
           
static void quicksort(long[] x, int[] aux, int fromIndex, int toIndex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sorting

public Sorting()
Method Detail

isSorted

public static boolean isSorted(long[] x)

isSorted

public static boolean isSorted(long[] x,
                               int fromIndex,
                               int toIndex)

mergesort

public static void mergesort(long[] x,
                             int[] aux,
                             int fromIndex,
                             int toIndex)

quicksort

public static void quicksort(long[] x,
                             int[] aux,
                             int fromIndex,
                             int toIndex)


Copyright © 2012 Metron, Inc.. All Rights Reserved.