All Algorithms implemented in Python the-algorithms.com/
Go to file
Bruno Simas Hadlich e662a5aaef Added Burrows-Wheeler transform algorithm. (#1029)
* Added doctest and more explanation about Dijkstra execution.

* tests were not passing with python2 due to missing __init__.py file at number_theory folder

* Removed the dot at the beginning of the imported modules names because 'python3 -m doctest -v data_structures/hashing/*.py' and 'python3 -m doctest -v data_structures/stacks/*.py' were failing not finding hash_table.py and stack.py modules.

* Moved global code to main scope and added doctest for project euler problems 1 to 14.

* Added test case for negative input.

* Changed N variable to do not use end of line scape because in case there is a space after it the script will break making it much more error prone.

* Added problems description and doctests to the ones that were missing. Limited line length to 79 and executed python black over all scripts.

* Changed the way files are loaded to support pytest call.

* Added __init__.py to problems to make them modules and allow pytest execution.

* Added project_euler folder to test units execution

* Changed 'os.path.split(os.path.realpath(__file__))' to 'os.path.dirname()'

* Added Burrows-Wheeler transform algorithm.

* Added changes suggested by cclauss
2019-07-17 20:32:04 +02:00
.github Update FUNDING.yml 2019-07-06 14:04:27 +05:30
arithmetic_analysis Added Whitespace and Docstring (#924) 2019-07-01 16:10:18 +08:00
backtracking Add combinations (#1015) 2019-07-14 07:45:54 +02:00
boolean_algebra all valid python 3 2018-10-20 14:45:08 -05:00
ciphers #315 Renamed all files to snake_case (#993) 2019-07-11 11:16:42 +02:00
compression Added Burrows-Wheeler transform algorithm. (#1029) 2019-07-17 20:32:04 +02:00
conversions added decimal to hexadecimal conversion (#977) 2019-07-09 09:03:18 +02:00
data_structures Added doctest and more explanation about Dijkstra execution. (#1014) 2019-07-17 01:09:53 +02:00
digital_image_processing add canny edge detection algorithm and modify sobel_filter (#991) 2019-07-10 22:41:05 +08:00
divide_and_conquer updates in closest pair of points algorithm (#979) 2019-07-09 19:50:43 +04:30
dynamic_programming Update max_sub_array.py (#1000) 2019-07-17 18:12:24 +02:00
file_transfer_protocol reduce indentation (#741) 2019-03-28 01:46:46 +08:00
graphs Travis CI: Add pytest --doctest-modules graphs (#1018) 2019-07-17 06:07:25 +02:00
hashes added enigma machine algorithm (#932) 2019-07-07 12:19:15 +05:30
linear_algebra_python Update README.md 2018-11-12 23:38:08 +05:30
machine_learning Log_likelihood update (#1008) 2019-07-13 21:54:38 +02:00
maths Update 3n+1.py (#996) 2019-07-13 09:04:43 +02:00
matrix Add rotate matrix problem (#1021) 2019-07-15 08:48:35 +02:00
networking_flow snake_case all the things 2018-10-19 17:14:25 -05:00
neural_network Updated README 2019-07-06 11:11:20 +05:30
other Log_likelihood update (#1008) 2019-07-13 21:54:38 +02:00
project_euler Added doctest and more explanation about Dijkstra execution. (#1014) 2019-07-17 01:09:53 +02:00
scripts Updated ~script.py per #978 (#1013) 2019-07-13 21:50:37 +02:00
searches Travis CI: Run black, doctest, flake8, mypy, and pytest (#964) 2019-07-08 23:27:51 +08:00
sorts Update Bucket Sort time complexity analysis (#918) 2019-07-12 23:16:14 +08:00
strings #315 Renamed all files to snake_case (#993) 2019-07-11 11:16:42 +02:00
traversals Adding function for actual level order traversal (#699) 2019-02-17 00:16:43 +08:00
.gitignore Update .gitignore (#841) 2019-05-26 22:03:53 +05:30
.travis.yml Travis CI: Add pytest --doctest-modules graphs (#1018) 2019-07-17 06:07:25 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md to match #964 (#969) 2019-07-08 23:38:47 +08:00
DIRECTORY.md Updated ~script.py per #978 (#1013) 2019-07-13 21:50:37 +02:00
LICENSE.md Create CONTRIBUTING.md (#864) 2019-06-02 12:14:18 +08:00
README.md Travis CI: Run black, doctest, flake8, mypy, and pytest (#964) 2019-07-08 23:27:51 +08:00
requirements.txt Pytest the entire repo (#980) 2019-07-10 06:59:39 +02:00

The Algorithms - Python

Donate   Gitter chat   Open in Gitpod

All algorithms implemented in Python (for education)

These implementations are for learning purposes. They may be less efficient than the implementations in the Python standard library.

Owners

Anup Kumar Panwar   [Gmail   GitHub   LinkedIn]

Chetan Kaushik   [Gmail   GitHub   LinkedIn]

Contribution Guidelines

Read our Contribution Guidelines before you contribute.

Community Channel

We're on Gitter! Please join us.

Algorithms

See our directory.