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
A sheet of glass has a density of 2.5 g/cm3. what is the density of the glass in kg/m3
asambeis [7]

Answer:

this is ez

Step-by-step explanation:

2.5 g converted to kg: 2.5 g x 1 kg/1000 g = 0.0025 kg = 2.5x10-3 kg

cm3 converted to m3: 1 cm3 x 10-6 m3/cm3 = 1x10-6 m3

Thus, the conversion of 2.5 g/cm3 to kg/m3 would be 2.5x10-3 kg/10-6 m3 = 2.5x103 kg/m3 = 2500 kg/m3

7 0
3 years ago
Read 2 more answers
What is the midpoint of the line segment with endpoints (-5.5, -6.1) and (-0.5,9.1)?
umka21 [38]
(-3, 1.5)....simply add the x coordinates together, divide them by two, and then do the same for the y coordinates.
4 0
4 years ago
Worker A can finish a job in
Oksi-84 [34.3K]

Answer:

4

Step-by-step explanation:

\frac{1}{2}  -  \frac{1}{3} \\  \\  =  \frac{1}{6}  \times 24 \\  = 4

8 0
3 years ago
Intro to slope-intercept form What is the y-intercept of the line represented by y = -6x – 11? Choose 1 answer: А (0, -6 B (0, -
murzikaleks [220]

Answer:

d

Step-by-step explanation:

8 0
3 years ago
Read 2 more answers
The ratio of boys to girls in Ella’s grade is 3 to 4. The ratio of boys to girls in Minh’s grade is 4 to 5. Each grade has a tot
Aneli [31]

Answer:

In mih's school there are 100 boys

While in Ella's school there are 80 boys

Step-by-step explanation:

X*1/5=20

X=100

X*1/4=20

X=80

4 0
3 years ago
Other questions:
  • What is 2000 times 102
    8·2 answers
  • What is the value of x? Leave your answer in simplest radical form.
    11·2 answers
  • HELPPPPPP!!! PLEASEEEE!!!!
    5·1 answer
  • The time needed to paint a fence varies directly with the length of the fence and inversely with the number of painters. If it t
    5·1 answer
  • What is -2 times 3 divide by 2 times 2 plus 2 minus 2 times 2
    15·2 answers
  • A young sumo wrestler decided to go on a special high-protein diet to gain weight rapidly. After
    12·1 answer
  • The Distributive Property.<br> 16. 8(3.5)
    6·1 answer
  • Use Lagrange multipliers to find the maximum and minimum values of the function subject to the given constraint. f(x,y)= e^xy; X
    7·1 answer
  • Help please ASAP
    13·1 answer
  • I need the correct answers help pls
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!