Introduction To Graph-Theoryv2
Introduction To Graph-Theoryv2
INTRODUCTION TO GRAPH-
THEORY
AND APPLICATIONS
Irith Hartman
Motivation
2
v3
Drawing e2
v4
e3
e4 e5
v5
v2
Incidence matrix
e1 e6
v1
e1 e2 e3 e4 e5 e6
v1 1 0 0 0 0 2
Degree of a vertex,
v2 1 1 0 1 0 0
Regular graph
v3 0 1 1 0 1 0
v4 0 0 0 0 0 0 Hand shaking lemma
v5 0 0 1 1 1 0
Presentations of graphs
5
e2 v3
v4
Adjacency matrix e3
v1 v2 v3 v4 v5 e4 e5
v5
v2
v1 2 1 0 0 0
e1 e6
v2 1 0 1 0 1 v1
v3 0 1 0 0 2
v4 0 0 0 0 0
v5 0 1 2 0 0
Directed Graphs
6
e2 v3
v4
Adjacency matrix e3
v1 v2 v3 v4 v5 e4 e5
v5
v2
v1 1 0 0 0 0
e1 e6
v2 1 0 1 0 0 v1
v3 0 0 0 0 1
v4 0 0 0 0 0
v5 0 1 1 0 0
Weighted Graphs
7
2 v3
v4
Adjacency matrix 2
5
v1 v2 v3 v4 v5 3 v5
v2
v1 3 0 0 0 0
1 3
v2 1 0 2 0 0 v1
v3 0 0 0 0 2
v4 0 0 0 0 0
v5 0 3 3 0 0
Graphs as models
8
Personnel
assignment
problems. (assigning
people to jobs,
arranging
weddings, finding
appropriate
roommates, etc.)
Social networks.
Graphs as models
10
women men
w1 m1
w2 m2
w3 m3
w4 m4
w5 m5
women men
w1 m1
w2 m2
w3 m3
w4 m4
w5 m5
workers machines
w1 1 m1
3
1
w2 2 m2
1.5
2
w3 2 m3
1.7 4
w4 m4
3
2
w5 m5
women men
w1 1 m1
1
1 Does there exist a
w2 2 m2 stable marriage?
1.5
2
w3 2 m3
1.7 4
w4 m4
3
2
w5 m5
m teachers, n classes.
T1 C1
Teacher i is required to teach
class j for Pij periods. T2 C2
In a given period a teacher can
be in at most 1 class, and a class C3
can have at most 1 teacher.
Design a timetable with
minimum no. of periods.
Cn
Tractable!
Tm
Timetabling problems
18
m teachers, n classes.
T1 C1
Teacher i is required to teach
class j for Pij periods. T2 C2
In a given period a teacher can
be in at most 1 class, and a class C3
can have at most 1 teacher.
Design a timetable with
minimum no. of periods.
Cn
Tractable!
Properly color the edges of G Tm
with as few colors as possible.
Edge coloring of graphs
19
Delhi
Intractable!
Mumbai Hyderabad
Bangalore Chennai
Madurai
V- jobs J1,J2,…,Jn
E- edge (i,j) has cost Ci,j - the time required for job
Jj to be performed immediately after job Ji
C1,2 J2
J1
C1,3 C2,3
J3
Vehicle Routing
28
.
Orient the edges so that
the resultant graph is
strongly connected
Traffic network design problem
36
.
Orient the edges so that
the resultant graph is
strongly connected
Is it strongly connected?
Traffic network design problem
37
.
Orient the edges so that
the resultant graph is
strongly connected
Now it is!
Facility location (A problem in OR)
38
V- a set of transmitters
E – interference
Channel assignment – assign colors
(channels) to the vertices such that
adjacent vertices (transmitters) are
assigned different colors.
Back to graphs…
42
2
3 3
1 3 2
2
1
2 1
Rigidity of structures
44
Not rigid
Rigid
Rigidity of structures
45
Not rigid
Rigid ?
Rigidity of structures
46
Yes!
Rigid ?
Rigidity of structures- graph model
47
r1 c1
r2 c2
r3
c3
Atom – vertex
Bond – edge
H H H
E.g. C3H7OH
Enumerating all
H C C C O H
isomers of a chemical
compound.
Determining if two H H H
H
O N H H
O N C H
H
H C C C H
H C N
H
H N N
H C N O
H C3H7N2O2 H H O
57
(slides from F. Roberts talk –DIMACS)
More complex models: SI,
measles
SEI, SEIR, etc.
S = susceptible, E = exposed,
I = infected, R = recovered
(or removed)
SARS
Threshold Processes
(slides from F. Roberts talk –DIMACS)
58
t=0 t=1
Irreversible 2-Threshold Process
(slides by F. Roberts DIMACS)
60
t=1 t=2
Irreversible 3-Threshold Process
(slides by F. Roberts DIMACS)
61
g
f
a
e b
d c
t=0
Irreversible 3-Threshold Process
(slides by F. Roberts DIMACS)
62
g g
f f
a a
b b
d c c
d
t=0 t=1
Irreversible 3-Threshold Process
(slides by F. Roberts DIMACS)
63 g
g
f f
a a
e b
e b
d c d c
t=1 t=2
Complications to Add to Model
(slides by F. Roberts DIMACS)
64
a b c a c e d f b e a f
A B C D
modules
VLSI application – one sided channel
72
routing
a b c d c e d f b e a f
A B C D
a b c d c e d f b e a f
A B C D
a b c d c e d f b e a f
A B C D
Independent intervals
Overlapping intervals
exclude each other.
One sided channel routing – back to
76
graphs
L R 1
2
1
3
2 5 4
5 • Best possible??
One sided channel routing – back to
79
graphs
L R 1
2
1
3
2 5 4
3 2
5
One sided channel routing –
83
related unsolved problems
Solve the one-sided channel problem with multi-
point net.
Assume the number of available tracks is constant.
Assume “dog-legs” are allowed.
Free route to Las Vegas Problem (D.E.
84
Knuth)
Given a finite, strongly connected network D of one-
way roads between cities, and a designated city
called Las Vegas, is it possible to erect toll booths on
these roads to satisfy the following conditions:
1. It is impossible to drive indefinitely without paying a
toll (There is no toll-free cycle)
2. It is possible to start on any road and return to your
starting point, paying only one toll (every rd is part
of a one-toll cycle)
3. There is a toll-free route from every city to Las-
Vegas
Example
85
Los Gatos
Los Angeles
Las Vegas
Las Cruces
Toll
Network flows
86
Definition: Boxicity…