News for hackers. Stuff that matters.
Re:Trie in JavaScript: The data structure behind autocomplete by baur on Thursday November 04, 2021 @08:58AM (#29106567)
Trie also can be used as a hashset/map, roughly it's like hash(obj).toString is a "word" for a trie and in the leaf we store the object.

It's https://en.wikipedia.org/wiki/Hash_array_mapped_trie which used in Scala's immutableMap https://dotty.epfl.ch/api/scala/collection/immutable/HashMap...

There are no comments on this comment yet.