Tag percolation

Percolation: An Application of Union Find

Consider an \(N\times N\) square grid, where all the grids are black. Now let each square in the grid be white with probability \(p\)....