Algorithms and Their Habitat
summary
Covers concrete techniques: data normalization turns product lists into ID‑keyed maps for constant time lookups and replaces N×M scans with linear joins, memoization caches selector results (reselect style) to avoid repeated heavy computations, and Levenshtein distance powers a demo 404 fixer that sorts routes by edit distance, applies a threshold, and redirects on close matches. Shows using libs like ngrx/entity and simple caching so the demo suggestion feature actually runs fast and stable.
AI-written summary · about
chapters (13)
- 0:00Start
- 3:22TIME and SPACE Complexity
- 6:45Data with relations - get entity
- 7:33Recursive data - get entity
- 8:51Normalized data - get entity
- 10:50WHEN?
- 11:47Fibonacci numbers
- 12:01Call tree
- 12:30Memoized
- 14:07Albert Levenstein
- 14:29Distance matrix
- 19:16Sort by Levenshtein distance
- 19:51Suggest route
related talks
45mYou need to know Algorithms and Data Structures in Front-end anyway
45mYou need to know Algorithms and Data Structures in Front-end, anyway
22mN Things You Didn’t Know About the Router
53mAlgorithms Demystified
32mThere and Back Again: Grokking State and Data
27mThe Art of Deep Linking and AJAX Crawling
38m"Design Patters for Modern JavaScript"
49mDesign Patterns for Modern Javascript
