Skip to content

stephen-lazarionok/eight-drawers-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Eight drawers problem

Description

You have a chest of 8 drawers. With probability 1/2, you put a letter in one of the drawers. With probability 1/2, you don't put a letter in any drawer. I open the first 7 drawers, all are empty. What is the probability there is a letter in the 8th drawer?

Solutions

A solution based on Bayes' theorem

View solution

A solution based on method Monte Carlo
git clone ...
mvn install exec:java -Dexec.mainClass=MonteCarloSolution

About

A solution for 'eight drawers task' on Scala using method Monte Carlo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages