projectpossibility
Class QuickSort

java.lang.Object
  extended by projectpossibility.QuickSort

public class QuickSort
extends java.lang.Object

Implements a standard QuickSort algorithm


Constructor Summary
QuickSort()
           
 
Method Summary
static void qsort(java.lang.Comparable[] c)
          Recursive function implemenetation
static void qsort(java.lang.Comparable[] c, int start, int end)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickSort

public QuickSort()
Method Detail

qsort

public static void qsort(java.lang.Comparable[] c,
                         int start,
                         int end)
Parameters:
c - Array of comparable items
start - Index of first element.
end - Index of last element.

qsort

public static void qsort(java.lang.Comparable[] c)
Recursive function implemenetation

Parameters:
c - Comparable element array.