1. Trang chủ
  2. » Cao đẳng - Đại học

Chapter 1 Logics Discrete Mathematics I on 13 March 2012

25 3,8K 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 25
Dung lượng 227,92 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Applications in Computer ScienceDesign of computer circuits • Construction of computer programs • Verification of the correctness of programs • Constructing proofs automatically • Artificial intelligence

Trang 1

Tran Vinh Tan

Contents Propositional Logic

Chapter 1

Logics

Discrete Mathematics I on 13 March 2012

Tran Vinh Tan

Trang 2

Tran Vinh Tan

Contents Propositional LogicContents

1 Propositional Logic

Trang 3

Tran Vinh Tan

Contents Propositional Logic

Logic

Definition (Averroes)

Definition (Penguin Encyclopedia)

Definition (Discrete Mathematics - Rosen)

Rules of logic are used to distinguish between valid and invalid

mathematical arguments

Trang 4

Tran Vinh Tan

Contents Propositional Logic

Applications in Computer Science

• Artificial intelligence

Trang 5

Tran Vinh Tan

Contents Propositional Logic

Propositional Logic

Definition

but not both

Examples

Trang 6

Tran Vinh Tan

Contents Propositional Logic

Examples

Examples (Which of these are propositions?)

Trang 7

Tran Vinh Tan

Contents Propositional LogicNotations

• Propositions are denoted byp, q,

• Thetruth value(”chân trị”) istrue(T) orfalse(F)

Trang 8

Tran Vinh Tan

Contents Propositional Logic

Trang 9

Tran Vinh Tan

Contents Propositional Logic

Trang 10

Tran Vinh Tan

Contents Propositional Logic

Operators

Exclusive OR- Tuyển loại : p ⊕ q

“p or q (but not both)”

Trang 11

Tran Vinh Tan

Contents Propositional Logic

More Expressions for Implication p → q

Trang 12

Tran Vinh Tan

Contents Propositional LogicConditional Statements From p → q

p → q

Trang 13

Tran Vinh Tan

Contents Propositional Logic

Exercise

conditional statement

“If he plays online games too much, his girlfriend leaves him.”

games too much

does not play online games too much

Trang 14

Tran Vinh Tan

Contents Propositional Logic

• “p isnecessary and sufficientfor q”

• “if p then q, andconversely”

Trang 15

Tran Vinh Tan

Contents Propositional Logic

Translating Natural Sentences

Exercise

Trang 16

Tran Vinh Tan

Contents Propositional LogicTranslating Natural Sentences

Exercise

He will not run the red light if he sees the police unless he is too

risky

Trang 17

Tran Vinh Tan

Contents Propositional Logic

Construct Truth Table

Trang 18

Tran Vinh Tan

Contents Propositional Logic

• type “dai hoc bach khoa” in Google

• means “daiANDhocANDbachANDkhoa”

Trang 19

Tran Vinh Tan

Contents Propositional Logic

Applications (cont.)

• Logic puzzles

• There are two kinds of inhabitants on an island,knights, who

always tell the truth, and their opposites,knaves, who always

lie You encounter two people A and B What are A and B if

A says“ B is a knight” and B says”The two of us are

opposite types”?

• Bit operations

• 101010011is a bit string of length nine

Trang 20

Tran Vinh Tan

Contents Propositional Logic

Tautology and Contradiction

Trang 21

Tran Vinh Tan

Contents Propositional Logic

Trang 22

Tran Vinh Tan

Contents Propositional Logic

Trang 23

Tran Vinh Tan

Contents Propositional Logic

Trang 24

Tran Vinh Tan

Contents Propositional Logic

Trang 25

Tran Vinh Tan

Contents Propositional Logic

Constructing New Logical Equivalences

Example

developing a series of logical equivalences

Solution

¬(p ∨ (¬p ∧ q)) ≡ ¬p ∧ ¬(¬p ∧ q) by the second De Morgan law

≡ ¬p ∧ [¬(¬p) ∨ ¬q] by the first De Morgan law

≡ ¬p ∧ (p ∨ ¬q) by the double negation law

≡ (¬p ∧ p) ∨ (¬p ∧ ¬q) by the second distributive law

≡ F ∨ (¬p ∧ ¬q) because ¬p ∧ p ≡ F

≡ ¬p ∧ ¬q by the identity law for F

Ngày đăng: 31/05/2016, 01:24

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w