|
ADS
Algorithms and Data Structures
|
The solutions that follow the changes of a graph, beyond the book. More...
Files | |
| file | ADS/graph/Reoptimization.h |
| The solutions that follow the changes of a graph, beyond the book: the observers of an Observable [see Observable.h] that keep the tree of the shortest paths from a node, the minimum spanning forest and the maximum flow between two nodes, each together with a certificate of its optimality, so that after a change they can often prove at once that the solution is still optimal, and otherwise repair it or compute it again by the algorithms of the book [see ShortestPaths.h, MinimumSpanningTree.h, MaxFlow.h]. | |
Concepts | |
| concept | ADS::Reoptimizable |
| a solution that follows the events of weights W | |
| concept | ADS::FlowEngine |
| the engines of the solves of a MaxFlowObserver, objects that the observer keeps: scratch( net , s , t , how ) gives the value of a maximum flow of net from the zero flow, and warm( net , s , t , how ,
v ) that of a maximum flow from the flow that net keeps, of value \( v \) before the capacities changed (a capacity cut below its flow leaving the excess and the deficit that FlowNetwork::maxFlow() routes first); each leaves a maximum flow in net, whose minimum cut the observer reads. | |
Classes | |
| class | ADS::EventQueue< W, P > |
| the queue of the events, the recompute policy P [see ReoptPolicy] and the counts that the observers share More... | |
| class | ADS::ShortestPathsObserver< G, P > |
| the shortest paths from \( r \) in \( g \), kept up to date, by the recompute policy P More... | |
| class | ADS::SpanningForestObserver< G, P > |
| the minimum spanning forest of an unoriented \( g \), kept up to date, by the recompute policy P More... | |
| struct | ADS::AugmentEngine |
| the engine of ADS, both solves by the augmentations how of FlowNetwork::maxFlow() [see MaxFlow.h] More... | |
| class | ADS::MaxFlowObserver< G, P, E > |
| the maximum flow from \( s \) to \( t \) in \( g \), the weights the capacities, kept up to date, the solves made by the engine E, the augmentations of ADS by default More... | |
| class | ADS::AssignmentObserver< G, P > |
| the assignment of least cost of the \( k \) rows \( 0 , \ldots ,
k - 1 \) of \( g \) to its \( k \) columns \( k , \ldots ,
2 k - 1 \), the weights of the edges between them the costs, kept up to date [see Assignment.h] More... | |
The solutions that follow the changes of a graph, beyond the book.
The definitions, the invariants and the costs of the area are in Theory of graphs.