3 ms·
Is it possible to implement this as an immutable data structure? Or is the duplication necessary for each insertion making it too inefficient to be practical?
by amelius 11y ago
Is it possible to implement this as an immutable data structure? Or is the duplication necessary for each insertion making it too inefficient to be practical?
- yoklov 11y agoYou'd probably need to adapt the data structure to the point where it would be too different to be considered the same.
- jasonkostempski 11y agoWould that be a HAMT? https://en.m.wikipedia.org/wiki/Hash_array_mapped_trie https://en.m.wikipedia.org/wiki/Hash_array_mapped_trie
- brudgers 11y agoBagwell's paper: http://infoscience.epfl.ch/record/64398/files/idealhashtrees.pdf http://infoscience.epfl.ch/record/64398/files/idealhashtrees...