Question

Suppose that Prolog facts are used to define the predicates parent(P,X), man(X), and woman(X), which represent...

Suppose that Prolog facts are used to define the predicates parent(P,X), man(X), and woman(X), which represent that P is the parent of X , X is a man, X is a woman, respectively. Give a Prolog rule to define the predicates a) brother(X,Y) b) uncle(X,Y) c) cousin(X,Y)

Homework Answers

Answer #1

Plz like the answer

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Suppose the domain of the propositional function P ( x, y ) consists of pairs x...
Suppose the domain of the propositional function P ( x, y ) consists of pairs x and y, where x is a, b, c, or d and y is e, f, or g. Write out the following propositions using disjunctions, conjunctions, and negations. ∃x P ( x, g ) ∀y P ( b, y ) ∃y ¬ P ( a, y ) ∀x ¬ P ( x, e ) ∃x ¬ P ( x, f ) Translate the following statements...
suppose you flip a biased coin ( P(H) = 0.4) three times. Let X denote the...
suppose you flip a biased coin ( P(H) = 0.4) three times. Let X denote the number of heads on the first two flips, and let Y denote the number of heads on the last two flips. (a) Give the joint probability mass function for X and Y (b) Are X and Y independent? Provide evidence. (c)what is Px|y(0|1)? (d) Find Px+y(1).
Suppose that a random variable X has the distribution (pdf) f(x) =kx(1 -x^2) for 0 <...
Suppose that a random variable X has the distribution (pdf) f(x) =kx(1 -x^2) for 0 < x < 1 and zero elsewhere. a. Find k. b. Find P(X >0. 8) c. Find the mean of X. d. Find the standard deviation of X. 2. Assume that test scores for all students on a statistics test are normally distributed with mean 82 and standard deviation 7. a. Find the probability that a single student scores greater than 80. b. Find the...
Suppose that a consumer has the utility function given by: U(x,y)= (x^a)*(y^b) With prices p^x, p^y...
Suppose that a consumer has the utility function given by: U(x,y)= (x^a)*(y^b) With prices p^x, p^y and the income M, and where a>0, b>0. a) Maximize this consumer's utility. Derive Marshallian demand for both goods. b) Show that at the optimum, the share of income spent on each good does not depend on prices or income. c) Show that the elasticity of Marshallian demand for x is constant. d) For good x, use your answers to b) the elasticities of...
1. Suppose the equation p(x,y)=-2x^2+80x-3y^2+90+100 models profit when x represents the number of handmade chairs and...
1. Suppose the equation p(x,y)=-2x^2+80x-3y^2+90+100 models profit when x represents the number of handmade chairs and y is the number of handmade rockers produced per week. (1) How many chairs and how many rockers will give the maximum profit when there is not constraint? (2) Due to an insufficient labor force they can only make a total of 20 chairs and rockers per week (x + y = 20). So how many chairs and how many rockers will give the...
Suppose X is normally distributed. Which of the following is the probability question equivalent to “What...
Suppose X is normally distributed. Which of the following is the probability question equivalent to “What is the area under the curve to the right of 16.5?” A. What is P(X>24.2)? B. What is P(X<24.2)? C. What is P(16.5<X<24.2)? D. What is P(X<16.5)? E. What is P(X>16.5)? True or false: As the sample size increases, the mean of the distribution of sample means increases. True or false: As the sample size increases, the standard error increases. True or false: If...
Suppose that x is a binomial random variable with n = 5, p = .56, and...
Suppose that x is a binomial random variable with n = 5, p = .56, and q = .44. (b) For each value of x, calculate p(x). (Round final answers to 4 decimal places.) p(0) =0.0164 p(1) =0.1049 p(2) =0.2671 p(3) =0.3399 p(4) =0.2163 p(5) =0.0550 (c) Find P(x = 3). (Round final answer to 4 decimal places.) P(x = 3) 0.3399selected answer correct (d) Find P(x ≤ 3). (Do not round intermediate calculations. Round final answer to 4 decimal...
Suppose ?(?,?)=??f(x,y)=xy, ?=(−4,−4)P=(−4,−4) and ?=3?+2?v=3i+2j. A. Find the gradient of f. ∇?=∇f=  ?+i+  ?j Note: Your answers should...
Suppose ?(?,?)=??f(x,y)=xy, ?=(−4,−4)P=(−4,−4) and ?=3?+2?v=3i+2j. A. Find the gradient of f. ∇?=∇f=  ?+i+  ?j Note: Your answers should be expressions of x and y; e.g. "3x - 4y" B. Find the gradient of f at the point P. (∇?)(?)=(∇f)(P)=  ?+i+  ?j Note: Your answers should be numbers C. Find the directional derivative of f at P in the direction of ?v. ???=Duf= D. Find the maximum rate of change of f at P. E. Find the (unit) direction vector in which the maximum rate...
5. Suppose that the incenter I of ABC is on the triangle’s Euler line. Show that...
5. Suppose that the incenter I of ABC is on the triangle’s Euler line. Show that the triangle is isosceles. 6. Suppose that three circles of equal radius pass through a common point P, and denote by A, B, and C the three other points where some two of these circles cross. Show that the unique circle passing through A, B, and C has the same radius as the original three circles. 7. Suppose A, B, and C are distinct...
1. Single Factor Anova is used to decide whether risk level should be regarded as a...
1. Single Factor Anova is used to decide whether risk level should be regarded as a source of mutual fund return variation. Three levels of risk are employed: low, medium and high. The annual % return for random samples of 10 funds at each risk level is recorded. State the hypotheses of the test using correct notation and complete sentences. a) In a complete sentence (using the terms ‘risk level’ and ‘return’) explain the decision that would correspond to a...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT