Algorithm Visualizations

Algorithm Visualizations

Explore algorithm visualizations code snippets and tutorials

Algorithm Visualizations

Burrows-Wheeler transform: Examples & Code

Burrows-Wheeler transform: Sort cyclic rotations and extract their final column. A unique terminal dollar sign makes the original row unambiguous. The…

Algorithm Visualizations

Aho-Corasick multiple-pattern matching: Examples & Code

Aho-Corasick multiple-pattern matching: Build a trie, compute failure links breadth first, and report every terminal pattern including suffix matches and…

Algorithm Visualizations

Boyer-Moore string matching: Examples & Code

Boyer-Moore string matching: Compare right to left and combine bad-character and strong good-suffix shifts. This first-match version does not use the Galil…

Algorithm Visualizations

LRU cache with hashing and linked list: Examples & Code

LRU cache with hashing and linked list: Find entries through hash bucket chains and move accessed nodes to the head of a doubly linked recency list. Evict the…

Algorithm Visualizations

Segment tree lazy range updates: Examples & Code

Segment tree lazy range updates: Store segment sums with pending range-add tags. Apply full-cover updates without descending, and push tags only when a later…