flâneur — a map of the web's best reading

Trie

en.wikipedia.org · 4,257 words · saved by 1 readers

In computer science, a trie (, ), also called digital tree or prefix tree, is a type of k-ary search tree, a tree data structure used for locating specific keys from within a set. These keys are most often strings, with links between nodes defined not by the entire key, but by individual characters. In order to access a key (to recover its value, change it, or remove it), the trie is traversed depth-first, following the links between nodes, which represent each character in the key.

Trie - Wikipedia Jump to content From Wikipedia, the free encyclopedia Search tree data structure This article is about a specific type of tree data structure. For tree data structures generally, see Tree (abstract data type) . For other uses, see Trie (disambiguation) . Not to be confused with tri , try , or tray . Trie Type Tree Invented 1960 Invented by Edward Fredkin , Axel Thue , and René de la Briandais Time complexity in big O notation Operation Average Worst case Search O( n ) O( n ) Insert O( n ) O( n ) Delete O( n ) O( n ) Space complexity Space O( n ) O( wn ) A trie for keys "A", "t

Explore this link on the map →

related reading