0

Basically, if I remember correctly, it's a tree. Then, if you apply a transformation on the tree, the unchanged nodes are shared, and new ones are created.

However, due to the way it is made, one can still access the data before each transformation, and so with the least memory used.

I think this is applicable in a context like git, and I specifically remember that git was the example used for this structure, but I can't seem to remember its name. Anyone help?

I've tried searching for tree variants, and I just can't seem to find it.

  • Possibly loosely related: ["_How to get altered tree from Immutable tree, maximising reuse of nodes_"](https://stackoverflow.com/q/41298577/11107541), and ["_Theoretically, what data structure can I use for trees with shared memory?_"](https://stackoverflow.com/q/37065538/11107541) – starball Dec 16 '22 at 18:43

0 Answers0