Title | A3 - AI practice |
---|---|
Course | Artificial Intelligence |
Institution | COMSATS University Islamabad |
Pages | 1 |
File Size | 44.1 KB |
File Type | |
Total Downloads | 16 |
Total Views | 147 |
AI practice...
Rules
Facts (Assertions)
R1: IF X is a mamual THEN X is a crocodile;
A1: Spike is a mamual;
R2: IF X is not a crocodile AND X lives underwater THEN X is a manatee;
A2: Fido is a mamual;
R3: IF X is a mamual AND X lives underwater THEN X is a hippo;
A3: Fido lives under water;
R4: IF X is a crocodile OR X is a hippo THEN X is dangerous;
A4: Rover is a crocodile;
R5: IF X is not a crocodile THEN X is safe;
AI Assignment No. 3
1. Run forward chaining on the above knowledge base to answer the following questions. The answer should be in the following tabular format (Note: completely show your work step by step): a. Which animal (Fido, Spike, Rover) are proved to be dangerous? b. Which animal (Fido, Spike, Rover) are proved to be safe? Inferred facts 1 2
Matched Rules...