Save this video free

Searching and sorting

Kent Quanrud · 1:14:06 · 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 introduces algorithm analysis through binary representation, binary search, and sorting, showing how structure can turn an apparently large search into logarithmic work. He builds merge sort from a recursive specification, analyzes its O(n log n) running time with a recursion tree, and proves that comparison-based sorting requires Ω(n log n) comparisons using a decision-tree counting argument.

Key takeaways

Chapters

0:00 Ada Lovelace, Alan Turing, and the Algorithms Course
8:00 Finger Counting Shows the Power of Binary Representation
11:00 Binary Search Solves the 1-to-100 Guessing Game
15:00 Logarithms Contrast with Exponential Search Spaces
20:15 Human Selection Sort Takes Quadratic Time
27:15 Big-O Hides Constants to Reveal Growth Rates
30:25 Checking Sortedness and Merging Two Sorted Lists
34:45 Merge Sort Uses Divide and Conquer
36:17 Recursive Specifications Define an Algorithm’s Contract
41:00 Merge Sort Pseudocode and Inductive Correctness
44:30 Modeling Merge Sort’s Running Time
48:20 A Recursion Tree Derives the n log n Bound
53:35 Why Sorting Lower Bounds Require an Algorithmic Model
59:00 Comparison Outcomes Form a Decision Tree
1:05:00 The Ω(n log n) Bound and an Inversion-Counting Challenge

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

Transcript excerpt

0:05 Well, here's sort of the tacky way I start every every semester. Uh, here are kind of two of the original people behind theoretical computer science. And maybe you recognize them. Uh, who's on the left? >> Lovely. >> Ada Love Lace. Yeah. And who's on the right? >> Um, Turing. So, Turing probably you've heard plenty of, right? Uh so he was trying to solve this very interesting question of basically does every question more or less have an algorithm or something computational. They didn't really know what they meant by algorithm or computation or whatever it is but this was just posed as like a mathematical logical question. And in the course of trying to solve uh this question which he was sort of inspired by this uh famous diagonalization proof

0:53 of this guy named Cantor. It doesn't quite matter if you haven't heard of him but uh he essentially to get his proof started had to propose some kind of abstract concept that looks a lot like a modern computer right and at some level just to define this question of can you sort of solve anything with mechanical steps he had to really dig into what it means to solve things with mechanical steps and that design more or less is the modern computer that's what John von based it on a love lace must be 150 years before anyway some time earlier and or no less less than 100 years earlier but still she uh there's this crazy guy named Babage uh who was trying to build something like a calculator out of steam and back then they just wanted to build like logarithm tables so you know where like

1:40 cannonballs land or something depending on the angle something very primitive uh uh but she uh encountered this guy

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.