1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Molodets [167]
4 years ago
6

Suppose that Prolog facts are used to define the pred- icates mother(M, Y) and father(F, X), which represent that M is the mothe

r of Y and F is the father of X, re- spectively. Give a Prolog rule to define the predicate grandfather(X, Y), which represents that X is the grand- father of Y. [Hint: You can write a disjunction in Prolog either by using a semicolon to separate predicates or by putting these predicates on separate lines.]
Mathematics
1 answer:
VikaD [51]4 years ago
7 0

Answer and Explanation:

The Prolog rule expresses that logical implication (:-) describes the relationship between facts.

Prolog expressions are containing truth-functional symbols, which have the same intervention as in predicate calculus.

For example:  

English Predicate calculus prolog

and ^ ,

or v ;

By using information, given in the question,

We can make prolog:

Grandfather(X, Y)  :-mother(M,Y), father(X,M); father (F, Y), father(X,F)

Prolog (:- ) means define,

Prolog (,) represents a conjunction

And

Prolog (;) represent a disjunction

You might be interested in
In a journey of 15 miles, two third distance was travelled with 40 mph and remaining with 60 mph. How much time does the journey
Ad libitum [116K]

The first step in solving this question is to split the journey into 2 parts. In the first part of the journey, \frac{2}{3} \times 15 = 10 miles are covered at a speed of 40 mph. In the second part the journey 5 miles are covered at a speed of 60 mph.

The equation to compute the time of a journey  given the speed and distance is t=\frac{d}{s} where t is the time, s is the speed and d is the distance.

The time for the first part of the journey is calculated as shown below,

t=\frac{d}{t} \\t=\frac{10m}{40mph} =\frac{10}{40} h.

The time for the second part of the journey is calculated as follows,

t=\frac{d}{t} \\t=\frac{5m}{60mph} =\frac{5}{60} h.

The total time is the sum of the times taken to cover each part of the journey and is calculated as shown below,

t=\frac{10}{40} h+\frac{5}{60} =\frac{30+10}{120} h=\frac{40}{120}h =\frac{1}{3} h

The time to cover the journey is a third of an hour or 20 minutes.

5 0
3 years ago
What's 6⁄7 written as a fraction with a denominator of 42? A. 36⁄42 B. 7⁄42 C. 6⁄42 D. 42⁄42
astra-53 [7]
Multiply both numbers by 6 and you get answer A
4 0
3 years ago
Read 2 more answers
4
ArbitrLikvidat [17]

Answer: -0.25 and 5

Step-by-step explanation:

Khan

3 0
3 years ago
Cami and Joe each began saving money for a
Mice21 [21]

Answer:

twelve weeks

Step-by-step explanation:

4 0
3 years ago
Alexa spins a spinner that is divided into equally sized red, green, and blue sections. What is the probability that Alexa spins
vesna_86 [32]
The probability that Alexa spins an orange is zero. Since there is no orange on the spinner, there is no way for her to get an orange. Hope this helped!
4 0
3 years ago
Other questions:
  • Can somebody help me out? This is due so soon
    7·1 answer
  • Findthe<br> y -intercept<br> oftheparabola<br> y = x2 − 2x .
    10·2 answers
  • If 9 is added to twice a number and this sum is multiplied by 6​, the result is the same as if the number is multiplied by 5 and
    5·1 answer
  • How do you solve x^2-3x-5=0
    10·1 answer
  • Let U = {1,2,3,4,5}, A = {1,2,3} and B = {2,3,4}. 1. Describe the relations between each of these sets. Use your own words. 2. D
    5·1 answer
  • Edy has $450 in her savings account. She deposits $40 each month. Juan had $975 in his checking account. He writes a check for $
    11·1 answer
  • What is 4n squared plus n squared?
    12·1 answer
  • GIVING BRAINLIEST SUPER EASY 5TH GRADE MATH!
    12·2 answers
  • -77x - 78x = -155x
    7·1 answer
  • In the graph above, the coordinates of the vertices of QPR are Q(3, 0), P(5, 6), and R(7, 0). If AQPR is reflected across
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!