All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----jdsl.core.algo.sorts.ListBubbleSort
First inserts a sentinel to avoid needing to check if we're swapping with the outer loop locator.
public ListBubbleSort()
public void sort(Sequence S, Comparator c)
First inserts a sentinel to avoid needing to check if we're swapping with the outer loop locator. After that, we can run an analogue of the array-based bubble-sort.
All Packages Class Hierarchy This Package Previous Next Index