Algorithms to Live By - Deepstash
Algorithms to Live By

Justin Brown's Key Ideas from Algorithms to Live By
by Brian Christian, Tom Griffiths

Ideas, facts & insights covering these topics:

13 ideas

Ā·

157 reads

Explore the World's Best Ideas

Join today and uncover 100+ curated journeys from 50+ topics. Unlock access to our mobile app with extensive features.

Optimal Stopping

Optimal Stopping

The Optimal Stopping Problem provides a mathematical solution to when to stop looking and decide. The 37% Rule works like this:

  • Determine how many options you'll likely encounter (n)

  • Look at the first 37% of options (n/e, where e is Euler's number)

  • Remember the best option seen so far, but don't choose any

  • After the 37% mark, select the first option better than all previous ones

This approach guarantees finding the best option 37% of the time—mathematically proven to be the best possible success rate. Applications include hiring, dating, apartment hunting, and any sequence of irreversible decisions.

2

10 reads

Explore vs. Exploit

Explore vs. Exploit

The Explore/Exploit Tradeoff represents a fundamental tension in decision-making: trying new things or sticking with known rewards. This framework reveals:

  • Early in any timeline, exploration delivers more long-term value

  • As time horizon shortens, exploitation becomes optimal

  • The mathematical solution is the Gittins index, which assigns values to each option

  • Our intuitions often align with this model—we explore more when young and exploit more as we age

This explains why children explore constantly while elderly people stick with favorites. The optimal strategy depends on how much time remains for using the information gained.

1

13 reads

To try and fail is at least to learn; to fail to try is to suffer the loss of what might have been.

BRIAN CHRISTIAN AND TOM GRIFFITHS

1

15 reads

Sorting

Sorting

Sorting algorithms reveal counterintuitive truths about organization:

  • Perfect sorting (alphabetical, chronological) is often unnecessarily expensive
  • The LRU (Least Recently Used) algorithm proves mathematically optimal for many scenarios
  • It works by keeping recently accessed items most accessible
  • Libraries using this principle outperform traditional arrangements
  • Our brains naturally implement approximations of optimal sorting algorithms

The implications are profound: the messy desk approach, keeping recently used items on top, is actually mathematically optimal. This explains why perfectly organized systems often feel less efficient than those that evolve naturally.

1

14 reads

Caching

Caching

Caching is a profound concept with applications from computer architecture to everyday life. The key insights:

  • Limited space requires prioritization of what to keep immediately accessible
  • Optimal caching requires prediction about future needs
  • The LRU (Least Recently Used) principle works remarkably well
  • The working set (items needed for current tasks) should stay in cache
  • Eviction policies (what to remove when space runs out) matter enormously

This explains why we instinctively organize our physical spaces with frequently used items in accessible locations. Our brains implement approximations of optimal caching algorithms naturally.

2

10 reads

Scheduling

Scheduling

Scheduling algorithms provide mathematically optimal solutions to time management:

  • Shortest Processing Time First minimizes average completion time
  • Earliest Deadline First minimizes lateness for time-sensitive tasks
  • Processor Sharing (dividing attention between tasks) proves optimal when tasks benefit from partial completion

The implications are counterintuitive but powerful:

  • Tackling quick tasks first is not procrastination—it's mathematically optimal
  • Interruptions are far more costly than we intuit
  • Context switching imposes a heavy cognitive tax

These algorithms provide guidelines for managing email, to-do lists, and project prioritization.

1

10 reads

Sometimes the best algorithm is the one that's easiest to implement and explains to others.

BRIAN CHRISTIAN AND TOM GRIFFITHS

1

12 reads

Overfitting

Overfitting

Overfitting occurs when a model is too precisely tailored to limited data, capturing noise rather than signal. This concept reveals:

  • Complex models perform well on existing data but fail on new situations
  • Simpler models often make better predictions in uncertain environments
  • Regularization (penalizing complexity) improves real-world performance
  • Cross-validation (testing on unseen data) is essential

Human cognition battles the same problem—we build overly complex mental models from limited experience. The antidote is embracing simplicity: broad principles instead of excessively detailed rules.

2

14 reads

Relaxation

Relaxation

Relaxation offers an elegant approach to seemingly impossible problems:

  • Some problems (like the Traveling Salesman) have no efficient optimal solution
  • Relaxation algorithms start with any answer and make incremental improvements
  • They accept good enough rather than pursuing unattainable perfection
  • These approaches often achieve 90-95% optimal results with minimal effort

The lesson is profound: in many domains, the cost of finding the perfect solution exceeds the benefit of having it. Relaxation is not laziness—it's an optimal strategy for allocating limited computational resources, whether in computers or human brains.

1

11 reads

Constraint Relaxation

Constraint Relaxation

Constraint Relaxation provides a powerful framework for seemingly impossible problems with competing demands:

  • Distinguish between hard constraints (must be satisfied) and soft constraints (preferences)
  • Assign weights to different preferences based on importance
  • Optimize for maximum overall satisfaction rather than perfect satisfaction of all constraints
  • Accept that some constraints must be violated to find any solution at all

This approach transforms unsolvable problems into manageable ones. In life, as in computing, the art is knowing which constraints to prioritize and which to relax—focusing resources on what truly matters.

3

11 reads

The optimal algorithm for many problems is just to solve a different problem.

BRIAN CHRISTIAN AND TOM GRIFFITHS

1

12 reads

Game Theory

Game Theory

Game Theory reveals profound insights about strategic interactions:

  • In zero-sum games, maximally exploitative strategies are optimal
  • In repeated interactions, cooperative strategies often outperform aggressive ones
  • The Tit for Tat strategy (cooperate first, then mirror opponent's last move) proves remarkably effective
  • Nash Equilibrium reveals why individually rational choices can lead to collectively poor outcomes

These principles explain business behavior, international relations, and everyday interactions. The key insight: cooperation emerges naturally from repeated interactions, even among self-interested parties—explaining how trust develops in human relationships.

2

11 reads

Randomized Algorithms

Randomized Algorithms

Randomized Algorithms use controlled randomness to achieve better results than deterministic approaches. This counterintuitive concept reveals:

  • Injecting randomness can break deadlocks and avoid predictable traps
  • Monte Carlo methods solve problems through random sampling
  • Randomized approaches often find solutions faster than exhaustive ones
  • Unpredictability itself can be a powerful strategic tool

This explains why random drug testing is more effective than testing everyone (or testing on a fixed schedule), and why mixed strategies in games like poker outperform predictable play. Sometimes the optimal approach isn't systematic but deliberately random.

2

14 reads

IDEAS CURATED BY

jubr

Community arts worker

CURATOR'S NOTE

<p>Ever feel swamped with too many decisions? This mind-blowing book shows how computer algorithms secretly solve the same problems we face daily. From apartment hunting to managing email, the math that powers computers can optimize your life too! It's not about coding—it's about finding elegant solutions to everyday chaos. Better decisions aren't about having more brainpower—they're about having better strategies.</p>

ā€œ

Curious about different takes? Check out our Algorithms to Live By Summary book page to explore multiple unique summaries written by Deepstash users.

Different Perspectives Curated by Others from Algorithms to Live By

Curious about different takes? Check out our book page to explore multiple unique summaries written by Deepstash curators:

Algorithms to Live By

29 ideas

K 's Key Ideas from Algorithms to Live By

Brian Christian, Tom Griffiths

Algorithms to Live By

11 ideas

Discover Key Ideas from Books on Similar Topics

Man's Search For Meaning

10 ideas

Man's Search For Meaning

Viktor E. Frankl

We Are Our Brains

10 ideas

We Are Our Brains

15 ideas

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

—

100+ Learning Journeys

—

Access to 200,000+ ideas

—

Access to the mobile app

—

Unlimited idea saving

—

—

Unlimited history

—

—

Unlimited listening to ideas

—

—

Downloading & offline access

—

—

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates