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

The tree as a vector of parents. More...

Files

file  ADS/tree/ParentTree.h
 The tree as a vector of parents: the nodes are \( 0 , \ldots , n - 1 \), and \( p[ i ] \) is the parent of \( i \), or -1 if \( i \) is a root.

Classes

class  ADS::ParentTree
 a tree (a forest) of the nodes \( 0 , \ldots , n - 1 \) as a vector of parents More...

Detailed description

The tree as a vector of parents.

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