Module graph_algo_ptas::algorithm::dynamic_programming::solve
source · [−]Expand description
Contains data structures and algorithms for dynamic programming on tree decompositions.
use graph_algo_ptas::generation::erdos_renyi::generate_petgraph;
use graph_algo_ptas::algorithm::dynamic_programming::solve::dp_solve;
use graph_algo_ptas::algorithm::dynamic_programming::solve::DpProblem;
let graph = generate_petgraph(20, 0.1, None);
let sol = dp_solve(&graph, None, &DpProblem::max_independent_set());
Structs
Contains the neccessary information for solving a (hard) problem
using dynamic programming on tree decompositions.
Represents a single entry in a dynamic programming table.
Enums
Used for differentiating between minimization and maximization problems.
Functions
Solves the given problem on the input graph using dynamic programming.
For convenience.
Type Definitions
For each bag in the tree decomposition a table is calculated.
Such a table is represented by
HashMap
.