hw2 - Student Name : Sarah Sami Al-Maghrabi ID number :...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
| P a g e Student Name : Sarah Sami Al-Maghrabi ID number : 0930044 Q1. Which of the following sequences of characters are atoms, which are variables, and which are neither?[2 marks] Atom variable neither 1. vINCENT 2. Footmassage 3. variable23 4. Variable2000 5. big_burger 6. big burger 7. 'Jules' 8. '_Jules' Q2. Which of the following sequences of characters are atoms, which are variables, which are complex terms, and which are not terms at all? Give the functor and arity of each complex term.[3 marks] Atom variable complex terms not terms yes functor Arity 1. loves(Vincent,mia). mia, loves Vincent Yes loves Vincent,mia 2. 'loves(Vincent,mia)'. loves 3. Butch(boxer). 4. boxer(Butch). boxer Butch Yes boxer Butch 5. (Butch kills Vincent). 6. kills(Butch,Vincent Q3. How many facts, rules, clauses, and predicates are there in the following knowledge base? What are the heads of the rules, and what are the goals they contain?.[3 marks]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

hw2 - Student Name : Sarah Sami Al-Maghrabi ID number :...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online