Algorithm Science (Summer 2025) - 15 - Heaps @billbird2597
Algorithm Science (Summer 2025) - 15 - Heaps  @billbird2597
Uploaded May 2025 | Updated November 2026, 3 hours ago
This video was made as part of a second-year undergraduate algorithms course sequence (Algorithms and Data Structures I and II).

0:00 Introduction
0:54 Priority Queues
21:00 Piles of Numbers
29:15 Heaps
43:53 The Root Contains the Minimum Key
52:29 Insert Operation
1:05:09 RemoveMin Operation
1:15:39 Heap Height
1:19:40 Array-Based Heaps
1:33:47 Building Heaps from Sequences
1:40:43 Bottom-Up Construction
1:42:45 Heapify
1:54:44 Heap Sort
1:57:00 In-Place Heap Sort
2:00:44 Heap Sort is Optimal

All slides and diagrams are original content (developed between 2015 and 2025). The materials used in this video, and the video itself, were prepared without any assistance from generative AI.

As any viewer will quickly realize, these videos were made just like in-person lectures: in one sitting, with no breaks, editing or script. If you find any of this helpful or interesting, please let me know (I really appreciate any other feedback as well).
Algorithm Science (Summer 2025) - 15 - HeapsC++ Programming (Spring 2022) - Lecture 7.13 - Conversion OperatorsAlgorithm Science (Summer 2025) - 1 - Algorithm ScienceC++ Programming (Spring 2022) - Lecture 4.11 - MapsC++ Programming (Spring 2022) - Lecture 4.10 - Timing Experiments on CollectionsC++ Programming (Spring 2022) - Lecture 11.03 - Iterative Linked List Functions (Part 1)C++ Programming (Spring 2022) - Lecture 3.11 - Tracing with Exceptions (Example 2)Algorithm Science (Summer 2025) - 7 - Recursive Algorithm AnalysisData Compression (Summer 2023) - Lecture 4 - The Unix compress ProgramAlgorithm Science (Summer 2025) - 12 - Exhaustive SearchC++ Programming (Spring 2022) - Lecture 7.12 - Assignment OperatorsAlgorithm Science (Summer 2025) - 19 - Red-Black Trees
BillBird |

Algorithm Science (Summer 2025) - 15 - Heaps

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER