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

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

View Full Document Right Arrow Icon
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
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.

This note was uploaded on 01/19/2010 for the course CS 246 taught by Professor Wormer during the Spring '08 term at Waterloo.

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 Right Arrow Icon
Ask a homework question - tutors are online