@@ -5,22 +5,24 @@ _Read this in other languages:_
5
5
[ _ Русский_ ] ( README.ru-RU.md ) ,
6
6
[ _ Português_ ] ( README.pt-BR.md )
7
7
8
- In computer science, a ** trie** , also called digital tree and sometimes
9
- radix tree or prefix tree (as they can be searched by prefixes),
10
- is a kind of search tree—an ordered tree data structure that is
11
- used to store a dynamic set or associative array where the keys
12
- are usually strings. Unlike a binary search tree, no node in the
13
- tree stores the key associated with that node; instead, its
8
+ In computer science, a ** trie** , also called digital tree and sometimes
9
+ radix tree or prefix tree (as they can be searched by prefixes),
10
+ is a kind of search tree—an ordered tree data structure that is
11
+ used to store a dynamic set or associative array where the keys
12
+ are usually strings. Unlike a binary search tree, no node in the
13
+ tree stores the key associated with that node; instead, its
14
14
position in the tree defines the key with which it is associated.
15
15
All the descendants of a node have a common prefix of the string
16
- associated with that node, and the root is associated with the
17
- empty string. Values are not necessarily associated with every
18
- node. Rather, values tend only to be associated with leaves,
19
- and with some inner nodes that correspond to keys of interest.
20
- For the space-optimized presentation of prefix tree, see compact
16
+ associated with that node, and the root is associated with the
17
+ empty string. Values are not necessarily associated with every
18
+ node. Rather, values tend only to be associated with leaves,
19
+ and with some inner nodes that correspond to keys of interest.
20
+ For the space-optimized presentation of prefix tree, see compact
21
21
prefix tree.
22
22
23
- ![ Trie] ( https://upload.wikimedia.org/wikipedia/commons/b/be/Trie_example.svg )
23
+ ![ Trie] ( ./images/trie.jpg )
24
+
25
+ * Made with [ okso.app] ( https://okso.app ) *
24
26
25
27
## References
26
28
0 commit comments