Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write a CLIPS program that does the following: Given the following deftemplates for facts describing a family tree: (deftemplate fatherof (slot father)(slot child)) (deftemplate

Please write a CLIPS program that does the following:

Given the following deftemplates for facts describing a family tree:

(deftemplate fatherof (slot father)(slot child))

(deftemplate motherof (slot mother)(slot child))

(deftemplate male (slot person))

(deftemplate female (slot person))

(deftemplate wifeof (slot wife) (slot husband))

(deftemplate husbandof (slot husband) (slot wife))

Write rules that infer the following relations. Use deffacts construct to insert some initial facts in the factbase that describes your own family tree , run the expert system, and display all the facts in the factbase (This should display all the initial and the inferred facts) .

a) Uncle, aunt

b) Cousin

c) Grandparent

d) Grandfather, grandmother

e) Sister, brother

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions