#include <ogdf/graphalg/SteinerTreePreprocessing.h>
|
| node | binarySearchUpmostTerminal (node v, const std::vector< node > &chainOfTerminals) const |
| | performs a binary search on chainOfTerminals, searches for the closest node to the root on chainOfTerminals that sits below v More...
|
| |
| void | buildMaxSegmentTree (std::vector< T > &segmentTree, const int nodeIndex, const int left, const int right, const std::vector< T > &baseArray) const |
| | builds a max segment tree on the baseArray More...
|
| |
| void | computeBottleneckOnBranch (node x, node ancestor, T &longestPathDistance, T &fromLowestToAncestor) const |
| | computes for the path from x to ancestor the maximum distance (sum of edges) between any two consecutive terminals using the hpd updates it in longestPathDistance also puts in fromLowestToAncestor the sum of edges from the last terminal found to the ancestor (the last terminal is special since its Steiner ancestor is ancestor for ancestor as well, so we would consider a wrong part of the path More...
|
| |
| void | computeLongestDistToSteinerAncestorOnChain () |
| | creates for every chain an array with the maximum of every prefix of a fictive array which keeps for every node the sum of the edges on the path from it to its closest terminal ancestor More...
|
| |
| void | computeLongestDistToSteinerAncestorSegTree () |
| | creates for every chain a segment tree built on a fictive array which keeps for every node the sum of the edges on the path from it to its closest terminal ancestor More...
|
| |
| void | dfsHeavyPathDecomposition (node v, node closestSteinerUpNode) |
| | performs the heavy path decomposition on the tree belonging to the class updates the fields of the class More...
|
| |
| T | distanceToAncestor (node v, node ancestor) const |
| | computes the sum of all edges on the path from v to ancestor v must be in ancestor's subtree More...
|
| |
| T | getMaxSegmentTree (const std::vector< T > &segmentTree, const int nodeIndex, const int left, const int right, const int queryLeft, const int queryRight) const |
| | extracts the maximum on the required interval More...
|
| |
template<typename T>
class ogdf::SteinerTreePreprocessing< T >::HeavyPathDecomposition
Definition at line 804 of file SteinerTreePreprocessing.h.
◆ HeavyPathDecomposition()
◆ binarySearchUpmostTerminal()
performs a binary search on chainOfTerminals, searches for the closest node to the root on chainOfTerminals that sits below v
Definition at line 981 of file SteinerTreePreprocessing.h.
◆ buildMaxSegmentTree()
template<typename T >
| void ogdf::SteinerTreePreprocessing< T >::HeavyPathDecomposition::buildMaxSegmentTree |
( |
std::vector< T > & |
segmentTree, |
|
|
const int |
nodeIndex, |
|
|
const int |
left, |
|
|
const int |
right, |
|
|
const std::vector< T > & |
baseArray |
|
) |
| const |
|
inlineprivate |
◆ computeBottleneckOnBranch()
computes for the path from x to ancestor the maximum distance (sum of edges) between any two consecutive terminals using the hpd updates it in longestPathDistance also puts in fromLowestToAncestor the sum of edges from the last terminal found to the ancestor (the last terminal is special since its Steiner ancestor is ancestor for ancestor as well, so we would consider a wrong part of the path
Definition at line 1009 of file SteinerTreePreprocessing.h.
◆ computeLongestDistToSteinerAncestorOnChain()
creates for every chain an array with the maximum of every prefix of a fictive array which keeps for every node the sum of the edges on the path from it to its closest terminal ancestor
Definition at line 892 of file SteinerTreePreprocessing.h.
◆ computeLongestDistToSteinerAncestorSegTree()
creates for every chain a segment tree built on a fictive array which keeps for every node the sum of the edges on the path from it to its closest terminal ancestor
Definition at line 911 of file SteinerTreePreprocessing.h.
◆ dfsHeavyPathDecomposition()
performs the heavy path decomposition on the tree belonging to the class updates the fields of the class
Definition at line 931 of file SteinerTreePreprocessing.h.
◆ distanceToAncestor()
computes the sum of all edges on the path from v to ancestor v must be in ancestor's subtree
Definition at line 879 of file SteinerTreePreprocessing.h.
◆ getBottleneckSteinerDistance()
◆ getMaxSegmentTree()
template<typename T >
| T ogdf::SteinerTreePreprocessing< T >::HeavyPathDecomposition::getMaxSegmentTree |
( |
const std::vector< T > & |
segmentTree, |
|
|
const int |
nodeIndex, |
|
|
const int |
left, |
|
|
const int |
right, |
|
|
const int |
queryLeft, |
|
|
const int |
queryRight |
|
) |
| const |
|
inlineprivate |
◆ lowestCommonAncestor()
◆ chainOfNode
◆ chains
◆ chainsOfTerminals
◆ closestSteinerAncestor
◆ distanceToRoot
◆ fatherOfChain
◆ isTerminal
◆ longestDistToSteinerAncestorOnChain
◆ longestDistToSteinerAncestorSegTree
◆ nodeLevel
◆ positionOnChain
◆ terminals
◆ tree
◆ weightOfSubtree
The documentation for this class was generated from the following file: