← LibraryDecision Making

Algorithms to Live By The Computer Science of Human Decisions

Brian Christian and Tom Griffiths
≈ From memory

Human life is a series of optimization problems, and by understanding the algorithms that govern computer science, we can make better decisions in our personal and professional lives.

Open Library

In one sentence

The book argues that the same mathematical principles used to solve complex computational problems—like finding the shortest path or optimizing a warehouse layout—can be applied to human dilemmas like choosing a career, finding a romantic partner, or deciding when to quit a job.

Why read this (and who it's for)

Most people approach decision-making through the lens of "intuition" or "gut feeling." While intuition is valuable, it often fails when faced with complex, multi-variable problems where the "right" answer is hidden behind a mountain of data. This book provides a structured, algorithmic framework for making decisions when you don't have all the information.

Who benefits most:

What you will be able to do after: You will be able to identify which "type" of problem you are facing (e.g., an exploration problem, a sorting problem, or an optimal stopping problem) and apply the specific algorithmic strategy suited for that problem to reach a better-informed conclusion.

The big idea

The central thesis of the book is that human life is essentially a series of optimization problems. Whether we are trying to find the best route to a destination, the best way to spend our time, or the best person to marry, we are trying to maximize a "reward" while minimizing a "cost."

The authors argue that because these problems are fundamentally similar to those faced by computers, we can borrow the "mental models" of computer science to solve them. For example, when you are trying to decide which restaurant to eat at, you are performing a "search" through a space of possibilities. When you are trying to decide how much to save for retirement, you are performing a "dynamic programming" calculation.

By understanding the trade-offs inherent in these algorithms—such as the cost of exploration versus the benefit of exploitation—you can stop making decisions based on sheer willpower and start making them based on mathematical logic. The book doesn't tell you what to choose; it gives you the tools to choose better.

Key ideas

Exploration vs. Exploitation

Greedy Algorithms and Local Optima

Optimal Stopping (The Secretary Problem)

Dynamic Programming

A* Search and Heuristics

Sorting and the Complexity of Choice

Game Theory and Nash Equilibrium

Frameworks & tools

The Exploration-Exploitation Framework (The $\epsilon$-Greedy Strategy)

Use this when you need to decide whether to try something new or stick to what works.

  1. Identify the "Exploit" baseline: What is the current "best" option you know? (e.g., your current job, your current workout routine).
  2. Define the "Exploration" goal: What information are you missing? (e.g., "Is there a higher-paying job in a different industry?").
  3. Apply the $\epsilon$-Greedy rule: Set a small percentage (e.g., 10%) of your time/effort toward exploration.
  4. Execute: Spend 90% of your time on the known "best" and 10% of your time actively testing the "unknown" options.
  5. Review: Periodically check if the "Exploration" yielded a better "Exploit" option. If so, switch your baseline.

The 37% Rule (Optimal Stopping)

Use this when you are searching for a "best" option among a sequence of alternatives (hiring, dating, house hunting).

  1. Determine the total pool: How many total options are there (or how much time do you have)?
  2. Calculate the 37% mark: Divide the total pool by 2.71 (roughly 37%).
  3. The Observation Phase: Go through the first 37% of the options without making a commitment. Simply observe and record the "best" option seen so far.
  4. The Decision Phase: Starting at the 38% mark, choose the very first option that is better than the "best" one seen during the observation phase.
  5. Commit: Stop searching immediately once you find that option.

The Heuristic Filter (A* Search)

Use this when you are overwhelmed by too many choices.

  1. Define the Goal: What is the ultimate outcome you want?
  2. Identify the "Cost-to-Come": What have you already invested? (Time, money, effort).
  3. Establish a Heuristic: What is the single most important "rule of thumb" that correlates with success? (e.g., "Does this house have at least 3 bedrooms?").
  4. Filter: Eliminate all options that do not meet the heuristic immediately.
  5. Search: Only evaluate the remaining options that passed the filter.

Memorable examples & stories

The Secretary Problem

The author describes a scenario where you are interviewing 100 candidates for a job. You must decide immediately after each interview whether to hire them or move on forever. The mathematical solution (the 37% rule) proves that "sampling" is the only way to succeed. Lesson: You cannot know what "best" looks like until you have seen enough of the "good."

The Traveling Salesperson

The classic problem of finding the shortest route between multiple cities. The authors use this to illustrate why "sorting" and "pathfinding" are so difficult—as you add more cities, the number of possible routes explodes. Lesson: Complexity grows exponentially, not linearly. Don't try to solve a 20-city problem with a 3-city strategy.

The Multi-Armed Bandit

The analogy of a gambler at a casino trying to find the best slot machine. It perfectly illustrates the tension between trying a new machine (exploration) and pulling the lever on the one that just paid out (exploitation). Lesson: Exploration is an investment in information; exploitation is the harvest of that information.

Key quotes

"The best way to make a decision is to realize that you are not making a decision; you are running an algorithm." (Paraphrased) Why it matters: It shifts the focus from "feeling" right to "structuring" the problem correctly.

"Exploration is the price we pay for information." (Paraphrased) Why it matters: It frames "trying new things" not as a whim, but as a necessary data-gathering step.

"Greedy algorithms are often the only way to handle the complexity of the real world." (Paraphrased) Why it matters: It validates the use of "good enough" heuristics when perfect calculation is impossible.

How to apply it

This week

Ongoing

Common pitfalls

Connects to

If you remember only three things

Internalize it

Fidelity note

I have a high level of confidence in the core concepts of this summary, specifically the Exploration vs. Exploitation trade-off, the Secretary Problem (Optimal Stopping), and the distinction between Greedy Algorithms and Dynamic Programming. These are the pillars of the book's argument. I am less certain about the specific nuances of the Game Theory section, as the book covers a wide range of game theory applications; however, the core application of Nash Equilibrium is standard. The "37% Rule" is a well-documented mathematical result that the authors rely on heavily.

Keep going — related reads

More from Brian Christian and Tom Griffiths