An open API service indexing awesome lists of open source software.

https://github.com/gtalarico/python-algorithms

Python Algorithms
https://github.com/gtalarico/python-algorithms

Last synced: 9 days ago
JSON representation

Python Algorithms

Awesome Lists containing this project

README

        

# Python Visual Algorithms

### Motivation
* Practice Algorithms
* It's more fun when you can see them

### Usage

```
$ python -m algos --help
$ python -m algos sort bubble
$ python -m algos sort selection --speed 0.2 --height 10 --width 10
$ python -m algos brackets "((((((())[])))"
```

### [Sorting](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability)

- [X] Bubble Sort
- [X] Selection Sort
- [X] Insertion Sort
- [X] Merge Sort
- [ ] Heap Sort
- [ ] Quick Sort
- [ ] Bucket Sort

#### Screenshots

##### Bubble
![bubble](/gifs/sort_bubble.gif)
##### Selection
![selection](/gifs/sort_selection.gif)
##### Insertion
![insertion](/gifs/sort_insertion.gif)
##### Merge Sort
![merge](/gifs/sort_merge.gif)

### Others
- [X] Brackets
- [ ] Land & River

### Resources

* [Computational Geometry by David Mount](https://www.cs.umd.edu/class/spring2012/cmsc754/Lects/cmsc754-lects.pdf)
* [Big O Cheatsheet](https://www.bigocheatsheet.com/)
* [jwasham/coding-interview-university](https://github.com/jwasham/coding-interview-university)

#### Similar Projects

* [MTrajK/coding-problems](https://github.com/MTrajK/coding-problems)
* [prabhupant/python-ds](https://github.com/prabhupant/python-ds)
* [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python)
* [alisianoi/algos-py](https://github.com/alisianoi/algos-py)