Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

III. FORWARD CHAINING (3 pts) You are given the following information in a KB: R

ID: 3755851 • Letter: I

Question

III. FORWARD CHAINING (3 pts)

You are given the following information in a KB:

R1: Like(x1, LA) Goodlooking(x1)

R2: Goodlooking(x2) In(x2, LA) Like(x2, LA)

R3: In(x4, LA) Love(x4, LA)

R4: Appear(x5, ET) Female(x5) Love(x5, LA) Actress(x5)

R5: Appear(x6, ET) Love(x6, LA)

R6 : Love(x7, LA) Greedy(x7)

Using Forward Chaining when adding facts F1-F3 (given below) in order, show the order of facts generated and added to the knowledge base. Show your work!

F1: Female(Jane)

F2: Like(Jane, LA)

F3: Appear(Jane, ET)

Explanation / Answer

FORWARD CHAINING

R1: Like(x1, LA) Goodlooking(x1)

R2: Goodlooking(x2) In(x2, LA) Like(x2, LA)

R3: In(x4, LA) Love(x4, LA)

R4: Appear(x5, ET) Female(x5) Love(x5, LA) Actress(x5)

R5: Appear(x6, ET) Love(x6, LA)

R6 : Love(x7, LA) Greedy(x7)

(R1 IF

(ANIMAL has hair) THEN (ANIMAL is a mammal))

(R2

IF (ANIMAL gives milk) THEN (ANIMAL is a mammal))

(R3

IF (ANIMAL has feathers) THEN (ANIMAL is a bird))

(R4

IF (ANIMAL flies) (ANIMAL lays eggs) THEN (ANIMAL is a bird))

(R5

IF (ANIMAL is a mammal) (ANIMAL eats meat) THEN (ANIMAL is a carnivore))

(R6

IF (ANIMAL is a mammal) (ANIMAL has pointed teeth) (ANIMAL has claws) (ANIMAL has forward-pointing eyes) THEN (ANIMAL is a carnivore))