com.mhhe.clrs2e
Class Heapsort

java.lang.Object
  |
  +--com.mhhe.clrs2e.Heapsort
All Implemented Interfaces:
Sorter

public class Heapsort
extends java.lang.Object
implements Sorter

A wrapper class to perform heapsort.


Constructor Summary
Heapsort()
           
 
Method Summary
 void sort(java.lang.Comparable[] array)
          Sorts an array of Comparable objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Heapsort

public Heapsort()
Method Detail

sort

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

Specified by:
sort in interface Sorter
Parameters:
array - The array of Comparable objects to be sorted.