AllInterval Class Reference
[Scripts for problems]
Inherits Example.
Detailed Description
Example: All-interval SeriesAn all-interval series of length is a sequence
where each is an integer between and such that the following conditions hold:
- the are a permutation of (that is, they are pairwise distinct and take values from ).
- the differences between adjacent values with form a permutation of .
See also problem 7 at http://www.csplib.org/.
Definition at line 63 of file all-interval.cc.
Constant sets for attacking queens. | |
int | main (int argc, char *argv[]) |
Main-function. | |
Public Member Functions | |
AllInterval (const SizeOptions &opt) | |
Actual model. | |
AllInterval (bool share, AllInterval &e) | |
Constructor for cloning e. | |
virtual Space * | copy (bool share) |
Copy during cloning. | |
virtual void | print (std::ostream &os) |
Print solution. |
Constructor & Destructor Documentation
AllInterval::AllInterval | ( | const SizeOptions & | opt | ) | [inline] |
AllInterval::AllInterval | ( | bool | share, | |
AllInterval & | e | |||
) | [inline] |
Member Function Documentation
virtual Space* AllInterval::copy | ( | bool | share | ) | [inline, virtual] |
virtual void AllInterval::print | ( | std::ostream & | os | ) | [inline, virtual] |
Friends And Related Function Documentation
int main | ( | int | argc, | |
char * | argv[] | |||
) | [related] |
The documentation for this class was generated from the following files:
- examples/all-interval.cc (Revision: 5524)
- examples/alpha.cc (Revision: 6259)
- examples/bacp.cc (Revision: 5792)
- examples/baseline.cc (Revision: 5524)
- examples/bibd.cc (Revision: 5524)
- examples/black-hole.cc (Revision: 6052)
- examples/crew.cc (Revision: 5815)
- examples/crowded-chess.cc (Revision: 6033)
- examples/domino.cc (Revision: 7674)
- examples/donald.cc (Revision: 5524)
- examples/eq20.cc (Revision: 5524)
- examples/golf.cc (Revision: 7340)
- examples/golomb-ruler.cc (Revision: 5524)
- examples/graph-color.cc (Revision: 5524)
- examples/grocery.cc (Revision: 6024)
- examples/hamming.cc (Revision: 5524)
- examples/ind-set.cc (Revision: 5524)
- examples/javascript.cc (Revision: 6002)
- examples/kakuro.cc (Revision: 5572)
- examples/knights.cc (Revision: 5524)
- examples/langford-number.cc (Revision: 7474)
- examples/magic-sequence.cc (Revision: 5524)
- examples/magic-square.cc (Revision: 5524)
- examples/minesweeper.cc (Revision: 5524)
- examples/money.cc (Revision: 5524)
- examples/nonogram.cc (Revision: 5524)
- examples/ortho-latin.cc (Revision: 5524)
- examples/partition.cc (Revision: 7311)
- examples/pentominoes.cc (Revision: 5861)
- examples/perfect-square.cc (Revision: 6402)
- examples/photo.cc (Revision: 5524)
- examples/queen-armies.cc (Revision: 6053)
- examples/queens.cc (Revision: 5789)
- examples/sports-league.cc (Revision: 6033)
- examples/steiner.cc (Revision: 6428)
- examples/stress-distinct.cc (Revision: 5524)
- examples/stress-domain.cc (Revision: 5524)
- examples/stress-element.cc (Revision: 5524)
- examples/stress-exec.cc (Revision: 5524)
- examples/stress-extensional.cc (Revision: 5524)
- examples/stress-linear-bool.cc (Revision: 5524)
- examples/stress-min.cc (Revision: 5524)
- examples/stress-search.cc (Revision: 5524)
- examples/sudoku.cc (Revision: 6034)
- examples/tsp.cc (Revision: 5524)
- examples/warehouses.cc (Revision: 6102)
- test/test.hh (Revision: 5284)