com.mhhe.clrs2e
Interface Sorter

All Known Implementing Classes:
Heap.Heapsort, Heapsort, InsertionSort, MergeSort, Quicksort, RandomizedQuicksort

public interface Sorter

Interface for a sorting algorithm. Sorts an array of Comparable objects. No other information about the objects is assumed.


Method Summary
 void sort(java.lang.Comparable[] array)
          Sorts an array of Comparable objects.
 

Method Detail

sort

public void sort(java.lang.Comparable[] array)
Sorts an array of Comparable objects.

Parameters:
array - The array of Comparable objects to be sorted.