discrete lecture 01

80
1 1 CS335- Discrete Mathematics

Upload: raja-hamid

Post on 23-Jun-2015

660 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Discrete lecture 01

11

CS335- Discrete Mathematics

Page 2: Discrete lecture 01

22

Agenda

Course policies

Quick Overview

Page 3: Discrete lecture 01

33

Grading Scheme

Quize + Assignments 12 Midterm 18 Final 30

Total 60

Page 4: Discrete lecture 01

4

Recommended Books

“Discrete Mathematics with Application” by Susana.

K.H. Rosen, Discrete Mathematics and its Applications, (5th Edition), McGraw Hill 1999.

“Discrete Mathematical Structures” by B. Kalman Prentice Hall (1996).

4

Page 5: Discrete lecture 01

55

Grading (cont’d)

Exams/Quizzes can be from the following:

Current lecture Material covered in any previous lecture Reading assignments From any assigned homework.

Page 6: Discrete lecture 01

66

Academic Dishonesty

Any form of cheating on exams/assignments/quizzes is subject to a penalty.

Assignment Copy may lead to zero in all assignments.

Page 7: Discrete lecture 01

7

Introduction

Discrete mathematics describes processes that consist of a sequence of individual steps.

This contrasts with calculus, which describes processes that change in a continuous fashion.

Whereas the ideas of calculus were fundamental to the science and technology of the industrial revolution, the ideas of discrete mathematics underlie the science and technology of the computer age

Page 8: Discrete lecture 01

8

Discrete Continuous – 5a

Page 9: Discrete lecture 01

9

9

What Is Discrete Mathematics?

Definition Discrete Mathematics Discrete Mathematics is a collection of

mathematical topics that examine and use finite or countably infinite mathematical objects.

Page 10: Discrete lecture 01

1010

Quick Overview - Topics

Logic and Sets Make notions you’re already used to from

programming a little more rigorous (operators) Fundamental to all mathematical disciplines Useful for digital circuits, hardware design

Elementary Number Theory Get to rediscover the old reliable number and

find out some surprising facts Very useful in crypto-systems

Page 11: Discrete lecture 01

1111

Quick Overview - Topics

Proofs (especially induction) If you want to debug a program beyond a doubt,

prove that it’s bug-free Proof-theory has recently also been shown to be

useful in discovering bugs in pre-production hardware

Counting and Combinatorics Compute your odds of winning lottery Important for predicting how long certain

computer program will take to finish Useful in designing algorithms

Page 12: Discrete lecture 01

1212

Quick Overview - Topics

Graph Theory Many clever data-structures for organizing information

and making programs highly efficient are based on graph theory

Very useful in describing problems in Databases Operating Systems Networks EVERY CS DISCIPLINE!!!!

Trees Data structures for organizing information and making

programs efficient

Page 13: Discrete lecture 01

CS-708 13

What is Discrete Mathematics – 6

Set of Integers & Real Numbers – 5b

Page 14: Discrete lecture 01

CS-708 14

Logic – 7

Page 15: Discrete lecture 01

CS-708 15

Statement – 8a

Page 16: Discrete lecture 01

CS-708 16

Examples – 8b

Page 17: Discrete lecture 01

CS-708 17

Truth Values of Propositions – 8c

Page 18: Discrete lecture 01

CS-708 18

Examples – 9a

Page 19: Discrete lecture 01

CS-708 19

Statements & Truth Values – 9b

TTFF

Page 20: Discrete lecture 01

CS-708 20

Example – 10b

Page 21: Discrete lecture 01

CS-708 21

Understanding Statements – 11c

Page 22: Discrete lecture 01

CS-708 22

Example – 11b

Page 23: Discrete lecture 01

CS-708 23

Compound Statement – 12a

Page 24: Discrete lecture 01

CS-708 24

Symbolic Representation – 13a

Page 25: Discrete lecture 01

CS-708 25

Logical Connectives – 14a

Page 26: Discrete lecture 01

CS-708 26

Examples – 14b

Page 27: Discrete lecture 01

CS-708 27

Translating from English to Symbols – 15

Page 28: Discrete lecture 01

CS-708 28

Translating from English to Symbols – 16a

Page 29: Discrete lecture 01

CS-708 29

Translating from English to Symbols – 16

Page 30: Discrete lecture 01

CS-708 30

Translating from English to Symbols – 17a

Page 31: Discrete lecture 01

CS-708 31

Translating from English to Symbols – 17b

Page 32: Discrete lecture 01

CS-708 32

Negation – 19

