Final Answer:
In this assignment, the goal is to experimentally verify the percolation constant by simulating the percolation process in a square grid. The percolation probability is determined by incrementally making cells vacant and recording the proportion of vacancies at which the grid percolates. This involves implementing a simulation with a randomized approach to making cells vacant and utilizing the union-find algorithm to detect percolation.
Step-by-step explanation:
The approach involves creating an n×n grid, initially occupied, and iteratively making random cells vacant until the grid percolates. The proportion of vacancies at which percolation occurs is recorded.
Randomizing the array of cell coordinates is crucial for avoiding bias in making cells vacant. The Fisher-Yates shuffle algorithm is employed to achieve this, ensuring a uniform and unbiased selection of cells to make vacant.
To detect percolation, the union-find algorithm is implemented. Connections between vacant cells and their neighbors are established, and percolation is identified by checking if the top and bottom rows belong to the same connected component.
The addition of fictitious "plates" connected to the top and bottom rows reduces the percolation detection cost from O(n²) to a more efficient operation. The reporting requirements include submitting the program used for percolation calculations, a brief report with obtained numbers, and a graph illustrating the percolation probability against the occupancy fraction.
In conclusion, this assignment involves a systematic simulation to experimentally determine the percolation constant. Utilizing randomized cell selection and efficient percolation detection algorithms ensures accurate and unbiased results, contributing to a better understanding of percolation in square grids.