Everwhy Open Everwhy
Computing

How does a map app find the fastest route among millions of roads in a blink?

Data Structures and Algorithms · about 16 minutes a level

The core undergraduate computer science course on how to organise data and design fast, correct algorithms. You learn to analyse running time with asymptotic notation and recurrences, then study arrays, lists, stacks, queues and hash tables, sorting and its lower bound, trees, heaps and balanced search trees, graph algorithms from search to shortest paths and spanning trees, and the design paradigms of greedy algorithms and dynamic programming, ending with NP-completeness.

Open in Everwhy Continue on the web

Go deeper, level by level

  1. Analysing algorithms: Algorithms, correctness and loop invariants, Big O, Big Omega and Big Theta, Recurrences and the master theorem
  2. Linear structures and hashing: Arrays, dynamic arrays and amortised analysis, Linked lists, stacks and queues, Hash tables
  3. Sorting: Insertion sort and selection sort, Merge sort and divide and conquer, Quicksort and selection, The sorting lower bound and linear-time sorts
  4. Trees and priority queues: Binary trees and traversals, Binary search trees, Balanced search trees, Heaps and priority queues
  5. Graph algorithms: Graphs, breadth-first and depth-first search, Topological sort and strongly connected components, Shortest paths: Dijkstra and Bellman–Ford, Minimum spanning trees and union–find
  6. Algorithm design: Greedy algorithms, Dynamic programming, Classic dynamic programs
  7. Hard problems: P, NP and reductions, Coping with hard problems

Every lesson shows its sources and how sure we are, and is checked by Everwhy.