ENع
Algorithms · From amortised analysis to shortest paths, one moving structure at a time

Data structures and algorithms

A university course in data structures and algorithms that picks up where the Software intro lessons stop: cost analysis, heaps, hashing, tries, balanced trees, union-find, graph algorithms, greedy and divide and conquer, dynamic programming, backtracking, string matching and the patterns that solve interview problems. Every lesson is a structure you can step through, a short quiz and usually a small Python exercise.

9 وحدات52 درسًا5 موضوعات خاصة57 متاح الآن
اكتمل 0 من 57 من الدروس المتاحة
جزء من: المزيد من المسارات قريبًا
الوحدة 01 Beginner

Measuring cost

How to count the work an algorithm does, beyond a first look at Big O. Start with the Software lesson on Big O and the Maths lessons on logarithms and recurrences, which already cover counting steps and unrolling a recurrence.

الوحدة 02 Beginner

Linear structures in depth

Linked lists, stacks, queues and deques, built by hand and used to solve real problems. Builds on the Software lessons on arrays and lists and on stacks and queues.

الوحدة 03 Intermediate

Hashing and heaps

What happens inside a hash map when keys collide, and the heap that keeps the smallest item on top. Builds on the Software lesson on hash maps, which shows buckets, collisions and a table growing.

الوحدة 04 Intermediate

Search trees

Trees that keep data sorted, and how they stay balanced. Builds on the Software lesson on trees, which covers search, insert and a tree that turns into a line; the Databases lesson on B-trees covers wide nodes on disk.

الوحدة 05 Intermediate

Graph algorithms

Storing graphs and walking them in order. Builds on the Software lessons on graphs and on BFS and DFS, and the Maths lesson on graph theory.

الوحدة 06 Advanced

Greedy and divide and conquer

Two ways to design an algorithm, and how to prove they work. Builds on the Software lessons on sorting (insertion sort, merge sort, Timsort) and recursion and the Maths lesson on proofs.

الوحدة 07 Advanced

Shortest paths and spanning trees

Cheapest routes and cheapest networks over weighted graphs. Uses the heaps and union-find from earlier modules and the greedy proofs from the module before.

الوحدة 08 Advanced

Dynamic programming and backtracking

The common shapes of dynamic programming, and searching every option without wasting work. Builds on the Software lesson on dynamic programming, which covers memoisation and tables.

الوحدة 09 Advanced

Strings and problem-solving patterns

Fast text search and the patterns that crack most interview problems. Builds on the Software lessons on strings and on searching.

تعمّق أكثر

Special topics

Stand-alone deep dives. Take them any time after the module they build on.