MOAL.algorithms.sorting package¶
Submodules¶
MOAL.algorithms.sorting.bogo_sort module¶
MOAL.algorithms.sorting.bubble_sort module¶
MOAL.algorithms.sorting.insertion_sort module¶
MOAL.algorithms.sorting.merge_sort module¶
-
MOAL.algorithms.sorting.merge_sort.
random
() → x in the interval [0, 1).¶
MOAL.algorithms.sorting.quick_sort module¶
MOAL.algorithms.sorting.selection_sort module¶
MOAL.algorithms.sorting.shell_sort module¶
MOAL.algorithms.sorting.threaded_sort module¶
-
class
MOAL.algorithms.sorting.threaded_sort.
ThreadSort
(sorting_func, threads=2)[source]¶ An experiment to divide a list of items up into sub-groups and then sort them individually on different threads. Doesn’t really perform better than the original algorithm, though it could be useful for processing individual lists separately.