Package banner.util
Class Trie<K,V>
- java.lang.Object
-
- banner.util.Trie<K,V>
-
- Type Parameters:
K-V-
public class Trie<K,V> extends Object
A Trie (also known as a prefix tree) essentially maps from a list of objects (keys) to a value. The interface is very similar, therefore, to the interface forMap, except that the key is aListof objects. This data structure allows searching in O(m) time, where m is the depth of the tree.- Author:
- Bob