cs245-asn3-soln

cs245-asn3-soln - CS 245 Winter 2009 Assignment 3 Due: Thu...

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

View Full Document Right Arrow Icon
CS 245 Winter 2009 Assignment 3 Due: Thu 5 Feb 2009 10am in the CS245 Drop Boxes 25 marks SOLUTION SET There may be multiple correct answers to some of these questions. 1. (10 marks) Formalization in Predicate Logic (a) (6 marks) Express each of the following sentences as a predicate logic formula. Do not use types. Do not use sets. (b) (4 marks) Redo your formalizations of part (a) with appropriate types. For both parts, choose meaningful names for your predicates, constants, types, and functions. Use functions where appropriate. If the meaning of your identi±ers is not obvious, show the English phrases that they represent. 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
i. There is only one Canadian whose age is greater than 115. Soln: x Canadian ( x ) ( age ( x ) > 115) ∧ ∀ y Canadian ( y ) ( age ( y ) > 115) ( x = y ) ii. An MVP is a player who scores more goals than any other player. Soln: y mvp ( y ) player ( y ) ∧ ∀ x player ( x ) ∧ ¬ ( x = y ) goals ( y ) > goals ( x ) With types:
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/23/2009 for the course CS 245 taught by Professor A during the Spring '08 term at Waterloo.

Page1 / 3

cs245-asn3-soln - CS 245 Winter 2009 Assignment 3 Due: Thu...

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

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