Flood-fill & Diffusion Map

Dijkstra Maps

Jump Flood Algorithm (2006)

A flooding algorithm used in the construction of Voronoi diagrams and distance transforms.

Note that the ‘Jump Flood Algorithm’ is O(N log N) where N is the number of pixels. There is a better O(N) algorithm which can be parallelized over the number of rows/columns of an image, Unfortunately, it requires random access writes. - HN

Ressource

caption

Written on May 29, 2019, Last update on March 17, 2025
algorithm flood-fill diffusion map codingame pathfinding