mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-11-21 06:32:47 -05:00
| .. | ||
| bubble_sort.py | ||
| bucket_sort.py | ||
| counting_sort.py | ||
| insertion_sort.py | ||
| merge_sort.py | ||
| quick_sort.py | ||
| README.md | ||
| seletction_sort.py | ||
sorting
-
inversions in a sequence is a pair of elements that are out of order with respect to the ordering relation. a sorting algorithm is a sequence of operations that reduces inversions to zero.
-
a topological sort of a directed graph is a way of ordering the list of nodes such that if
(a, b)is a edge of the graph, thenaappears beforeb. this type of sorting does not work if a graph has cycles or is not directed. -
because of their efficiencies, you usually want to use either merge sort or quick sort (
O(N log (N)). -
other type of sorting algorithms can be seen below and in this directory's source code: