|
ADS
Algorithms and Data Structures
|
an optimal binary search tree on the keys \( 0 , \ldots , n - 1 \): its cost, its root and the children of each key, \( -1 \) for none (and for the root of the empty tree) More...
#include <ADS/optimization/OptimalSearchTree.h>
Public attributes | |
| T | cost |
| the weighted path length | |
| int | root |
| the key at the root | |
| std::vector< int > | left |
| the left child of each key | |
| std::vector< int > | right |
| the right child of each key | |
an optimal binary search tree on the keys \( 0 , \ldots , n - 1 \): its cost, its root and the children of each key, \( -1 \) for none (and for the root of the empty tree)
| T ADS::OptimalSearchTree< T >::cost |
the weighted path length
| std::vector< int > ADS::OptimalSearchTree< T >::left |
the left child of each key
| std::vector< int > ADS::OptimalSearchTree< T >::right |
the right child of each key
| int ADS::OptimalSearchTree< T >::root |
the key at the root