Algorithms to Live By

A few short, playable ways to get a feel for the ideas in the book before we dig into the math.

New games get added as we work through the chapters โ€” check back throughout the unit.

Introduction

Design a Search

Click through a sorted list to find a number in as few clicks as possible โ€” then see how your approach compares to linear and binary search.

Chapter 1 ยท Coming soon

๐Ÿ’ Optimal Stopping

The secretary problem โ€” when do you stop looking and commit? (A few different versions are on the way.)

Chapter 2 ยท Coming soon

Explore / Exploit

Try the new restaurant, or go back to your favorite?

Chapter 3 ยท Coming soon

Sorting

Untangle a messy list โ€” and see why the method matters as much as the answer.