Docsity

Discrete Mathematics Structure - Assignment 1 Problems | CS 173, Assignments of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CS 173 Homework 1 (due 1/24/08 in class) Spring 2008
CS 173: Discrete Mathematical Structures, Spring 2008
Homework 1
Due in class on Thursday, January 24, 2008
Note that problem 6 is an honors problem. It is required for any students
registered for the honors section of the course. Students not in the honors
section may solve the question for a small amount of extra credit.
1. (adapted from section 1.3, problem 12)
Write a truth table for the following statements in propositional logic notation, making the
meaning of your propositional variables clear, and then create a truth table for the sentence.
See problem 12 on page 39 of the text for an example.
(a) Either you do your homework early, or else you stay up late and do not sleep.
(b) This homework is not hard or you like discrete math or you need to study more.
2. Let Abe the set of all CS 173 students, and Bbe the set of all CS 125 students. Let P(x)
be the statement ”xloves to do homework”, Q(x, y)be the statement ”xknows y”, and R(x)
be the statement ”xknows a crazy person”. Write each statements using quantifiers over the
sets Aand Band the predicates P,Qand R.
(a) Every CS 173 student loves to do their homework.
(b) There is a student taking both CS 173 and CS 125 who hates to do their homework.
(c) Every CS 125 student knows a CS 173 student who likes to do their homework.
(d) If every student in CS 125 knows a person in CS 173, then every student in CS 125
knows a crazy person.
3. Rewrite the following propositions as unambiguous English sentences, given the following
prepositions.
•A(x)means ”xlikes West Wing”.
•B(x)means ”xlikes Buffy”.
•C(x)means ”xhas good taste”.
•D(x)means ”xwatches TV”.
For example the statements ∀x[D(x)→A(x)] could be translated to ”Everyone who
watches TV likes West Wing.”
(a) ∀x[A(x)∨B(x)→D(x)]
(b) ∃x[A(x)∧B(x)]
(c) ∀x[B(x)→C(x)]
(d) ∃x[A(x)∨B(x)∧C(x)∧D(x)]
1
pf3

Partial preview of the text

Download Discrete Mathematics Structure - Assignment 1 Problems | CS 173 and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

CS 173: Discrete Mathematical Structures, Spring 2008

Homework 1

Due in class on Thursday, January 24, 2008

Note that problem 6 is an honors problem. It is required for any students

registered for the honors section of the course. Students not in the honors

section may solve the question for a small amount of extra credit.

  1. (adapted from section 1.3, problem 12) Write a truth table for the following statements in propositional logic notation, making the meaning of your propositional variables clear, and then create a truth table for the sentence. See problem 12 on page 39 of the text for an example.

(a) Either you do your homework early, or else you stay up late and do not sleep. (b) This homework is not hard or you like discrete math or you need to study more.

  1. Let A be the set of all CS 173 students, and B be the set of all CS 125 students. Let P (x) be the statement ”x loves to do homework”, Q(x, y) be the statement ”x knows y”, and R(x) be the statement ”x knows a crazy person”. Write each statements using quantifiers over the sets A and B and the predicates P , Q and R.

(a) Every CS 173 student loves to do their homework. (b) There is a student taking both CS 173 and CS 125 who hates to do their homework. (c) Every CS 125 student knows a CS 173 student who likes to do their homework. (d) If every student in CS 125 knows a person in CS 173, then every student in CS 125 knows a crazy person.

  1. Rewrite the following propositions as unambiguous English sentences, given the following prepositions. - A(x) means ”x likes West Wing”. - B(x) means ”x likes Buffy”. - C(x) means ”x has good taste”. - D(x) means ”x watches TV”.

For example the statements ∀x[D(x) → A(x)] could be translated to ”Everyone who watches TV likes West Wing.”

(a) ∀x[A(x) ∨ B(x) → D(x)] (b) ∃x[A(x) ∧ B(x)] (c) ∀x[B(x) → C(x)] (d) ∃x[A(x) ∨ B(x) ∧ C(x) ∧ D(x)]

  1. Write the negation, contrapositive, converse and inverse of the following statements.

(a) If Erin and Kevin are out of town, then CS 173 will have a guest lecturer. (b) You will be late to lecture if you oversleep. (c) If Erin’s daughter is sick this week, then she either brings her to lecture or gets a babysit- ter.

  1. The late 19th century philosopher Charles Peirce (rhymes with ‘hearse,’ not ‘fierce’) wrote about a set of logically dual operators and, in his writings, coined the term ‘Ampheck’ to describe them. The two most common Ampheck operators, the Peirce arrow (written ↓ or ⊥ or ∨ by different people) and the Sheffer stroke (written ↑ or | or ∧ by different people), are defined by the following truth table:

p q p ↑ q p ↓ q T T F F T F T F F T T F F F T T

(a) Express the Sheffer stroke operation p ↑ q as a well-formed formula using only the operations ¬ and ∧. (b) Express the Peirce arrow operation p ↓ q as a well-formed formula using only the opera- tions ↑ and ∨. (c) The set of operators {∧, ∨, ¬} is functionally complete , which means that every logical statement can be expressed using only these three operators. You are given a proposition p ∨ q, where p and q use only ∨, ∧ and ¬. However, you must eliminate all occurrences of ∨ from this proposition. Kevin comes along and gives you p′, a proposition which is logically equivalent to p but does not use ∨. Not to be outdone, Erin then comes along and gives you q′, a proposition which is logically equivalent to q but does not use ∨. Show how to rewrite p ∨ q to remove all occurrences of ∨, making use of p′^ and q′. (This is enough to show that that the smaller set of operators {∧, ¬} is also functionally complete.) (d) Explain why the set of operators {↑} is functionally complete.

  1. Honors problem

(a) Classify the following formulas into logically equivalent groups: i. p ii. p ∨ ¬p iii. p ∧ ¬p iv. (p ∧ q) → p v. (p ∨ q) → p vi. ((p ∨ q) ∧ ¬q) → (p ∧ q) vii. (p ∨ ¬p) → (p ∧ ¬p)