{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

s09_a4

# s09_a4 - UNIVERSITY OF WATERLOO School of Computer Science...

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

UNIVERSITY OF WATERLOO School of Computer Science CS245 Logic and Computation Spring 2009 ASSIGNMENT 4 (Due: Tuesday, June 30, 2008 at 5:00pm) Use makeCover to produce a cover page for your assignment and hand in your assignment in the CS245 assignment box. Assignments are to be done individually. Consider the murder mystery from the previous assignment. Below is the sample solution where each of the clues is expressed in predicate logic. 1. Someone who lives at Wisteria Lodge murdered Aunt Agatha. x lodge( x ) murdered( x , Agatha) 2. Aunt Agatha, Beatrice, and Charles live at Wisteria Lodge and nobody else lives there. lodge(Agatha) lodge(Beatrice) lodge(Charles) x lodge( x ) ( x = Agatha x = Beatrice x = Charles) 3. Beatrice is the only person Aunt Agatha doesn’t hate. x • ¬ hates(Agatha, x ) ( x = Beatrice) 4. Aunt Agatha hates no one that Charles hates. x

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 2

s09_a4 - UNIVERSITY OF WATERLOO School of Computer Science...

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

View Full Document
Ask a homework question - tutors are online