Trie Structure, Operations, Compression, and Applications
5 flashcards · 5 quiz questions · 5 match pairs · 5 fill-in sentences · English
Your progress is kept in this browser only.Sign up to save it
Summary
A trie is a tree-shaped data structure for storing and retrieving strings. Its structure organizes keys by their characters, so strings that share prefixes can share paths through the tree. This lesson introduces how tries represent keys and why that organization is useful.
A trie, also called a digital tree or prefix tree, stores strings by arranging characters along paths. The root represents the empty string. Each link from a node represents a character, and following links from the root spells a prefix of a stored key.
All flashcards
Quiz questions
Based on the Wikipedia article Trie, licensed CC BY-SA 4.0. Adapted into a summary, flashcards and quizzes.