PyBlog  Front Page
Subject

Algorithms

Every dispatch filed under “Algorithms” · 10 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: Tessellation

Jun 17, 2024 · 13 min

Tessellation for spatial indexing divides space into non-overlapping shapes for efficient data management. The Uber H3 grid system uses hexagonal cells, offering...

Spatial Index

Spatial Index: Grid Systems

Jun 12, 2024 · 11 min

Grid systems in spatial indexing, including Geohash and Google S2, encode geographic locations for efficient spatial data management. Geohash uses a Z-order...

Spatial Index

Spatial Index: Space-Filling Curves

Jun 11, 2024 · 10 min

Spatial indexes optimize multi-dimensional data querying using space-filling curves like Z-order and Hilbert curves. Z-order curves employ a recursive Z pattern, and...

GSoC

Conceptualization of a Cartogram

Jul 2, 2022 · 14 min

What a cartogram is and how it reshapes geography by statistical data such as population, laying the conceptual groundwork for building one....

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...

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