52#ifndef __ADS_EasyCases
53 #define __ADS_EasyCases
111inline std::optional< std::vector< bool > >
twoSat(
const Cnf & F ,
int n );
165inline std::vector< std::pair< int , int > >
167 const std::vector< std::pair< int , int > > & E );
218#include "ADS/complexity/impl/EasyCases.tpp"
The QUEUE of the book [see ADT.h] realized with a circular vector of places, the place 0 following t...
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The GRAPH with lists of adjacency of section 9.4 [see Graph.h]: for each node the LIST of its adjacen...
The maximum flow of section 15.2 in a network , with integer capacities, and the minimum cut.
The problems in NP of chapter 18, each with its polynomial certificate, which checks a proposed solut...
The visits of a GRAPH of section 9.5 and their applications, each in time on lists or vectors of adj...
std::optional< std::vector< bool > > twoSat(const Cnf &F, int n)
an assignment of the variables that satisfies , each clause of one or two literals,...
std::vector< std::pair< int, int > > bipartiteMatching(int p, int q, const std::vector< std::pair< int, int > > &E)
the pairs of a largest matching of the bipartite graph with left and right nodes and the edges of...
int literalNode(int l)
the node of the literal in the graph of the implications, for and for its negation
int intervalClique(const std::vector< std::pair< long, long > > &I)
the largest clique of the graph of the intervals : the most intervals through one point,...
Adjacency intervalGraph(const std::vector< std::pair< long, long > > &I)
the graph of the intervals , an edge if two share a point: an empty interval meets none,...
std::optional< std::vector< int > > twoColoring(const Adjacency &G)
the side, 0 or 1, of each node of , the ends of each edge apart, or nothing if has an odd cycle; the...
std::vector< Clause > Cnf
a formula
Definition Problems.h:85
std::vector< std::vector< bool > > Adjacency
an adjacency
Definition Problems.h:83