{"id":37347208,"url":"https://github.com/riteshp2001/percolation-system","last_synced_at":"2026-01-16T04:00:11.174Z","repository":{"id":185076871,"uuid":"565816891","full_name":"Riteshp2001/Percolation-System","owner":"Riteshp2001","description":"This is the visualization tool in java-programming language to estimate the value of the percolation threshold.  via Monte Carlo simulation. ","archived":false,"fork":false,"pushed_at":"2022-11-28T07:26:34.000Z","size":1274,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-28T03:17:07.454Z","etag":null,"topics":["algorithm-challenges","java-8","javaswings","union-find"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Riteshp2001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-11-14T11:44:45.000Z","updated_at":"2022-11-27T16:27:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"d606c63c-a92b-4062-a059-48b8b0cc193b","html_url":"https://github.com/Riteshp2001/Percolation-System","commit_stats":null,"previous_names":["riteshp2001/percolation-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Riteshp2001/Percolation-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Riteshp2001%2FPercolation-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Riteshp2001%2FPercolation-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Riteshp2001%2FPercolation-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Riteshp2001%2FPercolation-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Riteshp2001","download_url":"https://codeload.github.com/Riteshp2001/Percolation-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Riteshp2001%2FPercolation-System/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-challenges","java-8","javaswings","union-find"],"created_at":"2026-01-16T04:00:10.381Z","updated_at":"2026-01-16T04:00:11.136Z","avatar_url":"https://github.com/Riteshp2001.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Percolation-System\nThis is the visualization tool in java-programming language to estimate the value of the percolation threshold via Monte Carlo simulation. \nAll thanks to sir Sedgewick and sir Kevin Wayne for creating this awesome course project on coursera [ALGORITHMS](https://in.coursera.org/learn/algorithms-part1).\nBasically it's an extended version of Union-Find algorithm in which we estimate the threshold of system when it percolates (in short when the upper bound interacts with the lower bound of the Matrix )\n\n# Problem Statement\n\n**Write a program to estimate the value of the percolation threshold via Monte Carlo simulation.**\n\ndownload the algs4.jar file from repo and install it into your desired compiler.\nTo access a class in algs4.jar, you need an import statement, such as the ones below:\n\nimport edu.princeton.cs.algs4.StdRandom.\n\nimport edu.princeton.cs.algs4.StdStats.\n\nimport edu.princeton.cs.algs4.WeightedQuickUnionUF.\n\nNote that your code must be in the default package; if you use a package statement, the autograder will not be able to assess your work.\n\n**Percolation**. \nGiven a composite systems comprised of randomly distributed insulating and metallic materials: what fraction of the materials need to be metallic so that the composite system is an electrical conductor? Given a porous landscape with water on the surface (or oil below), under what conditions will the water be able to drain through to the bottom (or the oil to gush through to the surface)? Scientists have defined an abstract process known as percolation to model such situations.\n\n**The Model.**\nWe model a percolation system using an n-by-n grid of sites. Each site is either open or blocked. A full site is an open site that can be connected to an open site in the top row via a chain of neighboring (left, right, up, down) open sites. We say the system percolates if there is a full site in the bottom row. In other words, a system percolates if we fill all open sites connected to the top row and that process fills some open site on the bottom row. (For the insulating/metallic materials example, the open sites correspond to metallic materials, so that a system that percolates has a metallic path from top to bottom, with full sites conducting. For the porous substance example, the open sites correspond to empty space through which water might flow, so that a system that percolates lets water fill open sites, flowing from top to bottom.)\n\n# Youtube Link\n\nClick on the image to play demonstration video.\n\n[![IMAGE ALT TEXT](http://img.youtube.com/vi/GNBNFPVjPA4/0.jpg)](http://www.youtube.com/watch?v=GNBNFPVjPA4 \"Percolation System\")\n\n-\u003e one of example of how the percolation system visualization looks like if the system percolates is:\n\n[![mutt dark](https://github.com/Riteshp2001/Percolation-System/blob/main/Test_Data/sedgewick60.png)](https://github.com/Riteshp2001/Percolation-System/blob/main/Test_Data/sedgewick60.png)\n\n**Be sure to test out other file data :)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friteshp2001%2Fpercolation-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friteshp2001%2Fpercolation-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friteshp2001%2Fpercolation-system/lists"}