|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--Opus5.AbstractSorter
|
+--Opus5.RadixSorter
Sorter for sorting an array of Ints.
Implements radix sort.
Int| Field Summary | |
protected int[] |
count
The array of counters (buckets). |
protected static int |
p
The number of passes. |
protected static int |
r
The logarithm to the base two of the radix. |
protected static int |
R
The radix. |
| Fields inherited from class Opus5.AbstractSorter |
array, n |
| Fields inherited from interface Opus5.Sorter |
copyright |
| Constructor Summary | |
RadixSorter()
|
|
| Method Summary | |
protected void |
sort()
Sorts the array of comparable objects. |
protected void |
sort(Int[] array)
Sorts the array of comparable objects. |
| Methods inherited from class Opus5.AbstractSorter |
sort, swap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int r
protected static final int R
protected static final int p
protected int[] count
| Constructor Detail |
public RadixSorter()
| Method Detail |
protected void sort()
Ints.sort in class AbstractSorterprotected void sort(Int[] array)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||