Top Banner
Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around
42

Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Dec 24, 2015

Download

Documents

Donna Daniels
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Discrete MathRound, Round, Get Around… I Get AroundMathematics of Getting Around

Page 2: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Routing Problems• Finding routes to deliver goods

• Does a route exist?

• If one does exist, what is the fastest (best) route?

Page 3: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Seven Bridges of Konigsberg

Page 4: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Unicursal Tracings• Pass through all paths without crossing one twice, and never

lift your pencil• Closed- starts and ends at the same point• Open- starts and ends at different points

Page 5: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Graph Theory• Vertices- the dots on the graph (stops or crossroads)

• Edges- lines on the graph (bridges or paths)

• Vertices- A,B,C,D,E,F

• Edges-AB,BC,CD,AD,DE,EB,CD,BB

Page 6: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

• Loop- when an edge starts and ends at the same vertex

• Double Edge (Multiple Edge)- edges that connect to same vertices.

• No direction- AB or BA

Page 7: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

• Vertex Set-

• Edge Set-

• Parallel Edges- (CD,CD)

• Multigraph- allows loops and parallel edges

Page 8: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Friend Connection• Mary is friends with Ken, Bob, Amy, Sally, and Juan• Ken is friends with Mary, Bob, and Amy• Bob is friends with Ken, Mary, and Amy• Amy is friends with Bob, Ken, and Mary• Sally is only friends with Mary• Juan is friends with Mary and Jay• Jay is friends with Juan, Sasha, and Max• Max is friends with Jay, Sasha, Peter, and Ben• Sasha is friends with Jay, Max, and Peter• Peter is friends with Sasha and Max• Ben is only friends with Max

Page 9: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
Page 10: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Isolation• Isolated Vertices- Vertex with no edges

• Pure Isolation- A with only isolated vertices

Page 11: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Adjacent Vertices• When two vertices are connected by the same edge

Page 12: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Adjacent Edges• When two edges share a common vertex

Page 13: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Degree of a Vertex• The number of edges at each vertex. • A loop counts as 2• Written as deg(V)=

Page 14: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

EVEN or ODD• We will distinguish the vertices by the even and odd degrees

ABCDEFGH

Page 15: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Path• A trip that starts and ends at different vertices

Page 16: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Circuit• A trip that starts and ends at the same vertex

Page 17: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

• Length- the number of edges in a path

• Connected Graph- a graph that any vertex can be reached by any path

• Disconnected Graph- a graph that any vertex cannot be reached by a path

• Components- A disconnected graph is made up of multiple components

Page 18: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

• Bridge- An edge that if it is removed turns a connected graph into a disconnected graph

Page 19: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

• Euler Path- A path that travels through every edge once and only once. Starts and ends in different places.

• Euler Circuit- A path that travels through every edge once and only once and ends in the place it starts.

Page 20: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Problems

Page 191-193 #2, 4, 6, 10,

12, 14, 16

Page 21: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Graph Models• Taking a word problem and creating an algebraic expression or

geometric figure.

• There are tickets to go to the movie theater. Each movie ticket costs $12.50. If 18 people are going to see Man of Steel, how much did it cost for everyone to go.

Page 22: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Back to Konigsberg

Page 23: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
Page 24: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Problems

Page 193-194 #18, 19, 20

Page 25: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Euler’s Theorems

Page 26: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Euler’s Circuit Theorem• If a graph is connected and every vertex is even, then there is

at least one Euler Circuit.

Page 27: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Euler’s Path Theorem• If a graph is connected and has exactly two odd vertices, then

it has at least one Euler Path.• The path must start at an odd vertex, and end at the other odd

vertex.• If it has more than 2 odd vertices then it does not have an Euler

Path.

Page 28: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Back to the 7 Bridges• Is there an Euler • Circuit?• No

• Path?• No

• What is the shortest • Circuit?• 9• Path?• 8

Page 29: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Unicursal Tracings• Euler Circuits or Paths?

Page 30: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Euler’s Sum of Degrees Theorem• The sum of the degrees of all the vertices of a graph, equals

twice the number of edges. (This will always be even)

• A graph will always have an even number of odd vertices.

Number of Odd Vertices Conclusion

0 Euler Circuit

2 Euler Path

4,6,8,… Neither

1,3,5,7,… Check again you messed up

Page 31: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Problems

Pg. 194 #24-28

Page 32: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Fleury’s Algorithm• Algorithm-• A set of rules for solving a problem

• Create an algorithm:

Page 33: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Fleury’s Algorithm• “Do Not Burn Your Bridges Behind You”

• The bridges are the last edges you are to cross

• As you move you create more bridges behind you.

Page 34: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Fleury’s Algorithm• Make sure the graph is connected• Is there a Euler Circuit (all even) or a Euler Path (2 odd)• Choose your starting point, if Circuit start anywhere, if Path

start at an odd vertex• Choose paths that are not bridges.

Page 35: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

F C D A C E A B D F

Page 36: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

J K B C L K H J B A J I H G L E C D E G F E

Page 37: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Problems

Pg. 195 #30-34

Page 38: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Eulerizing Graphs• Exhaustive Route- Route that passes through every edge at

least once

• Euler Circuit if all vertices are even• Euler Path is two vertices are odd• A path that will recross the least number of bridges

Page 39: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Eulerizing Graphs• Deadheads- A recrossed edge

• Eulerizing- Adding edges to odd vertices to turn them even so that we can create an Euler Circuit

• Semi-Eulerizing- Leaving two vertices odd so that we can create an Euler Path

Page 40: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Eulerizing

Page 41: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Semi-Eulerizing

Page 42: Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.

Problem

Page 196 #38-42