Fun and Games with Graphs
CS200 - Graphs 1
Fun and Games with Graphs CS200 - Graphs 1 Bridges of Konigsberg - - PowerPoint PPT Presentation
Fun and Games with Graphs CS200 - Graphs 1 Bridges of Konigsberg Problem Euler Is it possible to travel across every bridge without crossing any bridge more than once?
CS200 - Graphs 1
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 2
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 3
4
a b c d e a b c d e a b c d e
CS200 - Graphs
G1 G2 G3
5
a b c d e a b c d e a b c d e
CS200 - Graphs
G1 G2 G3
6
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
CS200 - Graphs 7
n A Hamiltonian path/circuit:
n Defined for directed and
CS200 - Graphs 8
9
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
q What is an algorithm for doing this? q What is its complexity?
CS200 - Graphs 10
13,509 cities and towns in the US that have more than 500 residents
TSP: Given a list of cities and their pairwise distances, find a shortest possible tour that visits each city exactly once.
CS200 - Graphs 11
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
12 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 13
n You are designing a chip
http://www.dmoma.org/
CS200 - Graphs 14
n You are designing a chip
n The graph describing the
planar non-planar
http://en.wikipedia.org/wiki/Planar_graph
CS200 - Graphs 15
16 CS200 - Graphs
n You want more than
n We are now designing 3D
http://www.dmoma.org/
CS200 - Graphs 17
n A coloring of a simple graph is the
18 CS200 - Graphs
19
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
20 CS200 - Graphs
n The chromatic number of a planar graph is no
n This theorem was proved by a (theorem
21 CS200 - Graphs
22 CS200 - Graphs
23 CS200 - Graphs