47#ifndef __ADS_Pseudopolynomial
48 #define __ADS_Pseudopolynomial
101template<
class Bits = std::vector<
bool > >
103 std::vector< std::vector< bool > > * rows =
nullptr );
132inline std::optional< Nodes >
subsetSumSet(
const std::vector< long > & A ,
150inline std::optional< Nodes >
partitionDP(
const std::vector< long > & A );
182inline std::optional< std::vector< int > >
228inline std::pair< double , std::vector< std::vector< Piece > > >
251inline std::optional< std::vector< std::vector< Piece > > >
253 const std::vector< double > & T ,
int m );
282inline std::optional< std::vector< int > >
293#include "ADS/intractable/impl/Pseudopolynomial.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The problems in NP of chapter 18, each with its polynomial certificate, which checks a proposed solut...
bool subsetSumDP(const std::vector< long > &A, long k, std::vector< std::vector< bool > > *rows=nullptr)
whether some elements of sum to (false if ), by the vector with true if some of sum to ; the vec...
std::optional< std::vector< int > > schedulingDP(const std::vector< long > &t, int m, long d)
MULTIPROCESSOR SCHEDULING by dynamic programming on the vectors of the loads of the processors,...
std::optional< Nodes > subsetSumSet(const std::vector< long > &A, long k)
the places of a subset of of sum , by the table of all the rows, time and space,...
std::optional< std::vector< int > > bottino(const std::vector< long > &P)
the thief of each jewel of price , so that the three thieves take each, or nothing; tells whether t...
std::optional< Nodes > partitionDP(const std::vector< long > &A)
PARTITION by dynamic programming: the places of a half of of half the sum, or nothing (exercise 19....
std::pair< double, std::vector< std::vector< Piece > > > mcNaughton(const std::vector< double > &t, int m)
the rule of McNaughton: the length of the schedule and the pieces of each processor; the programs fi...
std::optional< std::vector< std::vector< Piece > > > realTimeScheduling(const std::vector< double > &C, const std::vector< double > &T, int m)
REAL-TIME SCHEDULING without priority rule: the tasks of time every run on processors if and only ...
an interval of the program on a processor
Definition Pseudopolynomial.h:188
double end
the time at which the piece ends
Definition Pseudopolynomial.h:191
int program
the program
Definition Pseudopolynomial.h:189
double start
the time at which the piece starts
Definition Pseudopolynomial.h:190