All Algorithms implemented in Python the-algorithms.com/
Go to file
2025-01-17 19:21:51 +00:00
.devcontainer Create GitHub Pages docs with Sphinx (#11888) 2024-10-08 19:09:28 +02:00
.github Bump astral-sh/setup-uv from 4 to 5 (#12445) 2024-12-28 00:18:08 +03:00
.vscode Create a Simultaneous Equation Solver Algorithm (#8773) 2023-06-02 07:14:25 +02:00
audio_filters Fix sphinx/build_docs warnings for audio_filters (#12449) 2024-12-22 22:55:22 -05:00
backtracking doctest all_combinations.py (#12506) 2025-01-12 17:54:23 -08:00
bit_manipulation use format to remove '0b' (#11307) 2024-06-01 18:41:40 -07:00
blockchain Ruff pandas vet (#10281) 2023-10-11 14:30:02 -04:00
boolean_algebra [pre-commit.ci] pre-commit autoupdate (#11322) 2024-03-13 07:52:41 +01:00
cellular_automata Fix sphinx/build_docs warnings for cellular_automata (#12454) 2024-12-23 06:56:42 -05:00
ciphers [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
compression [pre-commit.ci] pre-commit autoupdate (#12398) 2024-11-25 21:46:20 +01:00
computer_vision [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
conversions Tests electronics/electric_conductivity.py #9943 (#12437) 2024-12-30 13:36:55 +01:00
data_structures [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
digital_image_processing Enable ruff RUF002 rule (#11377) 2024-04-22 21:51:47 +02:00
divide_and_conquer Fix ruff (#11527) 2024-08-25 17:33:11 +02:00
docs [pre-commit.ci] pre-commit autoupdate (#12398) 2024-11-25 21:46:20 +01:00
dynamic_programming Create longest_increasing_subsequence_iterative.py (#12524) 2025-01-14 23:49:04 +03:00
electronics Tests electronics/electric_conductivity.py #9943 (#12437) 2024-12-30 13:36:55 +01:00
file_transfer Update receive_file.py (#8541) 2023-03-31 16:08:13 +02:00
financial Create GitHub Pages docs with Sphinx (#11888) 2024-10-08 19:09:28 +02:00
fractals Upgrade to Python 3.13 (#11588) 2024-09-30 23:01:15 +02:00
fuzzy_logic balance parenthesis (add closing bracket) (#11563) 2024-09-24 00:30:36 -07:00
genetic_algorithm Add doctests in all functions in basic_string.py (#11374) 2024-04-20 12:50:37 +02:00
geodesy Fix sphinx/build_docs warnings for geodesy (#12462) 2024-12-23 07:43:16 -05:00
geometry Implemented doctests for geometry-related classes (#12368) 2024-12-30 07:04:28 -08:00
graphics Add butterfly pattern implementation (#12493) 2025-01-15 00:24:36 +03:00
graphs - Implemented find_lanczos_eigenvectors to approximate the largest eigenvalues and corresponding eigenvectors of a graph based on its adjacency list. (#11906) 2024-12-30 20:00:30 +01:00
greedy_methods Fix sphinx/build_docs warnings for greedy_methods (#12463) 2024-12-23 08:11:58 -05:00
hashes [pre-commit.ci] pre-commit autoupdate (#12398) 2024-11-25 21:46:20 +01:00
knapsack [pre-commit.ci] pre-commit autoupdate (#11322) 2024-03-13 07:52:41 +01:00
linear_algebra Fix sphinx/build_docs warnings for linear_algebra (#12483) 2024-12-30 00:35:34 +03:00
linear_programming Upgrade to Python 3.13 (#11588) 2024-09-30 23:01:15 +02:00
machine_learning [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
maths [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
matrix [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
networking_flow [pre-commit.ci] pre-commit autoupdate (#11322) 2024-03-13 07:52:41 +01:00
neural_network [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
other [pre-commit.ci] auto fixes from pre-commit.com hooks 2025-01-17 19:21:51 +00:00
physics Added the algorithm to compute the time period of a simple pendulum (#10265) 2024-12-30 16:47:41 -08:00
project_euler Fix ruff (#12515) 2025-01-12 17:05:08 +01:00
quantum Upgrade to Python 3.12 (#9576) 2023-10-03 14:47:10 +05:30
scheduling Fix ruff (#11527) 2024-08-25 17:33:11 +02:00
scripts [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
searches Implemented Exponential Search with binary search for improved perfor… (#11666) 2024-10-05 10:34:48 -07:00
sorts add some documentation for heap sort (#9949) 2024-12-30 16:36:41 -08:00
source [pre-commit.ci] pre-commit autoupdate (#12398) 2024-11-25 21:46:20 +01:00
strings [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
web_programming [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
.gitattributes Create .gitattributes for Cross OS compatibility (#3410) 2020-10-17 07:25:25 +02:00
.gitignore chore: update .gitignore (#6263) 2022-07-23 07:56:59 +05:30
.gitpod.yml Change gitpod configuration for python3. (#1827) 2020-04-07 12:20:08 +02:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate -- ruff 2025 stable format (#12521) 2025-01-13 21:52:12 +01:00
CONTRIBUTING.md Create GitHub Pages docs with Sphinx (#11888) 2024-10-08 19:09:28 +02:00
DIRECTORY.md Fix ruff (#12515) 2025-01-12 17:05:08 +01:00
index.md Create GitHub Pages docs with Sphinx (#11888) 2024-10-08 19:09:28 +02:00
LICENSE.md Create GitHub Pages docs with Sphinx (#11888) 2024-10-08 19:09:28 +02:00
pyproject.toml Use Astral uv (#12402) 2024-12-05 10:04:48 +05:30
README.md chore: use newest Discord invite link (#8696) 2023-07-30 18:15:30 -07:00
requirements.txt fixes requirements error (#12438) 2024-12-29 16:53:31 +03:00
uv.lock Use Astral uv (#12402) 2024-12-05 10:04:48 +05:30

The Algorithms - Python

Gitpod Ready-to-Code Contributions Welcome Discord chat Gitter chat
GitHub Workflow Status pre-commit code style: black

All algorithms implemented in Python - for education

Implementations are for learning purposes only. They may be less efficient than the implementations in the Python standard library. Use them at your discretion.

Getting Started

Read through our Contribution Guidelines before you contribute.

Community Channels

We are on Discord and Gitter! Community channels are a great way for you to ask questions and get help. Please join us!

List of Algorithms

See our directory for easier navigation and a better overview of the project.