Explore string algorithms from fundamentals to advanced techniques.
The fundamental building block of text processing and memory representation.
How characters were originally mapped to 7-bit numeric values.
The variable-width standard for global text representation.
Fixed and variable width encodings used in modern environments.
Understanding the difference between storage units and character identities.
Why one "user-perceived character" might be multiple code points.
Why O(1) indexing is often a lie in modern string implementations.
Visualizing slicing, concatenation, and memory views.
The brute-force approach to finding a substring.
Linear time pattern matching using the prefix function.
The standard for practical string search, skipping text using two heuristics.
Pattern matching using the Z-array technique.
Pattern matching using rolling hashes.
How to update a hash in O(1) as a window slides.
Dealing with hash collisions in string matching.
Precomputing the Pi table for optimized jumping.
Multiple pattern matching using an automaton.
Building and searching prefix trees.
A sorted array of all suffixes of a string.
The ultimate compressed trie of all suffixes.
Computing common prefixes between sorted suffixes.
The fundamentals of reducing string storage size.
The simplest lossless compression technique.
Rearranging strings for better compression.
How real-world tools like grep and ripgrep work.