Enigma 1225: Prolog-assisted solution of a puzzle using discrete mathematics
暂无分享,去创建一个
A mathematical puzzle from a recent issue of the New Scientist magazine is solved by combining the theory of permutations with Prolog's symbolic and other computational facilities. The scheme studied is interesting because it shows that the power of the generate-and-test approach, a rather crude approach known from Artificial Intelligence, is greatly enhanced if it is supplemented by some topical knowledge from the field of study. The puzzle involves searching for matrices with certain patterns, leading to the study of permutation types. The suggested route allows for the solution of a generalized version of the original puzzle.
[1] W. F. Clocksin. Clause and effect - Prolog programming for the working programmer , 1997 .
[2] Robert J. Schalkoff,et al. Artificial Intelligence: An Engineering Approach , 1990 .
[3] Leon Sterling,et al. The Art of Prolog - Advanced Programming Techniques , 1986 .