jds.sort
Class CountingSort

java.lang.Object
  |
  +--jds.sort.CountingSort

public class CountingSort
extends java.lang.Object

CountingSort - implementation of the counting sort algorithm; for use with book Classic Data Structures in Java by Timothy A Budd, published by Addison-Wesley, 2001.

See Also:
Indexed

Constructor Summary
CountingSort()
           
 
Method Summary
 void sort(int[] data, int m)
          sort an array of integer values
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountingSort

public CountingSort()
Method Detail

sort

public void sort(int[] data,
                 int m)
sort an array of integer values
Parameters:
data - array of positive integer values
m - maximum value in data array