Skip to content

turtletongue/percolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project

This program is written to estimate the value of the percolation threshold via Monte Carlo simulation. (Specification)

Percolation.java

This class models percolation system.

PercolationStats.java

This class estimates the value of the percolation threshold.

How to run program

First of all you should install algs4.jar library into your project.

Thereafter you can get the 95% confidence interval for the percolation threshold by running program these ways:

java PercolationStats 200 100
java PercolationStats 2 10000
java PercolationStats 2 100000

PercolationStats main method takes two arguments: n and T, performs T independent computational experiments on an n-by-n grid.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages