An open API service indexing awesome lists of open source software.

https://github.com/brpy/100-prisoners-problem

Simulation of 100 Prisoners Problem using Python
https://github.com/brpy/100-prisoners-problem

numpy python simulation veritasium

Last synced: about 2 months ago
JSON representation

Simulation of 100 Prisoners Problem using Python

Awesome Lists containing this project

README

          

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](https://img.youtube.com/vi/iSNsgj1OCLA/maxresdefault.jpg)](https://www.youtube.com/watch?v=iSNsgj1OCLA)

---
How to run:

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

python -m pip install -r requirements.txt
python simulate.py
```
---
Options:

```sh
python simulate.py -N -n
```
by default, `N = 1000, n = 100`