𝔖 Bobbio Scriptorium
✦   LIBER   ✦

A constraint approach to mastermind in logic programming

✍ Scribed by van Hentenryck, Pascal


Book ID
126953031
Publisher
Association for Computing Machinery
Year
1988
Weight
490 KB
Volume
103
Category
Article
ISSN
0163-5719

No coin nor oath required. For personal study only.

✦ Synopsis


Logic programming is a convenient tool for stating combinatorial problems due to its nondeterminism and its relational form. It is not surprising that simple and declarative programs can be written for problems like mastermind. However, due to their search strategy, logic languages are also very inefficient for solving the natural formulation of problems. Moving away from this natural formulation leads to much programming effort and to less modifable and extensible programs. This paper shows, on the mastermind example, that it is possible to write very declarative programs which will be executed efficiently by an extended logic programming language. The key idea is to embed consistency techniques inside logic programming. Within this approach, constraints are used actively to prune the search space in an "a priori" way instead of the passive way (for testing values) of usual languages. The resulting program outperforms all the proposed algorithms and achieves a speed-up of 40 over Shapiro's program in the average and a speed-up of 72 on Powers' benchmark.


πŸ“œ SIMILAR VOLUMES


A constraint logic programming approach
✍ F. Harary; G. Gupta πŸ“‚ Article πŸ“… 2002 πŸ› Elsevier Science 🌐 English βš– 366 KB

## In [1,2], a heuristics based approach ia presented for finding all perfect matchings of a graph. We present a simpler and more elegant approach based on constraint logic programming that embodies the same heuristic.

A hybrid constraint programming approach
✍ Nizar ElΒ Hachemi; Michel Gendreau; Louis-Martin Rousseau πŸ“‚ Article πŸ“… 2010 πŸ› Springer US 🌐 English βš– 523 KB
ACLP: Abductive Constraint Logic Program
✍ A.C. Kakas; A. Michael; C. Mourlas πŸ“‚ Article πŸ“… 2000 πŸ› Elsevier Science 🌐 English βš– 349 KB

This paper presents the framework of Abductive Constraint Logic Programming (ACLP), which integrates Abductive Logic Programming (ALP) and Constraint Logic Programming (CLP). In ACLP, the task of abduction is supported and enhanced by its non-trivial integration with constraint solving. This integra

Experiments in reactive constraint logic
✍ Francois Fages; Julian Fowler; Thierry Sola πŸ“‚ Article πŸ“… 1998 πŸ› Elsevier Science 🌐 English βš– 872 KB

In this paper we study a reactive extension of constraint logic programming (CLP). Our primary concerns are search problems in a dynamic environment, where interactions with the user (e.g. in interactive multi-criteria optimization problems) or interactions with the physical world (e.g. in time evol