Skip to main content

6 docs tagged with "trie"

View all tags

Aho-Corasick Algorithm

A complete guide to the Aho-Corasick algorithm for efficient multi-pattern string matching using a Trie and failure links, with implementations.

Aho-Corasick Algorithm

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

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.

Trie (Prefix Tree)

A complete guide to Trie data structure -- a tree-based data structure for efficient string operations like prefix matching, autocomplete, and IP routing.

Word Search

Solve the Word Search problem using DFS with backtracking on a 2D character grid. Covers both Word Search I (single word) and Word Search II (multiple words with Trie).