Docsity

CMSC 250 Homework 2: Logic Problems - Prof. Donald R. Perlis, Assignments of Discrete Structures and Graph Theory

Toggle sidebar
bg1
Fall 2009
CMSC 250: Homework 2
Perlis
Due at the start of discussion section Wednesday, September 16, 2009.
Please staple your homeworks together if you use more than one page.
Problem 1. (1 point) Print your name ,
section number , and your TAโ€™s name .
Problem 2. (1 points) When is the first exam? |
Problem 3. (20 points) Construct a complete truth table to help you determine if the following
argument is valid or not. State whether it is valid or not, indicate the entries in the truth
table that led you to your answer, and explain why those entries support your answer.
a.
๐‘ โˆง (๐‘ž โˆจ ~๐‘Ÿ)
~๐‘ โˆจ ๐‘ž
โˆด
๐‘ โˆง ๐‘ž
b.
(๐‘ โˆจ ๐‘ž)โ†’(~๐‘ž โˆจ ~๐‘Ÿ)
๐‘ โ†’ ๐‘ž
~๐‘Ÿ
โˆด
๐‘ โˆง ๐‘ž
Problem 4. (20 points) Prove the conclusion from the premises. Justify each step with an
appropriate rule of inference or logical equivalence.
a.
โˆด
b.
๐‘ โ†’ ๐‘ž
๐‘Ÿ โ†’ ๐‘
๐‘  โ†’ ๐‘Ÿ
~๐‘  โ†’ ๐‘ž
โˆด
๐‘ž
Problem 5. (20 points) Draw circuits corresponding to the following statements:
a. ๐‘ โˆจ ๐‘ž โˆง~(๐‘ โˆง ๐‘ž)
b. ๐‘ โˆง ๐‘ž โˆจ(~๐‘Ÿ โˆจ ๐‘)
Problem 6. (20 points) Write statements that are equivalent to the following circuits:
a.
b.
pf2

Partial preview of the text

Download CMSC 250 Homework 2: Logic Problems - Prof. Donald R. Perlis and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

Fall 2009 CMSC 250: Homework 2 Perlis

Due at the start of discussion section Wednesday, September 16, 2009.

Please staple your homeworks together if you use more than one page.

Problem 1. (1 point) Print your name , section number , and your TAโ€™s name.

Problem 2. (1 points) When is the first exam? |

Problem 3. (20 points) Construct a complete truth table to help you determine if the following argument is valid or not. State whether it is valid or not, indicate the entries in the truth table that led you to your answer, and explain why those entries support your answer.

a. ๐‘ โˆง (๐‘ž โˆจ ~๐‘Ÿ) ~๐‘ โˆจ ๐‘ž โˆด ๐‘ โˆง ๐‘ž

b. (๐‘ โˆจ ๐‘ž) โ†’ (~๐‘ž โˆจ ~๐‘Ÿ) ๐‘ โ†’ ๐‘ž ~๐‘Ÿ โˆด ๐‘ โˆง ๐‘ž

Problem 4. (20 points) Prove the conclusion from the premises. Justify each step with an appropriate rule of inference or logical equivalence.

a. ~๐‘ โˆง (~๐‘ž โˆจ ๐‘Ÿ) ๐‘ โˆจ ๐‘ž โˆด ๐‘Ÿ

b. ๐‘ โ†’ ๐‘ž ๐‘Ÿ โ†’ ๐‘ ๐‘  โ†’ ๐‘Ÿ ~๐‘  โ†’ ๐‘ž โˆด ๐‘ž

Problem 5. (20 points) Draw circuits corresponding to the following statements:

a. ๐‘ โˆจ ๐‘ž โˆง ~(๐‘ โˆง ๐‘ž)

b. ๐‘ โˆง ๐‘ž โˆจ (~๐‘Ÿ โˆจ ๐‘)

Problem 6. (20 points) Write statements that are equivalent to the following circuits:

a. b.

  • Problem 7. (18 points) Consider two 2 bit numbers ๐‘ฅ 2 ๐‘ฅ 1 and ๐‘ฆ 2 ๐‘ฆ 1 , and their sum ๐‘ง 3 ๐‘ง 2 ๐‘ง
    • Write logical statements describing ๐‘ง 1 , ๐‘ง 2 , and ๐‘ง 3 in terms of ๐‘ฅ 1 , ๐‘ฅ 2 , and ๐‘ฆ 1 , ๐‘ฆ