AlgorithmsData structuresEdit on GitHubEdit history
Hash Array Mapped Trie
HAMT2001
A trie that uses successive chunks of a key's hash as the index at each level and represents each node as a bitmap plus a compact array holding only the children that exist. It is used for immutable hash maps in languages such as Clojure and Scala.
Origin
Lineage
Parent algorithms
Author statementThe HAMT is a trie that branches on bits of the hash value and compresses nodes with bitmaps. — infoscience.epfl.ch/record/64398
Derived algorithms
Author statementThe CHAMP paper changes the node layout of HAMTs to improve iteration speed and memory use. — doi:10.1145/2814270.2814312
Author statementThe Ctrie builds on the HAMT node structure to support lock-free concurrent updates. — doi:10.1007/978-3-642-36036-7_11
Notable implementations
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…