Module M22 · 22 of 35 in teaching order · Intermediate

Tries

Prefix trees for dictionaries and autocomplete, and their memory trade-offs.

Lessons

  1. A prefix tree over a–z: node layout, insert, search, startsWith and delete with pruning, O(L) per operation, autocomplete and memory trade-offs.

Topics this module covers

The full module scope. Topics without a lesson above are not written yet.

  • node layout
  • insert/search/prefix/delete
  • autocomplete
  • memory tradeoffs
  • implementation

Builds toward