discrete mathematics - university of colorado...

Post on 28-May-2018

223 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Discrete Mathematics

Jeremy Siek

Spring 2010

Jeremy Siek Discrete Mathematics 1 / 15

Jeremy Siek Discrete Mathematics 2 / 15

Outline of Lecture 1

1. Course Information

2. Overview of Discrete Mathematics

Jeremy Siek Discrete Mathematics 2 / 15

Course Information

I Class web page:http://ecee.colorado.edu/~siek/ecen3703/spring10

I Textbooks:I Discrete Mathematics and its Applications, 6th Edition, by Rosen. (At

the CU bookstore.)I A Tutorial Introduction to Structured Isar Proofs, by Nipkow.

(Available online.)I Isabelle/HOL – A Proof Assistant for Higher-Order Logic, by Nipkow,

Paulson, and Wenzel. (Available online.)I How to Prove It: A Structured Approach, by Daniel J. Velleman.

I Grading:Quizzes 30%Midterm exam 30%Final exam 40%

Jeremy Siek Discrete Mathematics 3 / 15

Course Information: Homework

I There are weekly homework assignments.I The quizzes and exams are based on the homework.I Every students gets a personal tutor named Isabelle. Isabelle is a

logic language, a programming language, and a most importantly,a proof checker.http://www.cl.cam.ac.uk/research/hvg/Isabelle/

I You know your proofs are correct when you convince Isabelle.

Jeremy Siek Discrete Mathematics 4 / 15

Overview of Discrete Mathematics

Discrete

Mathematics

Jeremy Siek Discrete Mathematics 5 / 15

Mathematics

I What is Math anyways?

I Is it the study of numbers?I Mathematics is actually much more broad.

DefinitionMathematics is the study of any truth regarding well-definedconcepts.

Numbers are just one kind of well-defined concept.

Jeremy Siek Discrete Mathematics 6 / 15

Mathematics

I What is Math anyways?I Is it the study of numbers?

I Mathematics is actually much more broad.

DefinitionMathematics is the study of any truth regarding well-definedconcepts.

Numbers are just one kind of well-defined concept.

Jeremy Siek Discrete Mathematics 6 / 15

Mathematics

I What is Math anyways?I Is it the study of numbers?I Mathematics is actually much more broad.

DefinitionMathematics is the study of any truth regarding well-definedconcepts.

Numbers are just one kind of well-defined concept.

Jeremy Siek Discrete Mathematics 6 / 15

Mathematics

I What is Math anyways?I Is it the study of numbers?I Mathematics is actually much more broad.

DefinitionMathematics is the study of any truth regarding well-definedconcepts.

Numbers are just one kind of well-defined concept.

Jeremy Siek Discrete Mathematics 6 / 15

Discrete

DefinitionSomething is discrete if is it composed of distinct, separable parts. (Incontrast to continuous.)

Discrete Continuousintegers real numbersgraphs rational numbers

state machines differential equationsdigital computer radiosquantum physics Newtonian physics

Jeremy Siek Discrete Mathematics 7 / 15

Discrete Mathematics

DefinitionDiscrete Mathematics is the study of any truth regarding discreteentities.

I That’s pretty broad. So what is it really?I Discrete math is the foundation for the rigorous understanding of

computer systems.

Jeremy Siek Discrete Mathematics 8 / 15

A Discrete Problem: Sudoku

7

1

3 9

3

1 8

6

5

6 4

3

7

7

7

7

7

2

2

2

2

2

2

3

3

3

3

1

1

4

4

45

6

6

8

8

8

9

9

9

I What are the rules of Sudoku?

I Spend the next few minutes filling in this board.I Write down the rules of Sudoku on a sheet of paper.I Pass your paper to the person on your right. Are the rules that

you’ve been passed correct? If not, give an example.

Jeremy Siek Discrete Mathematics 9 / 15

A Discrete Problem: Sudoku

7

1

3 9

3

1 8

6

5

6 4

3

7

7

7

7

7

2

2

2

2

2

2

3

3

3

3

1

1

4

4

45

6

6

8

8

8

9

9

9

I What are the rules of Sudoku?I Spend the next few minutes filling in this board.

I Write down the rules of Sudoku on a sheet of paper.I Pass your paper to the person on your right. Are the rules that

you’ve been passed correct? If not, give an example.

Jeremy Siek Discrete Mathematics 9 / 15

A Discrete Problem: Sudoku

7

1

3 9

3

1 8

6

5

6 4

3

7

7

7

7

7

2

2

2

2

2

2

3

3

3

3

1

1

4

4

45

6

6

8

8

8

9

9

9

I What are the rules of Sudoku?I Spend the next few minutes filling in this board.I Write down the rules of Sudoku on a sheet of paper.

I Pass your paper to the person on your right. Are the rules thatyou’ve been passed correct? If not, give an example.

Jeremy Siek Discrete Mathematics 9 / 15

A Discrete Problem: Sudoku

7

1

3 9

3

1 8

6

5

6 4

3

7

7

7

7

7

2

2

2

2

2

2

3

3

3

3

1

1

4

4

45

6

6

8

8

8

9

9

9

I What are the rules of Sudoku?I Spend the next few minutes filling in this board.I Write down the rules of Sudoku on a sheet of paper.I Pass your paper to the person on your right. Are the rules that

you’ve been passed correct? If not, give an example.

Jeremy Siek Discrete Mathematics 9 / 15

Abstracting Sudoku

7

1

3 9

3

1 8

6

5

6 4

3

7

7

7

7

7

2

2

2

2

2

2

3

3

3

3

1

1

4

4

45

6

6

8

8

8

9

9

9

I What aspects of the game of Sudoku don’t really matter?I What could you change such that an expert Sudoku player would

immediately be an expert of the modified game?I What aspects of the game really matter?

Jeremy Siek Discrete Mathematics 10 / 15

Sudoku Solver

7

1

3 9

3

1 8

6

5

6 4

3

7

7

7

7

7

2

2

2

2

2

2

3

3

3

3

1

1

4

4

45

6

6

8

8

8

9

9

9

I Write down a pseudo-code algorithm for solving Soduku.I What data structures did you use?I What kind of algorithm did you use?I Does your algorithm always solve the puzzle?I How long does your algorithm take to finish in the worst case?

Jeremy Siek Discrete Mathematics 11 / 15

Why Study Discrete Mathematics?

I It’s the basic language used to discuss computer systems. Youneed to learn the language if you want to converse with othercomputer professionals.

I It’s a toolbox full of the problem-solving techniques that you willuse over and over in your career.

I But best of all, studying discrete math will enhance your mind,turning it into a high-precision machine!

Jeremy Siek Discrete Mathematics 12 / 15

Uses of Discrete Math are Everywhere

I Circuit designI Computer architectureI Computer networksI Operating systemsI Programming: algorithms and data structuresI Programming languagesI Computer security, encryptionI Error correcting codesI Graphics algorithms, game enginesI . . .

Jeremy Siek Discrete Mathematics 13 / 15

Themes in Discrete Math

Mathematical Reasoning: read, understand, and create precisearguments.

Discrete Structures: model discrete systems and study theirproperties.

Algorithmic Thinking: create algorithms, verify that they work,analyze their time and space requirements.

Combinatorial Analysis: counting (not always as easy as it sounds!)

Jeremy Siek Discrete Mathematics 14 / 15

Advice

I Read in advance.I Do the homework.I Form a study group.I Form an intense love/hate relationship with Isabelle.

Jeremy Siek Discrete Mathematics 15 / 15

top related