Fun and Games with Graphs
CS200 - Graphs 1
Fun and Games with Graphs CS200 - Graphs 1 8 7 7 5 9 S 5 15 - - PowerPoint PPT Presentation
Fun and Games with Graphs CS200 - Graphs 1 8 7 7 5 9 S 5 15 6 8 9 11 Do Dijkstras Shortest Paths Algorithm, Source: S CS200 - Class Overview 2 8 7 7 5 9 S 5 15 6 8 9 11 Do Prims Minimum Spanning Tree Algorithm,
CS200 - Graphs 1
CS200 - Class Overview 2
S 7 9 8 5 7 5 15 6 8 9 11
CS200 - Class Overview 3
S 7 9 8 5 7 5 15 6 8 9 11
http://yeskarthi.wordpress.com/2006/07/31/euler-and-the-bridges-of-konigsberg/
Euler Is it possible to travel across every bridge without crossing any bridge more than once?
CS200 - Graphs 4
n Eulerian path: a path that visits each edge in
n Eulerian circuit: a cycle that visits each edge in
n Is there a simple criterion that allows us to
CS200 - Graphs 5
6
a b c d e a b c d e a b c d e
CS200 - Graphs
G1 G2 G3
7
a b c d e a b c d e a b c d e
CS200 - Graphs
G1 G2 G3
8
a b c d a b d e f c g a b c d
CS200 - Graphs
G1 G2 G3
n Theorem: A connected multigraph has an
n Theorem: A connected multigraph, with at
q Demo:
CS200 - Graphs 9
n A Hamiltonian path/circuit:
n Defined for directed and
CS200 - Graphs 10
n Hamiltonian Circuit: path that begins at vertex
q http://www.mathcove.net/petersen/lessons/get-
CS200 - Graphs 11
12
a b c d e a b c d a b c d e
CS200 - Graphs
n Is there an efficient way to determine whether
q NO! q This problem belongs to a class of problems for
CS200 - Graphs 13
13,509 cities and towns in the US that have more than 500 residents
http://www.tsp.gatech.edu/ TSP: Given a list of cities and their pairwise distances, find a shortest possible tour that visits each city exactly once.
CS200 - Graphs 14
n Examine all possible Hamiltonian circuits and
n With n cities..
q (n-1)! Different Hamiltonian circuits q Ignore the reverse ordered circuits q (n-1)!/2
n With 50 cities n 12,413,915,592,536,072,670,862,289,047,373,3
15 CS200 - Graphs
n How would a approximating algorithm for TSP
71,009 Cities in China Local search: construct a solution and then modify it to improve it
CS200 - Graphs 16
n You are designing a
http://www.dmoma.org/
CS200 - Graphs 17
n You are designing a
n The graph describing the
planar non-planar
http://en.wikipedia.org/wiki/Planar_graph
CS200 - Graphs 18
19 CS200 - Graphs
n You want more than
n We are now designing 3D
http://www.dmoma.org/
CS200 - Graphs 20
n A coloring of a simple graph is the
21 CS200 - Graphs
22
B A C D E F G A B C D G E F
CS200 - Graphs
n The least number of colors needed for a
n The chromatic number of a graph G is
23 CS200 - Graphs
n The chromatic number of a planar graph is no
n This theorem was proved by a (theorem
24 CS200 - Graphs
25 CS200 - Graphs
26 CS200 - Graphs