queue on pseudo stack Algorithm

It is used in the" bucket" fill tool of paint programs to fill connected, similarly-colored areas with a different color, and in games such as Go and Minesweeper for determine which pieces are cleared. Flood fill, also named seed fill, is an algorithm that determines the area connected to a given node in a multi-dimensional array.

queue on pseudo stack source code, pseudocode and analysis