Docsity

Homework 1 Solution - Discrete Structures | CMSC 250, Assignments of Discrete Structures and Graph Theory

Toggle sidebar
bg1
Fall 2009
CMSC 250: Homework 1
Perlis
Due at the start of discussion section Wednesday, September 9, 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. (2 points) When is the first exam? |
Problem 3. (2 points) Join the class listserv. A link to the class listserv can be found at the
bottom of the class page. Check here to indicate that you have done this . We will
check!
Problem 4. (10 points) Rewrite the following statements as symbolic forms:
a. The block is neither a cube nor a tetrahedron.
๐‘=๐‘กโ„Ž๐‘’ ๐‘๐‘™๐‘œ๐‘๐‘˜ ๐‘–๐‘  ๐‘Ž ๐‘๐‘ข๐‘๐‘’
๐‘ž=๐‘กโ„Ž๐‘’ ๐‘๐‘™๐‘œ๐‘๐‘˜ ๐‘–๐‘  ๐‘Ž ๐‘ก๐‘’๐‘ก๐‘Ÿ๐‘Žโ„Ž๐‘’๐‘‘๐‘Ÿ๐‘œ๐‘›
~๐‘ โˆง~๐‘ž
b. If the button is pressed, but the computer is not plugged in, then nothing will
happen.
๐‘=๐‘กโ„Ž๐‘’ ๐‘๐‘ข๐‘ก๐‘ก๐‘œ๐‘› ๐‘–๐‘  ๐‘๐‘Ÿ๐‘’๐‘ ๐‘ ๐‘’๐‘‘
๐‘ž=๐‘กโ„Ž๐‘’ ๐‘๐‘œ๐‘š๐‘๐‘ข๐‘ก๐‘’๐‘Ÿ ๐‘–๐‘  ๐‘๐‘™๐‘ข๐‘”๐‘”๐‘’๐‘‘ ๐‘–
๐‘Ÿ=๐‘›๐‘œ๐‘กโ„Ž๐‘–๐‘›๐‘” ๐‘ค๐‘–๐‘™๐‘™ โ„Ž๐‘Ž๐‘๐‘๐‘’๐‘›
๐‘ โˆง ~๐‘ž โ†’ ๐‘Ÿ
Problem 5. (20 points) Write a truth table for:
a. ๐‘ โˆจ ~๐‘ž
๐‘
๐‘ž
๐‘ โˆจ~๐‘ž
F
F
T
F
T
F
T
F
T
T
T
T
pf3

Partial preview of the text

Download Homework 1 Solution - Discrete Structures | CMSC 250 and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

Fall 2009 CMSC 250: Homework 1 Perlis

Due at the start of discussion section Wednesday, September 9, 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. (2 points) When is the first exam? |

Problem 3. (2 points) Join the class listserv. A link to the class listserv can be found at the bottom of the class page. Check here to indicate that you have done this. We will check!

Problem 4. (10 points) Rewrite the following statements as symbolic forms:

a. The block is neither a cube nor a tetrahedron. ๐‘ = ๐‘กโ„Ž๐‘’ ๐‘๐‘™๐‘œ๐‘๐‘˜ ๐‘–๐‘  ๐‘Ž ๐‘๐‘ข๐‘๐‘’ ๐‘ž = ๐‘กโ„Ž๐‘’ ๐‘๐‘™๐‘œ๐‘๐‘˜ ๐‘–๐‘  ๐‘Ž ๐‘ก๐‘’๐‘ก๐‘Ÿ๐‘Žโ„Ž๐‘’๐‘‘๐‘Ÿ๐‘œ๐‘›

~๐‘ โˆง ~๐‘ž

b. If the button is pressed, but the computer is not plugged in, then nothing will happen. ๐‘ = ๐‘กโ„Ž๐‘’ ๐‘๐‘ข๐‘ก๐‘ก๐‘œ๐‘› ๐‘–๐‘  ๐‘๐‘Ÿ๐‘’๐‘ ๐‘ ๐‘’๐‘‘ ๐‘ž = ๐‘กโ„Ž๐‘’ ๐‘๐‘œ๐‘š๐‘๐‘ข๐‘ก๐‘’๐‘Ÿ ๐‘–๐‘  ๐‘๐‘™๐‘ข๐‘”๐‘”๐‘’๐‘‘ ๐‘– ๐‘Ÿ = ๐‘›๐‘œ๐‘กโ„Ž๐‘–๐‘›๐‘” ๐‘ค๐‘–๐‘™๐‘™ โ„Ž๐‘Ž๐‘๐‘๐‘’๐‘›

๐‘ โˆง ~๐‘ž โ†’ ๐‘Ÿ

Problem 5. (20 points) Write a truth table for:

a. ๐‘ โˆจ ~๐‘ž

๐‘ ๐‘ž ๐‘ โˆจ ~๐‘ž F F T F T F T F T T T T

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

๐‘ ๐‘ž ๐‘Ÿ ๐‘ โˆจ ๐‘ž โˆง ~๐‘ โˆจ ๐‘Ÿ F F F F F F T F F T F T F T T T T F F F T F T T T T F F T T T T

Problem 6. (20 points) Negate the following and then use DeMorganโ€™s Laws to express the result in a simpler form:

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

~((๐‘ โˆง ๐‘ž) โˆจ ~๐‘Ÿ) ~(๐‘ โˆง ๐‘ž) โˆง ๐‘Ÿ DeMorgan's Laws (~๐‘ โˆจ ~๐‘ž) โˆง ๐‘Ÿ DeMorgan's Laws

b. ๐‘ โ†’ (๐‘ž โ†’ ๐‘Ÿ)

~(๐‘ โ†’ ๐‘ž โ†’ ๐‘Ÿ ) ๐‘ โˆง ~ ๐‘ž โ†’ ๐‘Ÿ DeMorgan's Laws ๐‘ โˆง ๐‘ž โˆง ~๐‘Ÿ DeMorgan's Laws

Problem 7. (20 points) ๐‘ โ†“ ๐‘ž, the logical nor of ๐‘ and ๐‘ž, is true if, and only if, both ๐‘ and ๐‘ž are false; ๐‘ โ†“ ๐‘ž โ‰ก ~๐‘ โˆง ~๐‘ž. Find an equivalent statement to ๐‘ โˆจ ๐‘ž using only โ†“. Prove they are equivalent. (Hint: Start by showing that ๐‘ โ†“ ๐‘ โ‰ก ~๐‘ )

๐‘ โ†“ ๐‘ž โ†“ (๐‘ โ†“ ๐‘ž) โ‰ก ๐‘ โˆจ ๐‘ž

Proof by truth table: ๐‘ ๐‘ž ๐‘ โˆจ ๐‘ž ๐‘ โ†“ ๐‘ž ๐‘ โ†“ ๐‘ž โ†“ (๐‘ โ†“ ๐‘ž) F F F T F F T T F T T F T F T T T T F T

Symbolic proof: ๐‘ โ†“ ๐‘ž โ†“ (๐‘ โ†“ ๐‘ž) ~๐‘ โˆง ~๐‘ž โ†“ ~๐‘ โˆง ~๐‘ž Definition of โ†“ ~ ~๐‘ โˆง ~๐‘ž โˆง ~ ~๐‘ โˆง ~๐‘ž Definition of โ†“ ๐‘ โˆจ ๐‘ž โˆง ๐‘ โˆจ ๐‘ž DeMorgan's ๐‘ โˆจ ๐‘ž Idempotent