Java Program to Implement Flood Fill Algorithm - Sanfoundry
Java Program to Implement Flood Fill Algorithm
This is a Java Program to Implement Flood Fill Algorithm. Flood fill, also called seed fill, is an algorithm that determines the area connected to a given node in a multi-dimensional array. 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 determining which pieces are cleared. When applied on an image to fill a particular bounded area with color, it is also known as boundary fill. Here 'P' is for passage, 'O' for obstacle and 'W' for water flow.
Here is the source code of the Java Program to Implement Flood Fill Algorithm. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.
Read full article from Java Program to Implement Flood Fill Algorithm - Sanfoundry
No comments:
Post a Comment