I\'d like to know how to make a predicate that puts all results obtained from some query (so I get a result and press semicolon until I get False) in a list.
This is directly from a tutorial online, and I get a top down level design error, help? employee(193,\'Jones\',\'John\',\'173 Elm St.\',\'Hoboken\',\'NJ\',
I want to sum up each row and column in matrix and check whether all of it are the same. I want to use sum of row and transpose method to do it, but I had no ideas how it 开发者_如何学运维can check wh
How to convert float to integer in prolog? 开发者_JS百科 I tried: ?- integer(truncate(sqrt(9))). false.
I am trying to compile csp.pl from \"Computational Intelligence book\" which solves the constraint satisfaction problem. I want to use this as a base to solve crossword puzzle generator.
I\'m trying to find the most common list item common([b,a,a,a,c,d,b,f,s,f,s,f,s,f,s,f,f],R) so the result should be R=f,
In the context of a Java/Eclipse application I would like to use Prolog for a particular task. What are the available solutions and tools to do that, and associated pro and cons 开发者_运维问答?
I try to understand how axiom resolution works in prolog. Let\'s assume that I define the two basic operations on the natural numbers:
I\'ve got a specific problem but I\'ll just try and come up with a general question so other people might benefit from it too...
I know in prolog we ask for is that true or false , can we also do compu开发者_Python百科te for example average and how the predicate look like?Of course you can compute the average of a list of numbe