A PATRICIA org. is a compressed
org.. Instead of storing
all data at the edges of the org.
(and having empty internal nodes), PATRICIA stores data in every node.
This allows for very efficient traversal, insert, delete, predecessor,
successor, prefix, range, and select(Object)
operations. All operations are performed at worst in O(K) time, where K
is the number of bits in the largest item in the tree. In practice,
operations actually take O(A(K)) time, where A(K) is the average number of
bits of all items in the tree.
Most importantly, PATRICIA requires very few comparisons to keys while doing any operation. While performing a lookup, each comparison (at most K of them, described above) will perform a single bit comparison against the given key, instead of comparing the entire key to another key.
The org. can return operations in
lexicographical order using the 'prefixMap', 'submap', or 'iterator' methods.
The org. can also
scan for items that are 'bitwise' (using an XOR metric) by the 'select' method.
Bitwise closeness is determined by the KeyAnalyzer returning true or
false for a bit being set or not in a given key.
This PATRICIA org. supports both variable
length & fixed length keys. Some methods, such as prefixMap(Object)
are suited only to variable length keys.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| PatriciaTrie | back to summary |
|---|---|
| public PatriciaTrie() | |
| PatriciaTrie | back to summary |
|---|---|
| public PatriciaTrie(final Map<? extends String, ? extends E> m) | |