PyBlog  Front Page
Subject

Data structures

Every dispatch filed under “Data Structures” · 9 entries.

Graph Theory

Breath-First Search using Stack

Jul 21, 2024 · 4 min

Implementing breadth-first search with a stack instead of the usual queue, and what changes when you flip the underlying data structure.

Graph Theory

Graph Theory: Search and Traversal

Jul 17, 2024 · 9 min

Understanding BFS and DFS graph traversal, the difference between visiting and exploring a node, with implementations and examples.

Graph Theory

Graph Theory: Introduction

Jul 14, 2024 · 9 min

A diagram-first introduction to graph theory from a computer science angle, covering what graphs are, the different kinds, and their real-world uses....

Spatial Index

Spatial Index: R Trees

Jun 26, 2024 · 8 min

A deep dive into the R-tree, the data-driven spatial index built on bounding rectangles, and how it powers range and nearest-neighbor queries....

Databases

B Trees and B+ Trees

Feb 15, 2024 · 7 min

How B-trees and B+ trees organize data on disk for fast lookups, starting from disk structure and why databases lean on them...

Spatial Index

Hybrid Spatial Index: Quad-KD and R-KD trees

Apr 10, 2022 · 8 min

Introducing hybrid quad-kd and r-kd tree structures that combine the quadtree, KD-tree, and R-tree to speed up search over mixed point and...

Algorithms

Floating Point Round Off Errors in Geometric Algorithms

Mar 14, 2022 · 5 min

Why geometric algorithms like the convex hull break under floating point arithmetic, and the round off errors that produce non-convex or never-ending...

Spatial Index

Hybrid Spatial Data Structures: Introduction

Mar 6, 2022 · 2 min

An introduction to spatial indexing, comparing space-driven structures like the quadtree and KD-tree with data-driven ones like the R-tree.

Algorithms

External Merge Sort using Priority Queue

Mar 1, 2022 · 3 min

How external merge sort handles datasets too large for memory, using a split phase and a priority queue driven K-way merge, walked...

PYBLOG © 2016 – 2026 · Set in Playfair Display & Open Sans · Printed on the web