[mercury-users] Request for comments on this code
    Nicolas Pelletier 
    nicolas.pelletier3 at free.fr
       
    Mon Jul  3 22:57:53 AEST 2006
    
    
  
Hello,
the following code  solves the  N  queens problems using a  constraint
based approach. It  is a rather direct  port from a  Prolog program. I
wrote this program  as an exercise  in learning Mercury concepts,  and
would like other  mercury users to tell  me  what they think  could be
improved: is  the style right  ? is there  a better  strategy to write
this kind of algorithm ?
For the record, the attached code is  not blindingly fast, but it only
uses native Mercury constructs (as opposed to calling some optimized C
code through FFI).
Thank you in advance for your answers,
-- 
Nicolas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: queens.m
URL: <http://lists.mercurylang.org/archives/users/attachments/20060703/3a1cff19/attachment.ksh>
    
    
More information about the users
mailing list