Percolation/Bond percolation: Difference between revisions

Restored visibility of one formula (had been invisible to most browsers)
mNo edit summary
(Restored visibility of one formula (had been invisible to most browsers))
Line 1:
{{task|Percolation Simulations}}{{Percolation Simulation}}
Given an <math>M \times N</math> rectangular array of cells numbered <math>\mathrm{cell}[0 .. M-1, 0 .. N-1]</math>, assume <math>M</math> is horizontal and <math>N</math> is downwards. Each <math>\mathrm{cell}[m, n]</math> is bounded by (horizontal) walls <math>\mathrm{hwall}[m, n]</math> and <math>\mathrm{hwall}[m+1, n]</math>; (vertical) walls <math>\mathrm{vwall}[m, n]</math> and <math>\mathrm{vwall}[m, n+1]</math>
 
Assume that the probability of any wall being present is a constant <math>p</math> where
9,655

edits