0% found this document useful (0 votes)
6 views5 pages

Discrete Math Assignment 1 Solutions

The document contains solutions to a Discrete Mathematics assignment, focusing on logical propositions and truth tables. It includes various examples of logical expressions involving elections and examinations, along with their corresponding truth tables. Additionally, it provides statements reformulated in 'If p, then q' format.

Uploaded by

jindmine
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

Discrete Math Assignment 1 Solutions

The document contains solutions to a Discrete Mathematics assignment, focusing on logical propositions and truth tables. It includes various examples of logical expressions involving elections and examinations, along with their corresponding truth tables. Additionally, it provides statements reformulated in 'If p, then q' format.

Uploaded by

jindmine
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Discrete Mathematics — Assignment 1 (Solved)

Q1. Let p = “The election is decided.” ; q = “The votes have been


counted.”
a) ¬p The election is not decided.
b) ¬p ∧ q The election is not decided and the votes have been counted.
c) ¬q ∧ ¬p The votes have not been counted and the election is not decided.
d) p ↔ q The election is decided if and only if the votes have been counted.
e) p ∨ q The election is decided or the votes have been counted (or both).
f) q ∧ p The votes have been counted and the election is decided.
g) ¬q ∨ (¬p ∧ q) (simplified) Equivalent to ¬q ∨ ¬p. English: Either the votes have not been counted or
the election is not decided.
Q2. Let p = 'You have the flu.' ; q = 'You miss the final examination.' ; r
= 'You pass the course.'
a) p ∧ q You have the flu and you miss the final examination.
b) q ∧ ¬r You miss the final examination and you do not pass the course.
c) p ∨ q ∨ r You have the flu, or you miss the final examination, or you pass the course.
d) (p ∧ ¬r) ∨ (q ∧ ¬r) (simplified) Equivalent to (p ∨ q) ∧ ¬r. English: Either you have the flu or you miss
the final exam, and you do not pass the course.
Q3. Construct truth tables for each compound proposition.
Q3 (a) p ∧ (¬q ∨ r)
p q r ¬q ¬q ∨ pr ∧ (¬q ∨ r)

T T T F T T

T T F F F F

T F T T T T

T F F T T T

F T T F T F

F T F F F F

F F T T T F

F F F T T F

Q3 (b) ¬p ∧ (q ∧ r)
p q r ¬p q ∧ ¬p
r ∧ (q ∧ r)

T T T F T F

T T F F F F

T F T F F F

T F F F F F

F T T T T T

F T F T F F

F F T T F F

F F F T F F

Q3 (c) (p ∧ q) ∨ (¬p ∧ r)
p q r p ∧ q ¬p ∧ r ∨ (¬p∧r)
¬p(p∧q)

T T T T F F T

T T F T F F T

T F T F F F F

T F F F F F F

F T T F T T T

F T F F T F F

F F T F T T T

F F F F T F F

Q3 (d) (p ∧ q) ∧ (¬p ∧ r) (This expression is always FALSE)


p q r p ∧ q ¬p ∧ r final

T T T T F F

T T F T F F

T F T F F F

T F F F F F

F T T F T F
p q r p ∧ q ¬p ∧ r final

F T F F F F

F F T F T F

F F F F F F

Q3 (e) ((p ∧ q) ∧ r) ∧ s (Equivalent to p ∧ q ∧ r ∧ s)


p q r s p∧q (p∧q)∧rfinal

T T T T T T T

T T T F T T F

T T F T T F F

T T F F T F F

T F T T F F F

T F T F F F F

T F F T F F F

T F F F F F F

F T T T F F F

F T T F F F F

F T F T F F F

F T F F F F F

F F T T F F F

F F T F F F F

F F F T F F F

F F F F F F F
Q4. Write each statement in form 'If p, then q'.

