Solving a puzzle with constraint programming

Constraint programming can get some getting used to. In the usual programming frame of mind (whether with functional or imperative languages) you think of the algorithm and specify to the computer, via your code, exactly what steps to go through in order to solve the problem. With constraint programming, you don’t tell the computer what …

Continue reading ‘Solving a puzzle with constraint programming’ »

Constraint Programming

Constraint programming is a field that is about solving problems where you have to find a solution in a (usually large) search space given specific constraints. A classic problem of this sort is the eight queens puzzle. There are quite a few good constraint program libraries, among them are java based Choco and C++ based …

Continue reading ‘Constraint Programming’ »