Save this video free

Induction and recursion

Kent Quanrud · 1:21:56 · Watch on YouTube

Part of Purdue University Fundamental Algorithms (Fall 2026). See all 20 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Kent Quanrud develops induction and recursion as complementary tools for algorithm design: first specify clearly what a recursive procedure takes in and guarantees, then use induction to justify its calls on smaller inputs. Examples progress from Tower of Hanoi and the Euclidean GCD algorithm to a proof of König’s theorem for bipartite graphs, connecting correctness, running-time analysis, and matching–vertex-cover duality.

Key takeaways

Chapters

0:00 Recursive Specifications Set Up Algorithm Design
3:00 Stair Climbing as an Inductive Argument
7:00 Tower of Hanoi: Why Brute-Force Moves Become Confusing
11:00 Specify and Implement Recursive Tower of Hanoi
18:00 Prove Hanoi Correctness and Strengthen the Specification
25:00 From a Valid Hanoi Solution to a Minimum-Move Solution
34:45 Define the Greatest Common Divisor Problem
38:00 Subtraction-Based GCD and a Decreasing Induction Measure
46:00 Why Subtraction GCD Is Exponential in Input Bit Length
53:00 Euclid’s Remainder Identity Produces a Faster GCD Algorithm
58:00 Bound Euclid’s Algorithm by Halving Every Two Steps
1:04:00 Bipartite Matching and Vertex Cover
1:10:00 Why Every Matching Is No Larger Than Every Vertex Cover
1:13:00 Set Up Induction for König’s Theorem
1:16:00 Combine Smaller Matchings When the Cover Uses Both Sides
1:19:00 Handle Lopsided Covers to Complete König’s Theorem

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 Keep going. Um okay. All right. Let's just get started. So um we'll be looking at this at this puzzle today, but um uh and so today's topic is going to be uh induction and recursion. I know you've seen uh induction almost certainly before. So maybe it'll be a little bit of re refresh but then I think uh we'll shift into trying to use it kind of more fluidly in algorithms. So you'll find something challenging hopefully by the end of the class. Uh but first I promised um uh and I can do this again next class. Uh hopefully by now you found the website uh and everything in there and we just try to dump everything in there to keep everyone on the same page. Um I don't know if you actually

0:49 bothered reading it but still I'm happy to answer uh any questions. [clears throat] It's the same setup as like many years in a row, so hopefully not much needs to change. [clears throat] >> Okay, we're off to a good start. Yeah. >> Are we doing um one of the like the modules every single day or is just like >> Oh, it's like a chapter of class. >> Okay. >> Yeah. Yeah. Yeah. And all the chapters are like roughly lecture sized. Some of them like are a little long like I think this chapter I had kind of different examples of induction and I've changed so there's kind of some extras at the end but >> so if we miss a class we'll be able to just like go through >> yeah I think you'll find it's very similar to what we do in class and not only that but it's also on YouTube and probably also doing the homework is the

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Kent Quanrud.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.