From an old final for my class: Here is some prolog code: mystery(1, 1). mystery(N, F) :- N1 is N-1, mystery(N1,F1),
Assume that the following facts are already entered into the Prolog database: father(X, Y)// X is the father of Y
I am starting to play with prolog, and with a Java background it\'s really difficult for me so here is a silly question:
I\'ve been learning Prolog for the past two months. I want to increase my knowledge as soon as possib开发者_StackOverflowle.
Well i cant decide how should my facts look in the prolog database...and my assignment is to write predicate that will give you the shortest path between 2 subway sta开发者_开发百科tions i have idea f
Warning, I\'m quite new to Prolog. I\'ve written a split predicate in Prolog. It splits a list into two new lists. One that contains items greater than Key, and one that contains items less than or e
An n x n matrix can be represented as a list of n lists, each with n elements, the matrix could actually
I am running a tool in Prolog, and after I execute it, the result will appear on the screen, inside the Prolog shell. How can I copy this result into another file开发者_开发技巧?you never said what pr
I know it might sound strange but I would like to know one thing in this new world where Microsoft Visual F# is getting into.
I am using http://www.gnu.org/software/gnuprologjava/ to perform prolog stuff from Java application.