Data Structures and Algorithms
Explore DSA from foundations to expert topics. Published lessons begin with algorithms, arrays, sorting, and search.
Levels indicate concept complexity and prerequisites, not learner progress.
Beginner
- Thinking in Algorithms — Turn an everyday job into clear steps, then check that those steps finish and give the right answer.
- Arrays and Lists — Picture numbered slots, then learn how to read, change, add, and remove items without confusing a position with a value.
- Strings — Treat text as an ordered sequence, while remembering that Python strings cannot be changed in place.
- Traversing a List — Visit each item once, like checking every shelf slot, and use a loop to build a result.
- Time and Space Complexity — Count how work and extra storage grow when the input gets bigger, instead of guessing from a stopwatch.
- Sorting — Start with arranging books and prices, then understand the steps computers use to put things in order.
- Bubble Sort — Compare neighbouring number cards, swap the ones in the wrong order, and see why a full pass helps.
- Selection Sort — Search for the smallest remaining number, put it in place, and repeat.
- Insertion Sort — Keep part of a row in order, then make room and slide the next number into the right place.
- Linear Search — Look through items one at a time, stop at the first match, and know what happens when nothing matches.
- Binary Search — Use an already sorted row to rule out half the remaining positions at each decision.
Intermediate
- Linked Lists — Follow a chain of nodes and see how links let a list grow without shifting a row of slots.
- Stacks — Add and remove from the same end, like a stack of plates, and understand when last-in-first-out helps.
- Queues — Follow a first-in-first-out line and see why a queue needs a front and a back.
- Hash Tables — Use keys to find values, and see why different keys can share a bucket.
- Recursion — Solve a smaller version of a problem, then follow how the answers return.
- Divide and Conquer — Split a problem into smaller pieces, solve them, and combine their answers.
- Backtracking — Try a choice, explore what follows, and undo it before trying another.
- Merge Sort — Sort smaller halves, then merge them into one ordered row.
- Quick Sort — Choose a pivot and sort the items on each side of it.
- Heaps and Heap Sort — Keep the largest item at a heap's root, then use that rule to sort.
- Two Pointers — Use two positions to make progress through an ordered row.
- Sliding Window — Reuse the work from one consecutive group when moving to the next.
- Prefix Sums — Remember totals up to each position so range sums can be answered quickly.
- Binary Trees and Search Trees — Explore branching nodes, traversal orders, and the ordering rule of a binary search tree.
- Representing Graphs — Describe connections between places using vertices, edges, and adjacency lists.
- Breadth-First and Depth-First Search — Explore a graph layer by layer or follow one path before returning.
- Abstract Data Types, Bags, and Deques — Separate what a collection promises from how it stores its items.
- Linked Lists and Resizing Arrays — Compare one-way and two-way links with an array that grows when it fills.
- Shell Sort — Sort cards far apart first, then bring the gap down to one.
- Merge Sort Variants — Compare recursive splits, iterative merges, and safe merge optimisations.
- Partitioning and Quickselect — Divide values around a pivot, then keep only the side containing a wanted rank.
- Priority Queues and Multiway Merge — Remove items by priority and combine several already sorted streams.
- Symbol Tables and Sets — Associate keys with values, or remember which keys belong to a collection.
- Hash Collisions: Chaining and Linear Probing — Compare two ways to keep different keys that choose the same bucket.
- Fisher–Yates Shuffle — Rearrange a row randomly without confusing a shuffle with a sort.
- Connecting DSA Foundations — Connect recursion, trees, graphs, growth notation, and a first correctness argument.
- Invariants and Amortised Analysis — Keep a structure's rules true and count the cost of a sequence of operations.
Advanced
No published concepts at this level.
Expert
No published concepts at this level.
