Skip to content

brpy/100-prisoners-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Simulation of 100 Prisoners Problem using Python and Numpy:


100 Prisoners Problem:

Came across this interesting problem from veritasium's youtube channel

100 Prisoners Problem


How to run:

git clone github.com/brpy/100-prisoners-problem/
cd 100-prisoners-problem

python -m pip install -r requirements.txt
python simulate.py

Options:

python simulate.py -N <no. of simulations> -n <no. of prisoners>

by default, N = 1000, n = 100

About

Simulation of 100 Prisoners Problem using Python

Topics

Resources

Stars

Watchers

Forks

Languages