Uploaded by Adrish Elnes (alxskx)

Int

advertisement
Computer and Information Science Department
Assignment 1
Course Code: TEB2023/FEM3013/TFB2073
Name:
Course Title: Artificial Intelligence
Student ID.
Total Marks: 20
Submission deadline: 06-11-2023.
Date: 31-10-2023.
INSTRUCTIONS:
Late submissions will not be entertained.
Copied assignments will be marked ZERO.
Submit the assignment in both soft (ULearn) and hard form.
1. Knowledge Base:
• Parent(bob,paul).
• Parent(bob,lisa).
• Parent(Juliet,lisa).
• Parent(Juliet,paul).
• Parent(lisa,marry).
• Parent(peter,marry).
• Parent(marry,Sandra).
• Parent(paul,john).
• Male(bob).
• Male(paul).
• Male(john).
• Female(lisa).
• Female(Juliet).
• Female(Sandra).
• Female(marry).
i)
ii)
Add the rules.
Define and add the following relation to your program file:
a) Grandchildren using the parent relation.
b)
c)
d)
e)
f)
g)
Brother using parent and male relation.
Aunt (X,Y) in terms of the relation parent and sister
Uncle (X,Y) in terms of the relation parent and brother
Cousin (X,Y) using aunt and mother relation (aunt’s child)
Cousin (X,Y) using uncle and father relation (uncle’s child)
Cousin (X,Y) using parent relation only
Download