Skip to main content

8 docs tagged with "advanced"

View all tags

Aho-Corasick Algorithm

An efficient string searching algorithm that searches for multiple patterns simultaneously using an automaton.

Disjoint Set Union (DSU) / Union-Find

A comprehensive guide to Disjoint Set Union (DSU) with visual diagrams, Path Compression, Union by Rank optimizations, step-by-step dry-runs, code templates in Python, Java, and C++, and practice problems.

Rolling Hash

A hashing technique used heavily in string matching algorithms like Rabin-Karp.

Segment Tree

A comprehensive guide to Segment Trees with visual diagrams, build/query/update operations, lazy propagation, code templates in Python, Java, and C++, and practice problems.

Suffix Array

A sorted array of all suffixes of a string, extremely useful for fast string queries.

Trie (Prefix Tree)

A comprehensive guide to the Trie (Prefix Tree) data structure with visual diagrams, Insert, Search, Delete, and AutoComplete implementations in Python, Java, and C++, and practice problems.

Z-Algorithm

A linear time string matching algorithm that finds all occurrences of a pattern in a text.