3 ms·
Adding to wavemode, the Sudoku example is a good starting point: https://github.com/Gecode/gecode/blob/master/examples/sudoku.cpp https://github.com/Gecode/geco
by mzl 1y ago
Adding to wavemode, the Sudoku example is a good starting point: https://github.com/Gecode/gecode/blob/master/examples/sudoku.cpp https://github.com/Gecode/gecode/blob/master/examples/sudoku...
In the documentation (https://www.gecode.org/doc-latest/MPG.pdf https://www.gecode.org/doc-latest/MPG.pdf) there are a lot of worked examples as well.
- ur-whale 1y agoYes, I found those. The point is to make the example front and center on the homepage so as to very quickly show what this is about to the casual passer-by.
- CamperBob2 1y agofor (int i=0; i<nn; i++) { distinct(*this, m.row(i), opt.ipl()); distinct(*this, m.col(i), opt.ipl()); } Weird way to use C++, passing *this to everything explicitly, but maybe they have a reason.
- nurettin 1y agoQt does this as well. It is a common way of preserving a parent-child relationship.
- CamperBob2 1y agoHow does it do that?