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]
3 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]3 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
The newly elected president needs to decide the remaining 5 spots available in the cabinet he/she is appointing. If there are 15
skad [1K]

Answer: There are 360360 ways to appoint the members of the cabinet.

Step-by-step explanation:

Since we have given that

Number of eligible candidates = 15

Number of spots available = 5

We need to find the number of different ways the members can be appointed where rank matters

For this we will use "Permutations":

So, the required number of different ways in choosing the members for appointment is given by

^{15}P_5=360360

Hence, there are 360360 ways to appoint the members of the cabinet.

7 0
3 years ago
((Use the graph shown below to fill in the blank.))
Naily [24]
When x is 4 the diagonal line is on the first line above the 4 so that would be y=1
7 0
3 years ago
Read 2 more answers
Rite the first ten terms of a sequence whose first term is -10 and whose common difference is -2.
Lelechka [254]
-10, -10-2·1= -12, -10-2·2=-14, -10-2·3=-16, -10-2·4= -18, -10-2·5= -20,
 -10-2·6= -22, -10-2·7 =-24, -10-2·8=-26, -10-2·9=-28

a=-10
d=-2
xn=a+d(n-1)

the first ten terms are
-10, -12, -14, -16, -18, -20, -22, -24, -26, -28

8 0
3 years ago
Although five of John's answers were incorrect, 90% of his answers were correct. How many questions did John answer in all?
fiasKO [112]

Answer:

John answered 50 questions.

Step-by-step explanation:

Although five of John's answers were incorrect, 90% of his answers were correct.

This means that 5 is 100 - 90% = 10% of the total number of questions, n. So

0.1n = 5

n = \frac{5}{0.1}

n = 50

John answered 50 questions.

7 0
3 years ago
Write a polynomial function in standard form with zeros at −3, −1, and 1.
Annette [7]

Answer:

f(x) = {x}^{3}  + 3 {x}^{2}  - x -3

Step-by-step explanation:

The given polynomial has zeros at:

x=−3, x=−1, and x=1.

This means that:

x+3, x+1, and x-1 are all factors of this polynomial.

The factored form of this polynomial is :

f(x) = (x + 3)(x + 1)(x - 1)

We expand the last two factors using difference of two squares.

f(x) = (x + 3)( {x}^{2}  - 1)

f(x) = x ( {x}^{2}  - 1) + 3( {x}^{2}  - 1)

f(x) = {x}^{3}  - x+ 3 {x}^{2}  -3

f(x) = {x}^{3}  + 3 {x}^{2}  - x -3

This is the standard form because it is now in decreasing powers of x.

8 0
3 years ago
Other questions:
  • Urgent mathematics help needed!! URGENT
    8·1 answer
  • Simplify.
    15·1 answer
  • For numbers 10a-10b use place value to find the product 3x600=3×_hundreds
    10·1 answer
  • 10x - y = 2<br> 5x + 3y = 5 --
    14·1 answer
  • a toy company spends $1,500 each day for factory expenses plus $8 per teddy bear which sells for $12 each. How many bears must t
    6·1 answer
  • What is set? Mark as brainiest
    11·2 answers
  • Question A) Work out the distance travelled on a cycle in the first 14 seconds.
    8·1 answer
  • Use the figure below to find the answer.
    13·1 answer
  • Evaluate the expression(ab) for a = 10 and b= 4
    13·2 answers
  • Math class, last chance to take it!
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!