ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches

The ordered tree of any degree in \( 2 n \) bits by its balanced parentheses. More...

Files

file  ADS/succinct/BPTree.h
 The ordered tree of any degree in \( 2 n \) bits by its balanced parentheses: a visit in depth writes an open parenthesis when it enters a node and a closed one when it leaves it, so that a node is the pair of its parentheses and its subtree is what they enclose (the code with which chapter 15, Compressed Data Structures, of Ferragina's book counts the trees of \( n \) nodes).

Classes

class  ADS::BPTree
 an ordered tree in \( 2 n \) bits by balanced parentheses, its nodes in preorder More...

Detailed description

The ordered tree of any degree in \( 2 n \) bits by its balanced parentheses.

The definitions, the invariants and the costs of the area are in Theory of succinct structures.