Hash Array Mapped Trie (HAMT)

前端 未结 4 1020
生来不讨喜
生来不讨喜 2020-12-23 14:40

I am trying to get my head around the details of a HAMT. I\'d have implemented one myself in Java just to understand. I am familiar with Tries and I think I get the main con

4条回答
  •  一向
    一向 (楼主)
    2020-12-23 15:21

    The chance of collision is presumably very low, and generally only problematic for huge trees. Given this, you're better off just storing collisions in an array at the leaf and searching it linearly (I do this in my C# HAMT).

提交回复
热议问题