TheAlgorithms-Python/sorts
Christian Clauss 4b79d771cd
Add more ruff rules (#8767)
* Add more ruff rules

* Add more ruff rules

* pre-commit: Update ruff v0.0.269 -> v0.0.270

* Apply suggestions from code review

* Fix doctest

* Fix doctest (ignore whitespace)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-26 09:34:17 +02:00
..
__init__.py
bead_sort.py refactor: Indent ... for visual purposes (#7744) 2022-10-27 19:42:30 +02:00
binary_insertion_sort.py Working binary insertion sort in Python (#8024) 2023-05-11 06:50:32 +12:00
bitonic_sort.py Remove useless code in doctests (#7733) 2022-10-27 22:52:00 +02:00
bogo_sort.py Update bogo_sort.py (#8144) 2023-02-20 11:14:01 +13:00
bubble_sort.py For the better understanding of time taken. (#6583) 2022-10-30 11:43:41 +01:00
bucket_sort.py Fix bug in bucket_sort.py (#6005) 2022-05-13 04:28:51 +08:00
circle_sort.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
cocktail_shaker_sort.py
comb_sort.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
counting_sort.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
cycle_sort.py
double_sort.py Add flake8 pluin flake8 bugbear to pre-commit (#7132) 2022-10-13 18:03:06 +02:00
dutch_national_flag_sort.py Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
exchange_sort.py
external_sort.py Replace bandit, flake8, isort, and pyupgrade with ruff (#8178) 2023-03-15 13:58:25 +01:00
gnome_sort.py
heap_sort.py
insertion_sort.py
intro_sort.py
iterative_merge_sort.py Fix iter_merge_sort bug (#6153) 2022-05-21 22:02:53 +08:00
merge_insertion_sort.py Reduce the complexity of sorts/merge_insertion_sort.py (#7954) 2022-12-24 15:57:28 +01:00
merge_sort.py Format docs (#7821) 2022-10-29 08:26:19 +02:00
msd_radix_sort.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
natural_sort.py
normal_distribution_quick_sort.md Remove useless code in doctests (#7733) 2022-10-27 22:52:00 +02:00
odd_even_sort.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
odd_even_transposition_parallel.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
odd_even_transposition_single_threaded.py
pancake_sort.py
patience_sort.py
pigeon_sort.py
pigeonhole_sort.py
quick_sort_3_partition.py
quick_sort.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
radix_sort.py refactor: Move constants outside of variable scope (#7262) 2022-10-16 15:03:29 +05:30
random_normal_distribution_quicksort.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
random_pivot_quick_sort.py Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions (#7062) 2022-10-13 00:54:20 +02:00
README.md Updated info (#7866) 2022-10-30 10:08:54 +01:00
recursive_bubble_sort.py
recursive_insertion_sort.py Remove useless code in doctests (#7733) 2022-10-27 22:52:00 +02:00
recursive_mergesort_array.py fix: use += in sorts/recursive_mergesort_array.py (#5019) 2021-10-27 00:43:46 +08:00
recursive_quick_sort.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
selection_sort.py
shell_sort.py
shrink_shell_sort.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
slowsort.py
stooge_sort.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
strand_sort.py fix: no implicit optional (#7984) 2022-11-15 14:55:14 +01:00
tim_sort.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
topological_sort.py
tree_sort.py Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions (#7062) 2022-10-13 00:54:20 +02:00
unknown_sort.py
wiggle_sort.py

Sorting Algorithms

Sorting is the process of putting data in a specific order. The way to arrange data in a specific order is specified by the sorting algorithm. The most typical orders are lexical or numerical. The significance of sorting lies in the fact that, if data is stored in a sorted manner, data searching can be highly optimised. Another use for sorting is to represent data in a more readable manner.

This section contains a lot of important algorithms that helps us to use sorting algorithms in various scenarios.

References