logo
episode-header-image
Mar 2023
16m 41s

Once Upon an Algorithm: How Stories Expl...

Marshall Poe
About this episode

In this episode, Martin Erwig show us how we can find computational concepts inside some of our favorite stories.

Picture a computer scientist, staring at a screen and clicking away frantically on a keyboard, hacking into a system, or perhaps developing an app. Now delete that picture. In Once Upon an Algorithm, Martin Erwig explains computation as something that takes place beyond electronic computers, and computer science as the study of systematic problem solving. Erwig points out that many daily activities involve problem solving. Getting up in the morning, for example: You get up, take a shower, get dressed, eat breakfast. This simple daily routine solves a recurring problem through a series of well-defined steps. In computer science, such a routine is called an algorithm.

Erwig illustrates a series of concepts in computing with examples from daily life and familiar stories. Hansel and Gretel, for example, execute an algorithm to get home from the forest. The movie Groundhog Day illustrates the problem of unsolvability; Sherlock Holmes manipulates data structures when solving a crime; the magic in Harry Potter's world is understood through types and abstraction; and Indiana Jones demonstrates the complexity of searching. Along the way, Erwig also discusses representations and different ways to organize data; "intractable" problems; language, syntax, and ambiguity; control structures, loops, and the halting problem; different forms of recursion; and rules for finding errors in algorithms.

This engaging book explains computation accessibly and shows its relevance to daily life. Something to think about next time we execute the algorithm of getting up in the morning.

Learn more about your ad choices. Visit megaphone.fm/adchoices

Support our show by becoming a premium member! https://newbooksnetwork.supportingcast.fm/film

Up next
Aug 19
Thomas Christian Bächle and Jascha Bareis eds., "The Realities of Autonomous Weapons (Bristol UP, 2025)
Autonomous weapons exist in a strange territory between Pentagon procurement contracts and Hollywood blockbusters, between actual military systems and speculative futures. For this week's Liminal Library, I spoke with Jascha Bareis, co-editor of The Realities of Autonomous Weapon ... Show More
1 h
Aug 15
Prudence Peiffer, "The Slip: The New York City Street That Changed American Art Forever" (Harper, 2023)
For just over a decade, from 1956 to 1967, a collection of dilapidated former sail-making warehouses clustered at the lower tip of Manhattan became the quiet epicenter of the art world. Coenties Slip, a dead-end street near the water, was home to a circle of wildly talented and v ... Show More
50m 30s
Aug 13
Alisha Mughal, "It Can’t Rain All the Time: The Crow" (ECW Press, 2025)
Alisha Mughal's It Can’t Rain All the Time: The Crow (ECW Press, 2025) weaves memoir with film criticism in an effort to pin down The Crow’s cultural resonance. A passionate analysis of the ill-fated 1994 film starring the late Brandon Lee and its long-lasting influence on action ... Show More
44m 21s
Recommended Episodes
Jun 14
Networks and Complexity
In this episode, Kyle does an overview of the intersection of graph theory and computational complexity theory. In complexity theory, we are about the runtime of an algorithm based on its input size. For many graph problems, the interesting questions we want to ask take longer an ... Show More
17m 49s
Nov 2024
Mastering Algorithms: From Binary Search Trees to Dynamic Programming and Greedy Strategies
In this episode, we explore foundational algorithms and data structures that every developer and computer science enthusiast should know. Covering everything from Binary Search Trees (BSTs) to advanced concepts like Dynamic Programming and Greedy Algorithms, this episode is packe ... Show More
28m 3s
Feb 2022
S6 Bonus: Raghav R S, Animaker
Raghav was a product developer, starting a young age. He was creating interesting products for science exhibitions as a kid. Once, this professor asked him to do a cancer research project, which introduced him to the story of Steve Jobs and his entrepreneurial journey. He was hig ... Show More
18m 40s
Feb 2017
MLG 002 What is AI, ML, DS
Links: Notes and resources at ocdevel.com/mlg/2 Try a walking desk stay healthy & sharp while you learn & code Try Descript audio/video editing with AI power-tools What is artificial intelligence, machine learning, and data science? What are their differences? AI history. Hierarc ... Show More
1h 5m
Sep 2024
machine learning (noun) [Word Notes]
Enjoy this special encore episode. A programming technique where the developer doesn't specify each step of the algorithm in code, but instead teaches the algorithm to learn from the experience. 
6m 16s
Sep 2024
What Type of Templates Do We Use for Visual Processing? Caricatures Might Be the Answer
In this episode, Zekun Sun and Chaz Firestone from Johns Hopkins University join Under the Cortex to discuss their new paper in Psychological Science titled “Caricaturing Shapes in Visual Memory.” The conversation with APS’s Özge G. Fischer Baum reviews how our visual system uses ... Show More
18m 9s
May 2020
49: Thinking Machines II (Techniques in Artificial Intelligence)
Machines have been used to simplify labor since time immemorial, and simplify thought in the last few hundred years. We are at a point now where we have the electronic computer to aid us in our endeavor, which allows us to build hypothetical thinking machines by simply writing th ... Show More
57m 55s
Jul 2024
Computer Science Visualizations with Sam Rose
Sam Rose creates visual introductions to computer science topics. Each post takes about a month to make, and he tries to cover foundational topics in a way that's accessible to beginners. Scott chats with Sam about the how and why of making such bespoke and sophisticated blog pos ... Show More
33m 43s
Jul 2017
14: Artificial Thought (Neural Networks)
Go to www.brilliant.org/breakingmathpodcast to learn neural networks, everyday physics, computer science fundamentals, the joy of problem solving, and many related topics in science, technology, engineering, and math.  Mathematics takes inspiration from all forms with which life ... Show More
1h 5m
May 13
686 - Problem Solving
John and Craig look at how writers and their characters handle the obstacles they encounter. They outline proven techniques for solving problems both in life and on the page, why it’s important to see characters solving problems in a story, and how taking big swings can open up e ... Show More
1 h