Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

UNIVERSITY OF

ENGINEERING AND
TECHNOLOGY MARDAN

DEPARTMENT OF COMPUTER
SOFTWARE ENGINEERING

Semester: 8th Batch: 16


Name
Saad Waseem
Submitted to
Engr. Muhammad Ishaq
Roll Number
17MDSWE0668
Class Roll Number
04
Subject
Artificial Intelligence
Lab
08
May 9, 2021
Expert Systems
LAB Tasks:
Task 01: Make use of Forward Chaining technique, write a program for the below example.
Rule 1
IF The patient has deep cough
AND We suspect an infection
THEN The patient has Pneumonia
Rule 2
IF The patient’s temperature is above 100
THEN Patient has fever
Rule 3
IF The patient has been sick for over a fortnight
AND The patient has a fever
THEN We suspect an infection
Case facts
• Patients temperature= 103
• Patient has been sick for over a month
• Patient has violent coughing fits
Program:
Output:

Task 02: Make use of Backward Chaining technique, write a program for the below example.
Facts:
Queries:

You might also like