Posts

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

Python context manager and the 'with' statement

Python context managers simplify resource management by providing automatic cleanup. You can easily define custom managers with just a few lines of code.
6 min read
Python

Hello from Prof. Schimd

Let me introduce myself and explain why I think this blog is different from others.
2 min read