CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE
Spring 2019
1
CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2019 2 - - PowerPoint PPT Presentation
1 CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2019 2 Announcements Homework 2 is due Thursday, Jan. 31 at 11:59pm. Solutions to Homework 1 will be presented in recitation this week. 3 MATHEMATICAL PROOFS Sections 1.7 1.8
Spring 2019
1
this week.
2
Sections 1.7 – 1.8
3
domain,
show that q must also be true.
4
1.
First try a direct method of proof.
2.
If this does not work, try an indirect method (e.g., try to prove the contrapositive).
1.
First try forward reasoning. Start with the axioms and known theorems and construct a sequence of steps that end in the conclusion. Start with p and prove q, or start with ¬q and prove ¬p.
2.
If this doesn’t work, try backward reasoning. When trying to prove q, find a statement p that we can prove with the property p → q.
5
Proof by Contradiction: (AKA reductio ad absurdum):
¬p → (r ∧ ¬r) for some proposition r.
6
q ≠ 0, where p and q have no common factors other than 1.
integer.
7
and any irrational number is irrational.
8
irrational number is irrational.
9
and any irrational number is irrational.
number is irrational.
irrational number is irrational.
10
11
Give a proof by contradiction for “√2 is irrational”.
12
statement of the form p ↔ q, we show that p → q and q →p are both true.
n2 is odd.”
If n is odd, then n2 is odd. If n2 is odd, then n is odd.
13
this if you can)
14
If a ≥ b, a @ b = a. Otherwise a @ b = b.
(a @b) @ c = a @ (b @ c) *This means the operation @ is associative.
Then one of the following 6 cases must hold.
1.
a ≥ b ≥ c
2.
a ≥ c ≥ b
3.
b ≥ a ≥c
4.
b ≥ c ≥a
5.
c ≥ a ≥ b
6.
c ≥ b ≥ a
15
16
then both x and y are even.
17
both x and y are even.
18
both x and y are even.
19
and x+y are even, then both x and y are even.” We only cover the case where x is odd because the case where y is odd is similar. The phrase without loss of generality (w.l.o.g.) indicates this.
20
that the proof is a direct proof.
which proof method you are using at the beginning of the proof, e.g.,
21
something like… “This is a proof by contraposition. Assume ¬q is true. This implies that ¬p is also true. Therefore, if p is true, then q is true.”
22
Steps from ¬q to ¬p go here For this class, this sentence is optional
cubes of two positive integers in two different ways:
1729 = 103 + 93 = 123 + 1
23
don’t actually find what that c is.
true and derive a contradiction.
24
Theorem: “There exist irrational numbers x and y such that xy is rational.”
25
26