a) It snows whenever the wind blows from the northeast. If the wind blows from the northeast, then it
snows.
b) The apple trees will bloom if it stays warm for a week. If it stays warm for a week, then the apple
trees will bloom.
c) That the Pistons win the championship implies that they beat the Lakers. If the Pistons win the
championship, then they beat the Lakers.
d) It is necessary to walk 8 miles to get to the top of Long's Peak. If you get to the top of Long's
Peak, then you walked 8 miles.
e) If you drive more than 400 miles, you will need to buy gasoline. If you drive more than 400 miles,
then you will need to buy gasoline.
f) Your guarantee is good only if you bought your CD player less than 90 days ago. If your
guarantee is good, then you bought your CD player less than 90 days ago.
g) Jan will go swimming unless the water is too cold. If the water is not too cold, then Jan will go
swimming.

Notes:
- Q1(g) simplified: ¬q ∨ (¬p ∧ q) ≡ ¬q ∨ ¬p.
- Q2(d) simplified: (p ∧ ¬r) ∨ (q ∧ ¬r) ≡ (p ∨ q) ∧ ¬r.

Common questions

Powered by AI

The logical interpretation of 'either you have the flu or you miss the final exam, and you do not pass the course' is expressed by the proposition (p ∨ q) ∧ ¬r. This indicates that at least one of the conditions (having the flu or missing the exam) must occur, and as a result, failing the course follows necessarily, indicating a logical dependency between conditions and outcome .

The truth table for the proposition (p ∧ q) ∧ (¬p ∧ r) demonstrates a logical impossibility because both 'p' being true (for the p ∧ q component) and 'p' being false (for the ¬p ∧ r component) cannot simultaneously occur. Hence, no matter what truth values are assigned to 'q' and 'r', the proposition remains false, indicating this conjunction forms a contradiction .

In logic, "The Pistons win the championship implies that they beat the Lakers" is expressed as an implication because winning the championship (p) serves as a sufficient condition for beating the Lakers (q). Represented logically as 'if p then q', it implies the truth of p necessitates the truth of q, reflecting a cause-effect relationship .

The equivalence of ((p ∧ q) ∧ r) ∧ s with p ∧ q ∧ r ∧ s demonstrates that deeper nested conjunctions can be flattened into a single longer conjunction without changing the proposition's logic. This enhances the understanding of compound propositions by showing consistency across different levels of complexity and reveals the associative property of conjunctions in logic .

The statement "Jan will go swimming unless the water is too cold" can be logically rephrased as "If the water is not too cold, then Jan will go swimming." This expresses the statement as a conditional, asserting that the negation of the antecedent (water not being too cold) leads to the consequent (Jan swimming), reflecting the nature of 'unless' in logical terms .

The expression (p ∧ ¬r) ∨ (q ∧ ¬r) simplifies to (p ∨ q) ∧ ¬r, providing a structure where either having the flu or missing the exam leads to not passing, simplifying the conditional result. This form highlights distinct paths to the same outcome, clarifying the relationship between different causes leading to a particular condition .

The expression ¬q ∨ (¬p ∧ q) simplifies to ¬q ∨ ¬p. This simplification reveals that logically, for either of the conditions (¬q or ¬p ∧ q) to be true, it simplifies to saying either the votes have not been counted or the election is not decided, which are mutually exclusive in context .

A Venn diagram aids in visualizing logical propositions by representing each simple proposition as a distinct set. The intersection of these sets illustrates conjunctions like 'p ∧ q', whereas disjoint sets may manifest in mutually exclusive propositions like '¬p ∧ r'. For 'p ∧ q' and '¬p ∧ r', the Venn diagram would show non-overlapping areas because p cannot simultaneously be true and false, thus highlighting the impossibility of this combined proposition being true .

The logical proposition 'p ↔ q' denotes a biconditional relationship where the election is decided if and only if the votes have been counted. This suggests that for the election to be concluded, it is a prerequisite that the votes must be counted, and conversely, if the votes are counted, the election is necessarily decided .

The necessity of walking 8 miles to reach the top of Long's Peak can be expressed as the conditional proposition: If you reach the top of Long's Peak, then you walked 8 miles. This rephrases the necessity condition as a logical implication .

You might also like