Atree: A simple and efficient pointer-free tree implementation

Apter Trees are a simplified representation of trees using two vectors: one for node values and one for parent indices. Implementing a tree as an Apter tree offers advantages such as faster performance, easier implementation, and simpler reasoning. In an Apter tree, the root node is identified by a key of 0 and a parent index of 0. The concept of ownership of tree nodes can become complex in multi-layered software systems. Apter Trees are versatile and can be implemented in any programming language. The code provided in this repo is written in C++.

https://github.com/tlack/atree

To top