PyBlog © 2016 – 2026

Algorithms

10 posts tagged “Algorithms”.

Breath-First Search using Stack

Graph Theory

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

Graph Theory: Search and Traversal

Graph Theory

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

Graph Theory: Introduction

Graph Theory

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: Tessellation

Spatial Index

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: Grid Systems

Spatial Index

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: Space-Filling Curves

Spatial Index

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

Conceptualization of a Cartogram

GSoC

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

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

Spatial Index

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

Floating Point Round Off Errors in Geometric Algorithms

Algorithms

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

External Merge Sort using Priority Queue

Algorithms

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