You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2024. It is now read-only.
Write a program to estimate the value of the percolation threshold via Monte Carlo simulation.
Percolation data type
To model a percolation system, create a Percolation data type.
Percolation stats
To perform a series of computational experiments, create a PercolationStats data type.
Bonus
At the moment, the backwash problem in Percolation is solved using two union-find objects, but it is also possible to solve this problem through one union-find object. To do this, you can change the grid array type to int and thus store not only the open/closed state of the cell, but also about its connection with the lower or upper virtual cell.