+ All Categories
Home > Documents > Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a...

Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a...

Date post: 24-Jul-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
13
1 Welcome to CMSC 250 Discrete Structures Please put laptops away…
Transcript
Page 1: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

1

Welcome to CMSC 250Discrete Structures

Please put laptops away…

Page 2: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

2

Lecture Slide Disclaimer

The lecture slides are not a tutorial. The role of the slides in this course will be:

1. To provide an outline of topics we are covering

2. To allow quick visuals for things that are hard for the instructor to write out by hand

To succeed in this course, you will need to attend every class session and to take notes!

Page 3: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

3

What are “Discrete Structures”

A discrete structure is a collection of elements that are “separated” from one another.

In contrast: The real numbers are continuous.

• Examples of discrete structures

• Examples of continuous structures

• Examples of structures that are neither discrete nor continuous

Page 4: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

4

What Can You Expect in CMSC250?

• Goals1. Learn math topics essential for studying C.S.

2. Learn to understand and write proofs

• Significant work load

• Mathematical rigor

• Challenging homeworks

• Analytical thinking required

• You may surprise yourself…

Page 5: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

5

Course Logistics

• Lecture Tu/Th with me

• Lab M/W with T.A.

• Class webpage (including syllabus)

Page 6: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

6

Unit 1Propositional Logic

Page 7: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

7

LogicWhat is “logic”?

There are zillions of definitions out there. I like this one:

Logic is the study of two things:

1. Principals of reasoning, focusing on the structure of the proposition (not their meaning)

2. Methods and validity of deduction

Why should a computer scientist study this?

Page 8: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

8

Statements (or Propositions)A statement (or “proposition”) is a sentence

that is either true or false (but not both).

• We use variables like “p” or “q” for statements.

• Examples (and counterexamples)

Page 9: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

9

Logical Connectives

Used to join statements together

• Examples

• Rules of Precedence

Conjunction (“and”)

Disjunction (“or”)

Negation (“not”) ~ (or sometimes )

Page 10: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

10

Truth Tables

• What is an “interpretation”

• How many interpretations are possible for a

statement with n unique variables

• What is a “truth table”

• Examples: Truth tables for logical

connectives

Page 11: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

11

Practice Translating…

1. Either I am hungry or I am tired

2. Bob was tall and thin

3. Apples are healthy but fast food is not

4. Neither Jim nor Toby is on fire

5. Either I’m hilarious or you have no sense of humor.

Page 12: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

12

Practice Truth Tables…

• p ^ ~q

• (p ^ ~r) (p ^ r)

• (p ^ q) (~q ~p)

• (p ^ ~r) (q ~r)

Page 13: Welcome to CMSC 250 Discrete Structures · Lecture Slide Disclaimer The lecture slides are not a tutorial. The role of the slides in this course will be: 1. To provide an outline

13

Logical Equivalence

Two statements are logically equivalent if they have identical truth values for every possible interpretation.

• Notation:

p q

• Can we check if two statements are logically equivalent?


Recommended