Skip to main content

4 docs tagged with "trie"

View all tags

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.

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).