Skip to content

Commit 831b27a

Browse files
committed
Update README.markdown
1 parent 180ce9e commit 831b27a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Radix-Tree/README.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Radix Tree
22

33
A radix tree (or radix trie, compact prefix tree) is a space-optimized tree used for constructing associative arrays that are usually expressed as strings. Edges in radix trees store strings. If you started at the root of the tree and traversed down to any node that has no children, concatenating the edges in order of traversal would result in a stored word. An example can be seen [here](https://en.wikipedia.org/wiki/Radix_tree#/media/File:Patricia_trie.svg).
4+
5+
## Operations
6+
7+
Typical operations on a radix tree include lookup, insertion, deletion, find predecessor, find successor, and find all strings with common prefix. The running time of lookup, insertion, and deletion is O(k) where k is the length of the key. This is different from most trees because these operations usually run in O(logn) time where n is the number of nodes in the tree.

0 commit comments

Comments
 (0)