com.metsci.glimpse.util.primitives.algorithms
Class Sorting
java.lang.Object
com.metsci.glimpse.util.primitives.algorithms.Sorting
public class Sorting
- extends java.lang.Object
- Author:
- osborn
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 |
Sorting
public Sorting()
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.