NU CS 348 - Homework 3 Logic - Homework 3: Homework 3: Logic

Unformatted text preview:

CS 348: Introduction to Artificial IntelligenceHomework 3: LogicHand in a hard-copy of your responses to the questions by the start of class on Monday, May 1.CS 348: Introduction to Artificial IntelligenceHomework 3: Logic1. Translate the following English sentences into first-order logic sentences. Use any predicates and functions you think appropriate.a. John is hungry.b. Bob loves his cat.c. Carla envies everyone who owns an SUV and a fur coat.d. Someone took Bill’s wallet.e. Everybody loves somebody.2. Translate the following first-order sentences into English sentences. Make the obvious assumptions about the meanings of the predicates and functions.a. Happy(Carlos)b. Wants(Beatrice, JacketOf(Roxana))c. x y[Person(x) PerfectJob(x,y)]d. x [Military(x) ( y(Weapon(y) Skilled(x,y) ))]e. x(Sister(Bob,x) Doctor(x))3. Consider the following first-order logic sentences.a. Convert each sentence to Conjunctive Normal Form.b. Use resolution to prove that Kills(Mulder,Alien) is true.i. FBIagent(Mulder)ii. Weapon(Gun)iii. Paranoid(Mulder)iv. [Paranoid(Mulder)  Crazy(Mulder)]  Believes(Mulder)v. [FBIagent (Mulder)  Weapon(Gun)]  Has(Mulder, Gun)vi. [Has(Mulder, Gun)  Weapon(Gun)  Believes(Mulder)]  Kills(Mulder, Alien)4. Consider the following English sentences.i. John carries a gun.ii. Anyone who carries a gun is either a criminal or a police-officer.iii. Nobody can be both a police officer and a criminal.iv. There is some criminal that carries a gun.v. John is not a criminal.a. Translate these sentences into first-order logic.b. Convert each sentence to Conjunctive Normal Form.c. Use resolution to prove John is a police officer.CS 348: Introduction to Artificial IntelligenceHomework 3: Logic5. Consider the following two sentencesi. xy (xy)ii. yx (xy)a. Assume the range of values for the variables is the negative integers from -1 to negative infinity, and that “” means “the thing on the left is equal to or greater than the thing on the right.” Given this interpretation, translate sentences i and ii into English.b. Is sentence i true under this interpretation? c. Is sentence ii true under this interpretation? d. Does sentence i entail sentence ii? (Hint: watch out for the “occurs check” mentioned obliquely on page 277.)e. Does sentence ii entail sentence i? f. Using resolution, try to prove that sentence i follows from sentence ii. Do so even if you think sentence ii does not logically entail sentence i. Continue until theproof breaks down (or doesn’t) and you cannot proceed (if the proof does, in fact, break down). Show the unifying substitution for each resolution step. If the proof fails, explain where, how, and why.g. No try to prove sentence ii follows from sentence i, following the same steps you used in f.Hand in a hard-copy of your responses to the questions by the start of class on Monday, May


View Full Document

NU CS 348 - Homework 3 Logic - Homework 3: Homework 3: Logic

Documents in this Course
Load more
Download Homework 3 Logic - Homework 3: Homework 3: Logic
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Homework 3 Logic - Homework 3: Homework 3: Logic and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Homework 3 Logic - Homework 3: Homework 3: Logic 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?