Pages

Wednesday 21 December 2011

CS607- Artificial Intelligence Assignment No. 03 SEMESTER FALL 2011 Idea Solution

Question 1:
First define and then add facts in working memory by using clips commands. Facts are given below.
[10 Marks]
1) “A patient has 101 degree Fahrenheit temperature, yellow spots, red rash and infected throat.”
Note: Temperature, spots, rash and throat are the parameters of a patient.
2) “Disease is diagnosed as allergy”
Note: Disease is a parameter of title diagnose
3) Novidat and Evil are the medicines suggested by the doctor as treatment.
Note: Medicine is a parameter of title treatment.
Question 2:
Add rules in knowledge base by using clips commands. Rules are given below. [10 Marks]
1) If a patient has 101 degree Fahrenheit temperature, yellow spots, red rash and infected throat then assert
that disease is diagnosed as allergy and print out that patient is suffering from allergy.
Note: Disease is a parameter of title diagnose
2) If disease is diagnosed as allergy then assert that Novidat and Evil are the medicines suggested by the
doctor as treatment and print out that Novidat and Evil medicines should be used.
Note: Medicine is a parameter of title treatment.