/algo-viz

Algorithm animations in matplotlib

Primary LanguagePython

Algorithm Visualization

Watching animations is great for building intuition about how various algorithms work, and making them yourself is even better! All animations were made in Python with matplotlib; the gifs were screencapped.


Bubble Sort

Animation of the bubble sort algorithm on a bar graph

Merge Sort

Animation of the merge sort algorithm on a bar graph

RanSaC (Random Sample Consensus) in 1D

Animation of the RanSaC algorithm in one dimension

RanSaC in 2d

Animation of the RanSaC algorithm in two dimensions

K Nearest Neighbors

Animation of the K Nearest Neighbors algorithm