Re: The n-knights problem



Lars wrote:
Lash Rambo wrote:
Any other leads/suggestions would still be much appreciated!

This sounds like a problem that could be tackled using boolean constraint programming, available as a library in various Prologs: each square on the board is a boolean variable (true <=> knight, false <=> empty). SICStus CLPB (Constraint Logic Programming on Booleans) has a card/2 predicate which constrains the number of true variables in a list. Trying this first with 64 (= 8*8), then 63, etc. will eventually find the max number of knights on the board. A trace of program execution is then a "proof" that no larger number of knights is possible.

Not the same thing, but related and maybe helpful: an ECLiPSe
solution to the "crowded chessboard" problem, see
http://eclipse.crosscoreop.com/eclipse/examples/crowded_chess.ecl.txt

-- Joachim
.



Relevant Pages

  • Re: The n-knights problem
    ... This sounds like a problem that could be tackled using boolean constraint programming, available as a library in various Prologs: ... A trace of program execution is then a "proof" that no larger number of knights is possible. ...
    (comp.lang.prolog)
  • CP news, vol 0, no 3, Oct 2004
    ... Constraint Programming News ... summary of important news in the area of constraint programming. ... venue of the annual CP conference, program and conference chairs, ...
    (comp.theory)
  • CP News, vol 0, no 2
    ... Constraint Programming News ... summary of important news in the area of constraint programming. ... venue of the annual CP conference, ...
    (comp.theory)
  • CPAIOR04 : LAST CALL FOR PAPERS
    ... International Conference on Integration of AI and OR Techniques ... Integration of AI and OR Techniques in Constraint Programming for Combinatorial ...
    (comp.theory)
  • CPAIOR04: Final call for papers
    ... International Conference on Integration of AI and OR Techniques ... Workshops on Integration of AI and OR Techniques in Constraint ... Programming for Combinatorial Optimisation Problems held in Ferrara ...
    (comp.theory)