[−][src]Module buldak::smart_bubble
smart bubble sort algorithm.
O(N²)
This algorithm eliminates unnecessary repetitions in bubble sort.
Functions
sort | Sort in ascending order using a smart bubble sort algorithm. |
sort_by | It takes a comparator function to determine the order, and sorts it using a smart bubble sort algorithm. |
sort_reverse | Sort in descending order using a smart bubble sort algorithm. |