Fun and Games with Graphs
1
Fun and Games with Graphs 1 Bridges of Konigsberg Problem Euler - - PowerPoint PPT Presentation
Fun and Games with Graphs 1 Bridges of Konigsberg Problem Euler Is it possible to travel across every bridge without crossing any bridge more than once? http://yeskarthi.wordpress.com/2006/07/31/euler-and-the-bridges-of-konigsberg/ 2
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?
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
3
4
a b c d e a b c d e a b c d e G1 G2 G3
5
a b c d e a b c d e a b c d e G1 G2 G3
6
a b c d a b d e f c g a b c d G1 G2 G3
n Theorem: A connected multigraph has an
n Theorem: A connected multigraph with at
7
n A Hamiltonian path/circuit:
n Defined for directed and
8
9
a b c d e a b c d a b c d e
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?
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.
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
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
13
n You are designing a chip
http://www.dmoma.org/
14
n You are designing a chip
n The graph describing the
planar non-planar
http://en.wikipedia.org/wiki/Planar_graph
15
16
n You want more than
n We are now designing 3D
http://www.dmoma.org/
17
n A coloring of a simple graph is the
18
19
B A C D E F G A B C D G E F
n The least number of colors needed for a
n The chromatic number of a graph G is
20
n The chromatic number of a planar graph is no
n This theorem was proved by a (theorem
21
22
23