Skip to content

Commit 1b941f1

Browse files
author
Iason Rodis
committed
minor change
1 parent 5ea8a71 commit 1b941f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assignment1-percolation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Model: We model a percolation system using an N-by-N grid of sites. Each site is either open or blocked. A full site is an open site that can be connected to an open site in the top row via a chain of neighboring (left, right, up, down) open sites. We say the system percolates if there is a full site in the bottom row. In other words, a system percolates if we fill all open sites connected to the top row and that process fills some open site on the bottom row. (For the insulating/metallic materials example, the open sites correspond to metallic materials, so that a system that percolates has a metallic path from top to bottom, with full sites conducting. For the porous substance example, the open sites correspond to empty space through which water might flow, so that a system that percolates lets water fill open sites, flowing from top to bottom.)
44

55
## API:
6-
`
6+
``
77
public class Percolation {
88
public Percolation(int N) // create N-by-N grid, with all sites blocked
99
public void open(int i, int j) // open site (row i, column j) if it is not open already
@@ -13,7 +13,7 @@ public class Percolation {
1313

1414
public static void main(String[] args) // test client (optional)
1515
}
16-
`
16+
``
1717

1818

1919

0 commit comments

Comments
 (0)