I am writing a simple codec. The tree will be precomputed and there wont be any changes once its build. It will just be searched.
All the leaf nodes of a balanced binary tree are the signal values and internal nodes are the approximated compressed representations.
Is a list implementation using stl vector scalable if I have a large value of leaf nodes? Currently I dont know how large large is.
List implementation e.g. 1,2,3,4,5,6,7 if I have 4 leaf nodes
then children of
root(1)-> 2,3
2->4,5
3->6,7
so I can simply jump to the children using their position in the vector.