KNOWLEDGE MODELING AND REPRESENTATION -
ASSIGNMENT (CBKM3103)
(a) In Prolog, list is either empty or it is composed of a first element (head) and a tail, which is a list itself. Empty list can be represented by the atom [] and a non-empty list on the other hand is represented by a term [H|T] where H denotes the head and T denotes the tail. Weekdays is a list of the days such as Monday, etc in a week.
i.?
ii.output
b)Find the N'th element in weekdays list. (N=2)
i. ?
ii.output
c)Reverse a list.
i. ?
ii.output
d)Duplicate the elements in weekdays list.
i. ?
ii.output
e)Replicate the elements in a weekdays list with given number of times.(2 times)
i. ?
ii.output
f)Drop every N’th element from a weekdays list. (2nd element)
i. ?
ii.Output
i. ?
ii.output
h)Rotate weekdays list N places to the left. (N=3)
i.?
ii.output
i)Remove the N'th element from a list. (2nd element)
i.?
ii.output
j)Extract a slice from a list.(position 2 and 4)
i.?
ii.output
(b) Besides using prolog to perform query, there are also different types of reasoning techniques used in artificial intelligence system. Among those techniques are case-based reasoning, model-based reasoning and rule-based reasoning. Compare and contrast these THREE techniques with relevant examples.