|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jds.sort.InsertionSort
InsertionSort - implementation of the insertion sort algorithm; for use with book Classic Data Structures in Java by Timothy A Budd, published by Addison-Wesley, 2001.
Indexed
Constructor Summary | |
InsertionSort(java.util.Comparator t)
initialize the Bubble Sort algorithm |
Method Summary | |
void |
sort(Indexed v)
rearrange collection into asending order |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public InsertionSort(java.util.Comparator t)
t
- the Comparator used to place values in sequenceMethod Detail |
public void sort(Indexed v)
data
- the values to be ordered
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |