Generated on Wed Nov 1 15:04:49 2006 for Gecode by doxygen 1.4.5

picture-puzzle.cc File Reference

(Revision: 3517)

#include "examples/support.hh"
#include "gecode/minimodel.hh"

Go to the source code of this file.

Classes

class  PicturePuzzle
 Example: Picture puzzles More...

Picture specifications

A specification is given by a list of integers. The first two integers (w and h) specify the number of columns and rows respectively. Then w + h groups of integers follows. Each group is started by the number of integers it contains (n), followed by n integers specifying the sizes of the stretches of markers in that row/column.

const int * specs []
 List of specifications.
const unsigned int n_examples = sizeof(specs)/sizeof(int*)
 Number of specifications.


Variable Documentation

const int* specs[]
 

Initial value:

 {heart, bear, crocodile, unknown,
                      pinwheel, difficult, non_unique, dragonfly, p200}
List of specifications.

Definition at line 475 of file picture-puzzle.cc.

const unsigned n_examples = sizeof(specs)/sizeof(int*) [related]
 

Number of specifications.

Definition at line 478 of file picture-puzzle.cc.