Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Solving an Impossible Riddle with Code

Rob Mulla via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore a Python-based simulation of the 100 prisoner riddle problem in this 23-minute video. Learn how to code and analyze different strategies, including random and loop approaches, to solve this seemingly impossible puzzle. Dive into graph network visualization and discover the significance of the longest loop in determining the solution's success rate. Access the accompanying Jupyter notebook for hands-on practice and further experimentation with the code.

Syllabus

Impossible Riddle
The Riddle
Simulating the Boxes
Random Strategy
Loop Strategy
Graph Network
Longest Loop

Taught by

Rob Mulla

Reviews

Start your review of Solving an Impossible Riddle with Code

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.