N
N
nickware962015-05-25 15:42:31
Data storage
nickware96, 2015-05-25 15:42:31

How to store an incomplete binary expression tree in an array?

How to store an incomplete binary expression tree in an array? If stored in the same way as the full one, then gaps (unused cells) appear in the array. In this case, you will still need to somehow mark these cells that they are not used. What do you suggest? It's about C++.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Yarosh, 2015-05-25
@voidnugget

Auxiliary structures such as lsm-tree are used to store transactions.
I also advise you to look at how things are going with cache oblivious b-tree.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question