{"id":21626034,"url":"https://github.com/lotrien/percolation","last_synced_at":"2025-03-18T20:21:27.958Z","repository":{"id":39560932,"uuid":"164495850","full_name":"lotrien/percolation","owner":"lotrien","description":"Site percolation (Monte Carlo simulation)","archived":false,"fork":false,"pushed_at":"2023-01-10T23:05:27.000Z","size":472,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T01:44:29.836Z","etag":null,"topics":["algorithm","monte-carlo-simulation","percolation","simulator","site-percolation-simulation","union-find","visualization"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lotrien.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-07T21:07:08.000Z","updated_at":"2023-03-29T11:46:33.000Z","dependencies_parsed_at":"2023-02-08T20:30:28.954Z","dependency_job_id":null,"html_url":"https://github.com/lotrien/percolation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotrien%2Fpercolation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotrien%2Fpercolation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotrien%2Fpercolation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotrien%2Fpercolation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lotrien","download_url":"https://codeload.github.com/lotrien/percolation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244297871,"owners_count":20430347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","monte-carlo-simulation","percolation","simulator","site-percolation-simulation","union-find","visualization"],"created_at":"2024-11-25T01:11:46.930Z","updated_at":"2025-03-18T20:21:27.934Z","avatar_url":"https://github.com/lotrien.png","language":"JavaScript","readme":"# Site percolation (Monte Carlo simulation)\n\n![Build Status](https://github.com/lotrien/percolation/actions/workflows/deploy.yml/badge.svg)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n[DEMO](https://percolation.yetanother.one/)\n\nI model the system as an n-by-n grid of sites. Each site is either blocked (black) or open (white);\nopen sites are initially empty. A full site is an open site that can be connected to an open site\nin the top row via a chain of neighboring (up, down, left, right) open sites.\n\nIf there is a full site in the bottom row, then we say that the system percolates.\n\n### Algorithm:\n\n\u003e A disjoint-set (also called a _Union-Find_) data structure is a data structure that keeps track of a set\n\u003e of elements partitioned into a number of disjoint (non-overlapping) subsets.\n\nA union-find algorithm is an algorithm that performs two useful operations on such a data structure:\n - **Union**: Join two subsets into a single subset.\n - **Find**: Determine which subset a particular element is in. This can be used for determining if\ntwo elements are in the same subset.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flotrien%2Fpercolation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flotrien%2Fpercolation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flotrien%2Fpercolation/lists"}