Trie

Материал из WEGA
Версия от 17:47, 16 августа 2011; Glk (обсуждение | вклад) (Новая страница: «'''Trie''' --- префексное дерево, нагруженное дерево. A '''trie''' is an ordered tree data structure that is used to store an ass…»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску

Trie --- префексное дерево, нагруженное дерево.

A trie is an ordered tree data structure that is used to store an associative array, where the keys are usually strings. Unlike a binary search tree, no node in the tree stores the key associated with that node; instead, its position in the tree shows what key it is associated with. All the descendants of a node have a common prefix of the string associated with that node, and the root is associated with the empty string. Values are normally not associated with every node, only with leaves and some inner nodes that correspond to keys of interest.

Another name is Prefix tree.