Skip to content

Zaynn-lea/percolation_chalenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Percolation

This came from the fact I wanted to learn Java, so I asked a teacher for a challenge I could do on my own.

Problems statement :

You have a bunch of ball arranged in a grid as show in the solutions_sketch.jpg.

Each ball have can have a certain property accorded to a probability p. We are not interested about this probability, just that a ball have it or not.

Then our goal is to know if there is percolation. Meaning that there exists on or more path from the top of the grid to the bottom of the grid.

A path is qualified 2 properties :

  1. All the balls of the path must have the property
  2. All the balls of the path must be direct neighbors

In the futtur :

As with most projects, there is still more to do, still ways to improve it.

For this one, it would be to add an ascii display of the grid, extend it to the 3rd dimension, add the possibility of doing multiple simulations and maybe even some statistic.

About

a chalenge a teacher gave me in calculus 1 to give me something to learn Java

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages