Re: Non dominating queens problem



"TS" <chewthiamsoon@xxxxxxxxx> writes:
> for the first solution, what do you input in the query?
>
> for the 2nd solution, i input queensp(2,Qs), but it fails at
> gen_listp(N,Qs)... what could be the problem here? did i input wrongly?

It's a purely logical program, using the symbolic representation of natural
numbers.

?- queensp(s(s(s(s(0)))), Queens).

--
mailto:jjk@xxxxxxx As the air to a bird, or the sea to a fish,
http://www.bawue.de/~jjk/ so is contempt to the contemptible. [Blake]
http://del.icio.us/jjk
.



Relevant Pages