Homework 4 | Artificial Intelligence 2006 | CPSC 625, Assignments of Computer Science

Material Type: Assignment; Class: ARTIFICIAL INTELLIGNCE; Subject: COMPUTER SCIENCE; University: Texas A&M University; Term: Unknown 1989;

Typology: Assignments

Pre 2010

Uploaded on 02/10/2009

koofers-user-92aw7t0v5g
koofers-user-92aw7t0v5g 🇺🇸

9 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CPSC 625 Homework 4
due: Monday, October 16, 2006
1. Determine whether the following sets of propositional formulas are valid, satisfiable (but
not valid), or unsatisfiable by giving a truth table for each. Be sure to label each table with
your conclusion (valid, etc.), and indicate which truth assignments are satisfying.
a. {P(QP)}
b. {(P(QR)) ((PQ)(PR))}
c. {(P(PQ)) Q}
d. {(P(PQ)) ¬Q}
e. {((MX) ¬X) ¬M}
f. {AC, B C, A B , ¬C}
g. {PQ, Q R, P Q, ¬Q ¬R}
h. {(ABC),¬(AB),¬(AC),¬(BC)}
2. Derive a proof of the proposition Afrom the following set of sentences by rules of
inference. Recall that a proof contains a sequence of derivations labelled with the indexes of
the sentences they were derived from, along with an indication of the inference rule used.
{DEA, F CD, ¬(FCB), C BE}
3. You are the proprietor of Sammy’s Sport Shop. You have just received a shipment of three
boxes filled with tennis balls. One box contains only yellow tennis balls, one box contains
only white tennis balls, and one contains both yellow and white tennis balls. You would
like to stock the tennis balls in appropriate places on your shelves. Unfortunately, the boxes
have been labelled incorrectly; the manufacturer tells you that you have exactly one box of
each, but that each box is definitely labelled wrong.
incorrect: white yellow both
observations: &%
'$ &%
'$ &%
'$
yellow white yellow
Given the initial (incorrect) labelling of the boxes above, and the three observations, use
Propositional Logic to derive the correct labelling of the middle box. Begin by writing down
a knowledge base you will need (such as what observing a white ball drawn from box 2
1
pf2

Partial preview of the text

Download Homework 4 | Artificial Intelligence 2006 | CPSC 625 and more Assignments Computer Science in PDF only on Docsity!

CPSC 625 – Homework 4

due: Monday, October 16, 2006

  1. Determine whether the following sets of propositional formulas are valid, satisfiable (but not valid), or unsatisfiable by giving a truth table for each. Be sure to label each table with your conclusion (valid, etc.), and indicate which truth assignments are satisfying.

a. {P → (Q → P )} b. {(P → (Q → R)) → ((P → Q) → (P → R))} c. {(P ∧ (P → Q)) → Q} d. {(P ∧ (P → Q)) → ¬Q} e. {((M → X) ∧ ¬X) → ¬M} f. {A → C, B → C, A ∨ B, ¬C} g. {P → Q, Q → R, P ∨ Q, ¬Q ∨ ¬R} h. {(A ⊕ B ⊕ C), ¬(A ⊕ B), ¬(A ⊕ C), ¬(B ⊕ C)}

  1. Derive a proof of the proposition A from the following set of sentences by rules of inference. Recall that a proof contains a sequence of derivations labelled with the indexes of the sentences they were derived from, along with an indication of the inference rule used.

{D ∧ E → A, F ∧ C → D, ¬(F ∧ C → B), C ∨ B → E}

  1. You are the proprietor of Sammy’s Sport Shop. You have just received a shipment of three boxes filled with tennis balls. One box contains only yellow tennis balls, one box contains only white tennis balls, and one contains both yellow and white tennis balls. You would like to stock the tennis balls in appropriate places on your shelves. Unfortunately, the boxes have been labelled incorrectly; the manufacturer tells you that you have exactly one box of each, but that each box is definitely labelled wrong.

incorrect: (^) white yellow (^) both

observations: &%

'$

&%

'$

&%

'$

yellow white yellow

Given the initial (incorrect) labelling of the boxes above, and the three observations, use Propositional Logic to derive the correct labelling of the middle box. Begin by writing down a knowledge base you will need (such as what observing a white ball drawn from box 2

implies, that at most one box can contain yellow balls, etc.), along with the initial facts. Use propositional symbols in the following form: O1Y means a yellow ball was drawn (observed) from box 1, L1W means box 1 was initially labelled white, and C1B means box 1 actually contains both types of tennis balls. a) Use rules of inference to prove that box 2 contains white tennis balls (i.e. generate the sentence C2W). b) Show that box 2 must contain white balls via a resolution refutation proof (may require converting some sentences to CNF).