logo
down
shadow

PROLOG QUESTIONS

Constraint Values on Local Variable
Constraint Values on Local Variable
it should still fix some issue After some searching I found the problem. The code was able to generate the correct schedule from the beginning. The problem was only the Starting 'start times' of the tasks were minimized if they needed to be for minim
TAG : prolog
Date : November 22 2020, 10:54 AM , By : user2956222
Listing facts with uncertainty
Listing facts with uncertainty
With these it helps Why don't you use a tuple predicate like fact/2?Then you specify:
TAG : prolog
Date : November 22 2020, 10:31 AM , By : Tom Charland
Prolog array in rules and operation
Prolog array in rules and operation
wish help you to fix your issue I have a little problem with define facts and search in array in Prolog. I dont know, how add to rule my array and result of it. , You are missing a member/2 call to get an element out of an array:
TAG : prolog
Date : November 22 2020, 01:01 AM , By : user2954379
Get the length of a list in prolog in a non-recursive way
Get the length of a list in prolog in a non-recursive way
should help you out I have the following code for getting the length of a list in prolog, it works recursively. Is there any other way for getting the length? , Here is an iterative solution that uses repeat/0 predicate:
TAG : prolog
Date : November 22 2020, 01:01 AM , By : Juanith
What is the arity of the following complex terms?
What is the arity of the following complex terms?
wish help you to fix your issue Notice that what you call "complex terms" are normally called coumpound terms in Prolog. You can easily check for the arity of Prolog terms yourself in the following way:
TAG : prolog
Date : November 20 2020, 01:01 AM , By : Aline Oliveira
prolog,using the right algorithm but getting the wrong answer
prolog,using the right algorithm but getting the wrong answer
should help you out i am trying to find the maximum number out of a list and even used write() for every recursion to verify my steps.here is my code , The problem is in this clause:
TAG : prolog
Date : November 17 2020, 11:55 AM , By : user2950378
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org