Docsity

CS 381 Test 1 - Logic Statements - Prof. Shunichi Toida, Exams of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CS 381 Test 1
February 17, 2004
1. Convert the following statements to if then form in English:
(a) For the knight to win the fresh horse is necessary.
If the knight wins, the horse is fresh.
(b) You can have a healthy body only if your diet is healthy.
If you have a healthy body, your diet is healthy.
(c) The knight will win only if his armor is strong.
If the knight wins, his armor is strong.
(d) You can not cash a check which is void. [16]
If a check is void, you can not cash it.
2. Negate the following statements in English. Give a form other than simply
putting ”not” or ”it is not the case that” in front:
(a) If the horse is fresh the knight will win.
The horse is fresh and the knight will not win.
(b) Someone visited every room in this building.
Everyone has not visited some room in the building.
(c) Either the horse is fresh or the armor is strong, and the knight wins.
Neither the horse is fresh nor the armor is strong, or the knight does
not win.
(d) Tax will be reduced only if the economy remains strong. [16]
Tax will be reduced but the economy does not remain strong.
pf3

Partial preview of the text

Download CS 381 Test 1 - Logic Statements - Prof. Shunichi Toida and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

CS 381 Test 1

February 17, 2004

  1. Convert the following statements to if then form in English: (a) For the knight to win the fresh horse is necessary. If the knight wins, the horse is fresh. (b) You can have a healthy body only if your diet is healthy. If you have a healthy body, your diet is healthy. (c) The knight will win only if his armor is strong. If the knight wins, his armor is strong. (d) You can not cash a check which is void. [16] If a check is void, you can not cash it.
  2. Negate the following statements in English. Give a form other than simply putting ”not” or ”it is not the case that” in front: (a) If the horse is fresh the knight will win. The horse is fresh and the knight will not win. (b) Someone visited every room in this building. Everyone has not visited some room in the building. (c) Either the horse is fresh or the armor is strong, and the knight wins. Neither the horse is fresh nor the armor is strong, or the knight does not win. (d) Tax will be reduced only if the economy remains strong. [16] Tax will be reduced but the economy does not remain strong.
  1. Find the converse and contrapositive of the following statement in English: [16] (a) If it snows, I will stay home. Converse: If I stay home, then it snows. Contrapositive: If I don’t stay home, then it does not snow. (b) Either the horse is fresh or the armor is strong only if the knight wins. Converse: If the knight wins, either the horse is fresh or the armor is strong. Contrapositive: If the knight does not win, neither the horse is fresh nor the armor is strong.
  2. Find the dual of (T rue ∨ (P ∧ ¬Q)) ∧ ¬(Q ∨ F alse). [5] (F alse ∧ (P ∨ ¬Q)) ∨ ¬(Q ∧ T rue).

5 (a) Express the argument given below using the symbols suggested for each proposition. [8] (b) Check whether or not the reasoning is correct using inference rules on the propositions in symbolic form. [12] Argument: It is not the case that that if electricity rates go up (R), then usage will go down (U), nor is it true that either new power plants will be built (P) or bills will not be late ( B). Therefore, usage will not go down and bills will be late. (a) ¬(R → U ) ¬(P ∨ B) ——————– ¬U ∧ ¬B Since ¬(R → U ) ⇔ (R ∧ ¬U ), and (R ∧ ¬U ) ⇒ ¬U , ¬U is obtained. Also since ¬(P ∨ B) ⇔ (¬P ∧ ¬B), and (¬P ∧ ¬B) ⇒ ¬B, ¬B is obtained. From ¬U and ¬B, ¬U ∧ ¬B is obtained. Hence the argument is correct.