Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 1.75 KB

README.md

File metadata and controls

38 lines (21 loc) · 1.75 KB

Implementations of algorithms in python for Fun

This repo implements a variety of algorithms leveraging powerful python features: heapq, dataclasses, __getitem__, generators, namedtuple, defaultdict, ...

matplotlib and rich are used to visualize the algorithms step by step.

Installation

I used python 3.9.x.

pip install -r requirements.txt

List of algorithms

  • Find the minimum number of coins among permitted values to reach a value using dynamic programming: mini_coin_dynamic.py

  • Generate a graph using random walk and random extra connections and find the shortest path using Dijkstra algorithm.