Page 33: Discrete lecture 01

CS-708 33

Truth Table for ~p – 20

Page 34: Discrete lecture 01

CS-708 34

Conjunction – 21

Page 35: Discrete lecture 01

CS-708 35

Truth Table for p ^ q – 22

Page 36: Discrete lecture 01

CS-708 36

Disjunction – 23

Page 37: Discrete lecture 01

CS-708 38

Truth Table

Page 38: Discrete lecture 01

CS-708 39

Truth Table for ~p^q - 2

Page 39: Discrete lecture 01

CS-708 40

Truth Table for ~p^q – 2a

Page 40: Discrete lecture 01

CS-708 41

Truth Table for ~p^q – 2b

Page 41: Discrete lecture 01

CS-708 42

Truth Table for ~p^q – 2c

Page 42: Discrete lecture 01

CS-708 43

~p ^ (q v~ r) – (2 - 3a)

Page 43: Discrete lecture 01

CS-708 44

~p ^ (q v~ r) – 2 - 3b

Page 44: Discrete lecture 01

CS-708 45

~p ^ (q v~ r) – 2 - 3c

Page 45: Discrete lecture 01

CS-708 46

~p ^ (q v~ r) – 2 - 3d

Page 46: Discrete lecture 01

CS-708 47

Truth Table for ~p (p v~ q) – 2 - 3e

v

Page 47: Discrete lecture 01

CS-708 48

Truth Table for (pvq) ^~ (p^q) – 2 - 4a

Page 48: Discrete lecture 01

CS-708 49

Truth Table for (pvq) ^~ (p^q) – 2 - 4c

Page 49: Discrete lecture 01

CS-708 50

Truth Table for (pvq) ^~ (p^q) – 2 - 4e

vv

Page 50: Discrete lecture 01

CS-708 51

Truth Table for (pvq) ^~ (p^q) – 2 -4f

Page 51: Discrete lecture 01

CS-708 52

Exclusive OR – 2 - 5

Page 52: Discrete lecture 01

CS-708 53

Symbols for Exclusive OR – 2 - 5a

Page 53: Discrete lecture 01

CS-708 54

Logical Equivalence – 2 - 6

Page 54: Discrete lecture 01

CS-708 55

Double Negation ~(~p) ≡ p – 2 - 7

Page 55: Discrete lecture 01

CS-708 56

Examples – 2 - 12

Page 56: Discrete lecture 01

CS-708 57

Example – 2 - 17c

Page 57: Discrete lecture 01

CS-708 58

Example – 2 - 17e

Page 58: Discrete lecture 01

CS-708 59

De Morgan’s Laws – 2 - 9

Page 59: Discrete lecture 01

CS-708 60

De Morgan’s Laws – 2 - 9a

Page 60: Discrete lecture 01

CS-708 61

Proof – 2 - 16

Page 61: Discrete lecture 01

CS-708 62

Proof – 2 - 16d

Page 62: Discrete lecture 01

CS-708 63

Application – 2 - 10

Page 63: Discrete lecture 01

CS-708 64

Exercise – 2 - 19

Page 64: Discrete lecture 01

CS-708 65

Tautology – 2 - 21

Page 65: Discrete lecture 01

CS-708 66

Example – 2 - 21a

Page 66: Discrete lecture 01

CS-708 67

Contradiction – 2 - 22

Page 67: Discrete lecture 01

CS-708 68

Example – 2 - 22a

Page 68: Discrete lecture 01

CS-708 69

Exercise – 2 - 23

Page 69: Discrete lecture 01

CS-708 70

Exercise – 2 - 24

Page 70: Discrete lecture 01

CS-708 71

Laws of Logic – 2 - 25

Page 71: Discrete lecture 01

CS-708 72

Laws of Logic – 2 - 25a

Page 72: Discrete lecture 01

CS-708 73

Laws of Logic – 2 - 25b

Page 73: Discrete lecture 01

CS-708 74

Laws of Logic – 2 - 25c

Page 74: Discrete lecture 01

CS-708 75

Laws of Logic – 2 - 25d

Page 75: Discrete lecture 01

CS-708 76

Application - 1

Page 76: Discrete lecture 01

CS-708 77

Example - 2

Page 77: Discrete lecture 01

CS-708 78

Simplifying a Statement – 3

Page 78: Discrete lecture 01

CS-708 79

Distributive Law in Reverse – 4

Page 79: Discrete lecture 01

CS-708 80

Exercise – 5

Page 80: Discrete lecture 01

CS-708 81

Exercise - 5a