Everwhy Open Everwhy
Computing

How do maps find the fastest route among millions of roads in an instant?

Algorithms 201 · about 14 minutes a level

The intermediate and advanced techniques of programming olympiads and team contests: shortest paths, union-find and spanning trees, trees and their queries, interval, bitmask and tree dynamic programming, Fenwick and segment trees, string hashing and prefix functions, computational geometry, and optimisation techniques such as divide and conquer and meet in the middle.

Open in Everwhy Continue on the web

Go deeper, level by level

  1. Graph algorithms: Dijkstra's shortest paths, Union-find and minimum spanning trees, Topological order and DAGs, Trees: depth, diameter and common ancestors
  2. Advanced dynamic programming: Interval dynamic programming, Bitmask dynamic programming, Dynamic programming on trees, Making dynamic programming faster
  3. Range queries: Fenwick trees, Segment trees
  4. Strings: String hashing, Prefix functions and pattern matching, Tries
  5. Geometry: Vectors and the cross product, Convex hulls, Geometry without floating-point traps
  6. Optimisation techniques: Divide and conquer, Meet in the middle, Climbing subtasks: from partial to full score

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