ear in Mind

A blog about AI, programming, computer science, teaching and lots more...

Understanding the Dijkstra Algorithm in Python

A gentle introduction to Dijkstra algorithm for computing shortest paths on weighted graphs. We'll explore the intuition, the data structures behind it, and a clean Python implementation.
5 min read
AlgorithmsGraph TheoryPython

Understanding Breadth-First Search (BFS) in Python

A simple introduction to the Breadth-First Search (BFS) algorithm using Python. We’ll walk through the intuition, structure, and a working implementation with annotated code.
5 min read
AlgorithmsGraph TheoryPython