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
- Host: GitHub
- URL: https://github.com/brpy/100-prisoners-problem
- Owner: brpy
- Created: 2022-07-03T10:55:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-03T11:02:24.000Z (almost 4 years ago)
- Last Synced: 2025-07-18T02:48:57.712Z (11 months ago)
- Topics: numpy, python, simulation, veritasium
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
[](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`