Top "Prolog" questions

Do not use this tag like Prologue and Epilogue.

Good beginners material on Prolog

I am looking for good beginners material on Prolog, both online and printed. I am not only interested in 'learning …

prolog artificial-intelligence
Prolog program to find equality of two lists in any order

I wanted to write a Prolog program to find equality of two lists, where the order of elements doesn't matter. …

list prolog any failure-slice
Prolog Or(;) Rule Return Multiple Result

i have define a rule with or operator but it return multiple true or false. isloanaccept(Name,Guarantor,LoanType,LoanAmount,…

prolog rule
Random items in Prolog

I know I can do X is random(10). to get a random number from 0 to 10, but is there a similar …

random prolog swi-prolog
Solving N-Queens Problem... How far can we go?

The N-Queens Problem: This problem states that given a chess board of size N by N, find the different permutations …

algorithm prolog clpfd n-queens
convert float to integer in prolog

How to convert float to integer in prolog? I tried: ?- integer(truncate(sqrt(9))). false. ?- integer(round(sqrt(9))). false.

floating-point integer prolog clpfd
Depth First Search Algorithm Prolog

I am hoping you could help me with this. I am trying to learn about Depth First search algorithm in …

algorithm prolog depth-first-search transitive-closure
How to create a fact in SWI-Prolog?

I just want to create something like: like(x,y). I've been trying for a long time and am really …

prolog
Einsteins Riddle Prolog

I need some help with a prolog homework for my AI class. The question is to write prolog code for …

prolog logic zebra-puzzle
Prolog "Out of local stack" Error

Here is my simple Prolog program: friend(X,Y):- knows(X,Y). friend(X,Z):- friend(X,Y), …

prolog failure-slice transitive-closure