• 沒有找到結果。

Discrete Mathematics

N/A
N/A
Protected

Academic year: 2022

Share "Discrete Mathematics"

Copied!
14
0
0

加載中.... (立即查看全文)

全文

(1)

Discrete Mathematics

WEN-CHING LIEN Department of Mathematics National Cheng Kung University

2008

WEN-CHINGLIEN Discrete Mathematics

(2)

2.1: Basic Connective and Truth Tables

Statement:

Example-

p :Combinatorics is a required course for sophomores.

q :Margaret Mitchell wrote Gone with the Wind.

1 ”¬p”:not p.

2 (a) ”pq”: p and q.(Conjunction) (b) ”pq”: p or q.(Disjunction)

(inclusive or)=”and/or”

”pq”: (exclusive or)=”or,but not both.”

(c) ”pq”:p implies q.(Implication) (If p , then q)

(d) ”pq”: p if and only if q.(Biconditional)

(3)

2.1: Basic Connective and Truth Tables

Statement:

Example-

p :Combinatorics is a required course for sophomores.

q :Margaret Mitchell wrote Gone with the Wind.

1 ”¬p”:not p.

2 (a) ”pq”: p and q.(Conjunction) (b) ”pq”: p or q.(Disjunction)

(inclusive or)=”and/or”

”pq”: (exclusive or)=”or,but not both.”

(c) ”pq”:p implies q.(Implication) (If p , then q)

(d) ”pq”: p if and only if q.(Biconditional)

WEN-CHINGLIEN Discrete Mathematics

(4)

2.1: Basic Connective and Truth Tables

Statement:

Example-

p :Combinatorics is a required course for sophomores.

q :Margaret Mitchell wrote Gone with the Wind.

1 ”¬p”:not p.

2 (a) ”pq”: p and q.(Conjunction) (b) ”pq”: p or q.(Disjunction)

(inclusive or)=”and/or”

”pq”: (exclusive or)=”or,but not both.”

(c) ”pq”:p implies q.(Implication) (If p , then q)

(d) ”pq”: p if and only if q.(Biconditional)

(5)

2.1: Basic Connective and Truth Tables

Statement:

Example-

p :Combinatorics is a required course for sophomores.

q :Margaret Mitchell wrote Gone with the Wind.

1 ”¬p”:not p.

2 (a) ”pq”: p and q.(Conjunction) (b) ”pq”: p or q.(Disjunction)

(inclusive or)=”and/or”

”pq”: (exclusive or)=”or,but not both.”

(c) ”pq”:p implies q.(Implication) (If p , then q)

(d) ”pq”: p if and only if q.(Biconditional)

WEN-CHINGLIEN Discrete Mathematics

(6)

2.1: Basic Connective and Truth Tables

Statement:

Example-

p :Combinatorics is a required course for sophomores.

q :Margaret Mitchell wrote Gone with the Wind.

1 ”¬p”:not p.

2 (a) ”pq”: p and q.(Conjunction) (b) ”pq”: p or q.(Disjunction)

(inclusive or)=”and/or”

”pq”: (exclusive or)=”or,but not both.”

(c) ”pq”:p implies q.(Implication) (If p , then q)

(d) ”pq”: p if and only if q.(Biconditional)

(7)

2.1: Basic Connective and Truth Tables

Statement:

Example-

p :Combinatorics is a required course for sophomores.

q :Margaret Mitchell wrote Gone with the Wind.

1 ”¬p”:not p.

2 (a) ”pq”: p and q.(Conjunction) (b) ”pq”: p or q.(Disjunction)

(inclusive or)=”and/or”

”pq”: (exclusive or)=”or,but not both.”

(c) ”pq”:p implies q.(Implication) (If p , then q)

(d) ”pq”: p if and only if q.(Biconditional)

WEN-CHINGLIEN Discrete Mathematics

(8)

Truth Table (1) Table 2.1

p ¬q

0 1

1 0

(2)Table 2.2

p q pq pq pq pq pq

0 0 0 0 0 1 1

0 1 0 1 1 1 0

1 0 0 1 1 0 0

1 1 1 1 0 1 1

0-false, 1-true Remark:

1. pq is true only when p , q are true.

pq is false only when both are false.

2.pq is false except that p is true and q is false.

(9)

Truth Table (1) Table 2.1

p ¬q

0 1

1 0

(2)Table 2.2

p q pq pq pq pq pq

0 0 0 0 0 1 1

0 1 0 1 1 1 0

1 0 0 1 1 0 0

1 1 1 1 0 1 1

0-false, 1-true Remark:

1. pq is true only when p , q are true.

pq is false only when both are false.

2.pq is false except that p is true and q is false.

WEN-CHINGLIEN Discrete Mathematics

(10)

Truth Table (1) Table 2.1

p ¬q

0 1

1 0

(2)Table 2.2

p q pq pq pq pq pq

0 0 0 0 0 1 1

0 1 0 1 1 1 0

1 0 0 1 1 0 0

1 1 1 1 0 1 1

0-false, 1-true Remark:

1. pq is true only when p , q are true.

pq is false only when both are false.

2.pq is false except that p is true and q is false.

(11)

Definition (2.1)

A compound statement is called a tautology if it is true for all truth value assignments for its component statements.

If a compound statement is false for all such assignments, then it is called a contradiction.

Exercise:Table 2.3

p q r ¬r ¬rp q∧(¬r →p)

0 0 0 1 0 0

0 0 1 0 1 0

0 1 0 1 0 0

0 1 1 0 1 1

1 0 0 1 1 0

1 0 1 0 1 0

1 1 0 1 1 0

1 1 1 0 1 1

WEN-CHINGLIEN Discrete Mathematics

(12)

Definition (2.1)

A compound statement is called a tautology if it is true for all truth value assignments for its component statements.

If a compound statement is false for all such assignments, then it is called a contradiction.

Exercise:Table 2.3

p q r ¬r ¬rp q∧(¬r →p)

0 0 0 1 0 0

0 0 1 0 1 0

0 1 0 1 0 0

0 1 1 0 1 1

1 0 0 1 1 0

1 0 1 0 1 0

1 1 0 1 1 0

1 1 1 0 1 1

(13)

Definition (2.1)

A compound statement is called a tautology if it is true for all truth value assignments for its component statements.

If a compound statement is false for all such assignments, then it is called a contradiction.

Exercise:Table 2.3

p q r ¬r ¬rp q∧(¬r →p)

0 0 0 1 0 0

0 0 1 0 1 0

0 1 0 1 0 0

0 1 1 0 1 1

1 0 0 1 1 0

1 0 1 0 1 0

1 1 0 1 1 0

1 1 1 0 1 1

WEN-CHINGLIEN Discrete Mathematics

(14)

Thank you.

參考文獻

相關文件

Department of Mathematics National Cheng Kung

Department of Mathematics National Cheng Kung

Department of Mathematics National Cheng Kung

W EN -C HING L IEN Department of Mathematics National Cheng Kung

Department of Mathematics National Cheng Kung

Department of Mathematics National Cheng Kung

W EN -C HING L IEN Department of Mathematics National Cheng Kung

Department of Mathematics National Cheng Kung