Logic Problems and Solutions from CS 381, February 2005 - Prof. Shunichi Toida, Exams of Discrete Structures and Graph Theory

Solutions to logic problems presented in cs 381 exam, held in february 2005. It includes exercises on propositions, conversion to 'if then' form, contrapositives, negation, and symbolic representation of arguments.

Typology: Exams

Pre 2010

Uploaded on 02/12/2009

koofers-user-j1m
koofers-user-j1m 🇺🇸

8 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS 381 Solutions to Test
February, 2005
1. Which ones of the following sentences are propositions and which ones are
not ? [15]
(a) x=y+ 1
No
(b) Is he happy ?
No
(c) If and only if he is healthy, he is happy.
Yes
(d) Either he is happy or he is not healthy.
Yes
(e) If he is happy, then he is healthy.
Yes
2. Convert the following propositions into ”If then form without changing
their truth value. [15]
(a) Fuel savings follows from good insulation.
If insulation is good, then fuel is saved.
(b) There has been sufficient water only if the plant is healthy.
If there has been sufficient water, then the plant is healthy.
(c) A modification of the program is a necessary condition for the introduc-
tion of errors.
If errors are introduced, then the program has been modified.
3. Find the contrapositive of each of the following propositions: [15]
1
pf3

Partial preview of the text

Download Logic Problems and Solutions from CS 381, February 2005 - Prof. Shunichi Toida and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

CS 381 Solutions to Test

February, 2005

  1. Which ones of the following sentences are propositions and which ones are not? [15]

(a) x = y + 1 No

(b) Is he happy? No

(c) If and only if he is healthy, he is happy. Yes

(d) Either he is happy or he is not healthy. Yes

(e) If he is happy, then he is healthy. Yes

  1. Convert the following propositions into ”If then ” form without changing their truth value. [15]

(a) Fuel savings follows from good insulation. If insulation is good, then fuel is saved.

(b) There has been sufficient water only if the plant is healthy. If there has been sufficient water, then the plant is healthy.

(c) A modification of the program is a necessary condition for the introduc- tion of errors. If errors are introduced, then the program has been modified.

  1. Find the contrapositive of each of the following propositions: [15]

(a) Fuel savings follows from good insulation. If fuel is not saved, then insulation is not good.

(b) There has been sufficient water only if the plant is healthy. If the plant is not healthy, then there has not been sufficient water.

(c) A modification of the program is a necessary condition for the introduc- tion of errors. If the program has not been modified, then errors are not introduced.

  1. Negate each of the propositions given below in English. Give a form other than simply putting ’not’ or ’It is not the case that’ in front or anything similar. [15]

(a) The processor is fast but the printer is slow. The processor is not fast or the printer is not slow.

(b) If the processor is fast, then the printer is slow. The processor is fast and the printer is not slow.

(c) Either the processor is fast and the printer is slow, or the file is damaged. The processor is not fast or the printer is not slow, and the file is not damaged.

  1. Fill in the blanks with the shortest string of characters so that the resultant proposition is valid. [20]

(a) [P → Q] ∧ ¬Q ⇔ [ ¬P ∨ Q] ∧ ¬Q

⇔ [ ¬P ∧ ¬Q ] ∨[Q ∧ ¬Q ]

⇔ [ ¬P ∧ ¬Q] ∨ F

(b) [[P → Q] ∧ [Q → R]] → [P → R]

⇔ [¬ P → Q ∨ ¬ Q → R ] ∨ [P → R]

⇔ [[P ∧ ¬Q ] ∨ [ Q ∧ ¬R]] ∨ [¬P ∨ R ]

(c) [P ∧ Q] → R ⇔ ¬[ P ∧ Q ] ∨ R

⇔ [ ¬P ∨ ¬Q] ∨ R

⇔ ¬P ∨ [¬Q ∨ R]