Data Structures & Algorithms / Ordered structures and graph reasoning
Data Structures & Algorithms β Ordered structures and graph reasoning
Stable sorting, search trees, heaps, traversal, weighted paths, recursion, and selection.
What you will learn
- Stable sorting, search trees, heaps, traversal, weighted paths, recursion, and selection.
Sorting, stability, and merge invariants
Preserve a sorted permutation, define equal-key behavior, and account for preparation and copying costs.
Start learningBinary search trees and traversals
Use subtree ordering rather than local guesses, and express search cost in terms of actual height.
Start learningHeaps, priorities, and streaming top-k
Use the heap invariant for extremum access and keep tie-breaking, replacement, and stale entries explicit.
Start learningGraph representation, BFS, and DFS
Define vertices and edges explicitly, then preserve discovery and unfinished-traversal invariants.
Start learningWeighted shortest paths and relaxation
Choose an algorithm from weight assumptions and preserve current-distance authority when priority entries become obsolete.
Start learningRecursion, divide and conquer, and selection
Prove decreasing subproblems, distinguish call depth from total work, and select only as much order as the task needs.
Start learning