https://github.com/gregorybchris/prisoners
Simulation of the 100 Prisoners problem
https://github.com/gregorybchris/prisoners
Last synced: 11 months ago
JSON representation
Simulation of the 100 Prisoners problem
- Host: GitHub
- URL: https://github.com/gregorybchris/prisoners
- Owner: gregorybchris
- Created: 2019-03-12T05:41:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-12T07:54:29.000Z (almost 7 years ago)
- Last Synced: 2025-01-12T15:12:35.587Z (about 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 100 Prisoners Simulation
## Background
This project was a collaboration with [Max Bernstein](https://github.com/tekknolagi/) and [Yuki Zaninovich](https://github.com/yzan424). After watching this [minutephysics video](https://www.youtube.com/watch?v=eivGlBKlK6M), we decided to code up a simulation to explain the [100 prisoners problem](https://en.wikipedia.org/wiki/100_prisoners_problem).
## Running the Simulation
Run a single simulation for 10 iterations with the command `python experiment.py`.
To visualize the results of many simulations with different parameter settings run `python viz.py`.