Index of /~rahn/patricia
Some versions of PATRICIA-Tries in Haskell.
-- the implementation follows that in
-- @book{Sedgewick1992,
-- author = {Robert Sedgewick},
-- title = {Algorithmen in C},
-- year = 1992,
-- publisher = {Addison--Wesley}
-- }
Implemented to replace FiniteMap but the basic versions are limited in
use and the unlimited version is'nt faster than a FiniteMap...
Nevertheless the code takes advance from lazy evaluation and pattern
matching and shows how to deal with infinite structures. We even use
recursive tree-like structures without leaves.
Recommended read-order:
Patricia_Bit - bit-access is needed to create PATRICIA-Tries
Patricia - basic trie with some limitations
Patricia_N - basic trie with nullkey usable
Patricia_U - basic trie with updateable nodes
Patricia_NU - N+U
Patricia_Hash - a special version wich acts like an hashtable
Patricia_H - very fast, no restrictions
Try 'make' and enjoy.