subject

1. Assuming the parent relation as defined in the following piece of Prolog code, what will be Prolog's answers to the following questions?
parent (pam, bob).
parent (tom, bob).
parent (tom, liz).
parent (bob, ann).
parent (bob, pat).
parent (pat, jim).
a) ?- parent (jim, x).
b) ?- parent (X, jim).
c) ?- parent (pam, X),parent (X, pat).
d) ?- parent (pam, X), parent (X, Y), parent (Y, jim).
2. Formulate in Prolog the following questions about the parent relation:
a) Who is Pat's parent?
b) Does Liz have a child?
c) Who is Pat's grandparent?

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, darrengresham999
Choose the best explanation for the following statement communication is symbolic
Answers: 3
image
Computers and Technology, 22.06.2019 20:10, ianmartin6080
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
image
Computers and Technology, 23.06.2019 05:30, savyblue1724707
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
image
Computers and Technology, 23.06.2019 18:20, Blossom824
What is wi-fi infrastructure? a metropolitan area network that uses radio signals to transmit and receive data a communications technology aimed at providing high-speed wireless data over metropolitan area networks a means by which portable devices can connect wirelessly to a local area network, using access points that send and receive data via radio waves includes the inner workings of a wi-fi service or utility, including the signal transmitters, towers, or poles and additional equipment required to send out a wi-fi signal
Answers: 2
You know the right answer?
1. Assuming the parent relation as defined in the following piece of Prolog code, what will be Prol...

Questions in other subjects:

Konu
Mathematics, 26.10.2020 23:20
Konu
History, 26.10.2020 23:20
Konu
Mathematics, 26.10.2020 23:20