Heaps and priority queues: heapsort to Dijkstra
12 steps · about 3 h 55 min · Intermediate
- Heaps Visually Explained (Priority Queues) (video, YouTube, 12 min)
A visual introduction to max-heap insertion, deletion and building, so the idea is clear before you read any code.
- Priority Queue and Heaps (article, INFLIBNET e-PG Pathshala, 20 min)
Defines the priority queue and the binary heap's two constraints, and compares heaps with the sorted-list and linked-list options.
- Binary Heap (Priority Queue) - VisuAlgo (interactive, VisuAlgo, 25 min)
Lets you step through Insert, ExtractMax, Create and HeapSort so you can see the array and tree views change together.
- Heap Sort and Binary Heap (article, labuladong, 20 min)
Explains the swim and sink operations that keep the heap property, then shows how heap sort uses them.
- Priority Queues and Heaps (doc, Carnegie Mellon University Qatar, 20 min)
A university-style treatment with a priority queue interface in Java, plus the difference between min-heaps and max-heaps.
- binary heaps (article, Charles University (Dingle), 25 min)
Gives Python heap code with heapify and down_heap, which makes the array-based implementation concrete.
- Lecture 29: Priority Queues and Heapsort (article, Northeastern University, 25 min)
Walks through heapsort step by step and works out its cost, so you know why it runs in O(n log n).
- Heaps, Priority Queues, and Heapsort - Jyotiprakash's Blog (article, Jyotiprakash, 15 min)
Shows the in-place build-heap phase and the extract-and-sort phase with a worked trace, as a recap of heapsort.
- Dijkstra algorithm clearly explained in 8 minutes (video, YouTube, 8 min)
Introduces Dijkstra's single-source shortest path with a worked example and a C++ priority-queue implementation.
- Implementing Dijkstra's Algorithm with a Priority Queue (video, YouTube, 15 min)
Shows why a priority queue makes Dijkstra efficient, and links it to uniform cost search.
- COMS21103 Priority queues and Dijkstra's algorithm (doc, University of Bristol (Ashley Montanaro), 30 min)
A lecture that ties heap-based priority queues directly to Dijkstra's algorithm.
- DSA in Python Course - Dijkstra's Algorithm Using Priority Queue (video, Code & Debug (YouTube), 20 min)
Gives a Python implementation with a min-heap to code along with, as a final practice step.