This repository contains the Python source code for the algorithms in the textbook Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
The official Java source code is here.
Make a Python implementation of the library so that a Python programmer can follow this book easily or prefer to demonstrate the algorithms using Python.
Try to keep the interface and variable name consistent with the original book while writing idiomatic Python code.
pip install algs4
from algs4.stack import Stack
-
1 FUNDAMENTALS
-
2 SORTING
-
3 SEARCHING
-
4 GRAPHS
- Graph
- Digraph
- MST
- Shortest Paths
-
5 STRING
This code is released under MIT.
Issue reports and code fixes are welcome. please follow the same style as the code in the repository and add test for your code.