Overview
Flood Fill expands from a starting pixel to neighboring pixels that match a fill rule.
Fills a connected region starting from one seed point.
Compact metadata for implementation and discovery.
Flood Fill expands from a starting pixel to neighboring pixels that match a fill rule.
Quick facts
Runtime and memory behavior at a glance.
Best
O(a)
Average
O(a)
Worst
O(w h)
Space
O(w h)
Show a colored region expanding from a seed cell.
Flood fill is graph traversal over a grid with a domain-specific neighbor and match rule.
What each reference supports for this entry.
Image-processing textbook support for Flood Fill's pixel-neighborhood operations, filtering rules, and image-analysis role.
Good next jumps from the relationship graph, ranked for useful discovery.
Flood fill often uses BFS-style frontier expansion over grid cells.
Connected component labeling can be implemented with flood-fill traversal.