This small web application can be used to visualize a Monte Carlo simulation that estimates the percolation threshold of an n-by-n grid.
You can find the WIP demo here.
Percolation is an abstract process that can be used to model different physical phenomena. It can be used to model, for example, what fraction of materials need to be metallic so that a system is an electric conductor.
This visualisation is heavily inspired by the Percolation assignment developed by Robert Sedgewick and Kevin Wayne for the Algorithms, Part I course.
The implementation of the weighted quick union find is based on the one given in the course but rewritten in JavaScript.