Vertex Coloring
mardi 3 février 15
Why coloring ?
mardi 3 février 15
Why coloring ?
mardi 3 février 15
Why coloring ?
mardi 3 février 15
Why coloring ?
mardi 3 février 15
Why coloring ?
mardi 3 février 15
Why ones needs coloring ?
mardi 3 février 15
Why ones needs coloring ?
mardi 3 février 15
Why ones needs coloring ?
mardi 3 février 15
Why ones needs coloring ?
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Why ones needs coloring ?
Transmission rule :
mardi 3 février 15
Vertex coloring
•
No two neighboring nodes have the same color•
Use a minimal number of colorsmardi 3 février 15
Vertex-coloring origins ... 1852
•
One can color a map with 4 colors such that no two neighboringcountries have the same color
mardi 3 février 15
Centralized coloring
How many colors ?
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
Available colors:
mardi 3 février 15
Centralized coloring
•
Complexity•
Number of steps ?•
Number of colors ?mardi 3 février 15
Distributed coloring
Available colors:
mardi 3 février 15
Distributed coloring
Available colors:
mardi 3 février 15
Distributed coloring
Available colors:
Pick the first available color !
mardi 3 février 15
Distributed coloring
Available colors:
Pick the first available color !
mardi 3 février 15
Distributed coloring
Available colors:
Pick the first available color !
mardi 3 février 15
Distributed coloring
Available colors:
mardi 3 février 15
Distributed coloring
Available colors:
mardi 3 février 15
Distributed coloring
Available colors:
No two neighboring nodes pick simultaneously a color!
mardi 3 février 15
Distributed coloring
Available colors:
No two neighboring nodes pick simultaneously a color!
mardi 3 février 15
Distributed coloring
Available colors:
No two neighboring nodes pick simultaneously a color!
mardi 3 février 15
Distributed coloring
Available colors:
No two neighboring nodes pick simultaneously a color!
mardi 3 février 15
Distributed coloring
mardi 3 février 15
Distributed coloring
No two neighboring nodes execute ???
mardi 3 février 15
Distributed coloring
No two neighboring nodes execute ???
4 1
3
5
6
8
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
mardi 3 février 15
Trees binary coloring
•
Local or Congest ?•
Complexity•
time•
number of messagesmardi 3 février 15
Trees binary coloring
•
Local or Congest ?•
Complexity•
time•
number of messagesCan I do better ?
mardi 3 février 15
Faster tree coloring
10101101
10101001
10100001
10100011
10100111
mardi 3 février 15
Faster tree coloring
Initially each node has a log(n)-bit id 10101101
10101001
10100001
10100011
10100111
mardi 3 février 15
Faster tree coloring
10101101
10101001
10100001
10100011
10100111 10101101
mardi 3 février 15
Faster tree coloring
Each parent sends to its children its id
10101101
10101001
10100001
10100011
10100111 10101101
mardi 3 février 15
Faster tree coloring
Each parent sends to its children its id
10101101 10101001
10100001
10100011
10100111 10101101
mardi 3 février 15
Faster tree coloring
Each parent sends to its children its id
10101101 10101001
10100001
10100011
10100111 10101101
10101101
mardi 3 février 15
Faster tree coloring
Each parent sends to its children its id
10101101
10101001 10100001
10100011
10100111 10101101
10101001 10101101
mardi 3 février 15
Faster tree coloring
Each parent sends to its children its id
10101101
10101001 10100001
10100011 10100111 10101101
10101001 1010001110101101
mardi 3 février 15
Faster tree coloring
10101101
10101001
10100001
10100011
10100111 10101101
10101001
10101101
10100011
mardi 3 février 15
Faster tree coloring
Each node creates a new id
10101101
10101001
10100001
10100011
10100111 10101101
10101001
10101101
10100011
mardi 3 février 15
Faster tree coloring
Each node creates a new id
10101101
10101001
10100001
10100011
10100111 10101101
10101001
10101101
10100011 100
mardi 3 février 15
Faster tree coloring
Each node creates a new id
10101101
10101001
10100001
10100011
10100111 10101101
10101001
10101101
10100011
100 011
mardi 3 février 15
Faster tree coloring
Each node creates a new id
10101101
10101001
10100001
10100011
10100111 10101101
10101001
10101101
10100011 100
110
011
mardi 3 février 15
Faster tree coloring
Each node creates a new id
10101101
10101001
10100001
10100011
10100111 10101101
10101001
10101101
10100011 100
110
011
101
mardi 3 février 15
Faster tree coloring
Each node creates a new id
10101101
10101001
10100001
10100011
10100111 10101101
10101001
10101101
10100011 100
110
011
101 000
mardi 3 février 15
Faster tree coloring
000
100
110
011
101
mardi 3 février 15
Faster tree coloring
Repeat the process until ids in 0..5 000
100
110
011
101
mardi 3 février 15
Faster tree coloring
000
100
110
011
101 000
mardi 3 février 15
Faster tree coloring
Each parent sends to its children its id
000
100
110
011
101 000
mardi 3 février 15
Faster tree coloring
Each parent sends to its children its id
000100
110
011
101 000
mardi 3 février 15
Faster tree coloring
Each parent sends to its children its id
000100
110
011
101 000
000
mardi 3 février 15
Faster tree coloring
Each parent sends to its children its id
000
100110
011
101 000
100 000
mardi 3 février 15
Faster tree coloring
Each parent sends to its children its id
000
100110
011 101 000
100 011000
mardi 3 février 15
Faster tree coloring
000
100
110
011
101 000
100
000
011
mardi 3 février 15
Faster tree coloring
Each node creates a new id
000
100
110
011
101 000
100
000
011
mardi 3 février 15
Faster tree coloring
Each node creates a new id
000
100
110
011
101 000
100
000
011 101
mardi 3 février 15
Faster tree coloring
Each node creates a new id
000
100
110
011
101 000
100
000
011 101
011
mardi 3 février 15
Faster tree coloring
Each node creates a new id
000
100
110
011
101 000
100
000
011 101
011
001
mardi 3 février 15
Faster tree coloring
Each node creates a new id
000
100
110
011
101 000
100
000
011 101
011
001
010
mardi 3 février 15
Faster tree coloring
000
101
011
001
010
mardi 3 février 15
Faster tree coloring
Repeat the process until ids in 0..5 000
101
011
001
010
mardi 3 février 15
Faster tree coloring
000
101
011
001
010
mardi 3 février 15
Faster tree coloring
Reduce the ids from 6 to 3 ! 000
101
011
001
010
mardi 3 février 15
Faster tree coloring
000
101
011
001
010 000
mardi 3 février 15
Faster tree coloring
Shift-down 000
101
011
001
010 000
mardi 3 février 15
Faster tree coloring
Shift-down
000
101 001
000
mardi 3 février 15
Faster tree coloring
Shift-down
000
101 001
000 001
mardi 3 février 15
Faster tree coloring
001
000
101
000
001
mardi 3 février 15
Faster tree coloring
If id >2 change id to first free in 0..2!
001
000
101
000
001
mardi 3 février 15
Faster tree coloring
If id >2 change id to first free in 0..2!
001
000
101
000
001
mardi 3 février 15
Faster tree coloring
If id >2 change id to first free in 0..2!
001
000
101
000
001 001
mardi 3 février 15
Faster tree coloring
•
3 colors•
Complexity : O(log*(n)) exercice TD !!!!log*(n)=min{i, log(i)(n)≤2}
log(1)(n)=log(n)
mardi 3 février 15