discrete problems - center for lifelong learning & design...

18
Discrete Problems CSCI 2824 Discrete Structures Prof. Mike Eisenberg TR, 2-3:15 ECCR 1B40

Upload: buikhuong

Post on 23-May-2018

215 views

Category:

Documents


1 download

TRANSCRIPT

Discrete Problems!

CSCI 2824!Discrete Structures!

Prof. Mike Eisenberg!TR, 2-3:15 ECCR 1B40!

Let’s get started…

Mr. Smith and his wife invited four other couples for aparty. When everyone arrived, some of the people in theroom shook hands with some of the others. Of course,nobody shook hands with their spouse and nobody shookhands with the same person twice.

After that, Mr. Smith asked everyone how many times theyshook someone’s hand. He received different answers fromeverybody.

How many times did Mrs. Smith shake someone’s hand?

Administrivia • Class Website:!http://l3d.cs.colorado.edu/~ctg/classes/struct12/Home.html

• Textbook:!Ensley and Crawley, Discrete Mathematics!Polya, How to Solve It!

•Prerequisites:!Mathematical fearlessness; or if not that, a willingness to cultivate

it!

• Assignments/Grading:!5 problem sets (60 %),final exam (25%), problem projects (15%)!

!

Assignments

•  This week: read Ensley and Crawley, 1.1-1.3

•  Next week: 1.4-1.6

What is Discrete Mathematics?

•  It’s not this:

What is Discrete Mathematics?

•  Or this:

What is Discrete Mathematics?

•  Or this:

Converging on a description…

•  Things that aren’t calculus (or more generally, things that don’t involve infinitesimals)

•  A grab-bag of topics: logic, combinatorics, number theory, graph theory, set theory

The Way I’d Like to Think About This Course.

•  How to solve problems:

Polya’s Strategies

•  Guess and check •  Make an orderly list •  Consider special or extreme cases •  Draw a picture •  Solve a simpler problem

Polya’s Strategies

•  Guess and check •  Make an orderly list •  Consider special or extreme cases •  Draw a picture •  Solve a simpler problem •  Write a program! (Not in Polya’s original

list…)

Heuristics

•  Analogy: can you find a related (or simpler) problem and solve that?

•  Working backward: what happens if you start with the goal?

•  Decomposition: Can you rope off and solve a part of the problem?

•  Solving again: Once you’ve solved a problem, suppose you try approaching it an entirely different way?

A Graph Theory Problem

•  Imagine that we have a gathering of six people, some of whom know each other and some of whom do not. Show that there must be a trio of people who are mutual friends or who are mutually unknown to each other.

A Counting Problem

•  Suppose we have an N-bit word (a word consisting of N elements, each “0” or “1”). How many distinct such words are there?

•  How many distinct N-bit words are there which do not have two consecutive 0’s?

A Number Problem

•  Lockers numbered 1 to 100 stand in a row at the school gym. When the first student arrives, she opens all the lockers. The second student then goes through and recloses all the even-numbered lockers; the third student changes the state of every locker whose number is a multiple of 3. This continues until 100 students have passed through. Which lockers are now open? –  From P. Winkler, Mathematical Puzzles

Playing

There are three Styrofoam cups on the table. Imagine thatyou have eleven coins, and your job is to place all the coins in thecups so that there is an odd number of coins inside each cup.

No great difficulty doing this: you could put 7 coins, 3, and 1 in thethree cups, respectively.

Now, suppose you have ten coins. Can you place all the coins in thecups so that each cup contains an odd number of coins?

-- based on Gardner, "Aha! Insight"

Let’s Go to the Syllabus…