The algorithm begins with scanning the grid cell by cell and check if the cell is occupied, if the cell is occupied then this cell must be labelled with a cluster label.
The algorithm begins with scanning the grid cell by cell and check if the cell is occupied, if the cell is occupied. This cell must be labelled with a cluster label.