Professional Documents
Culture Documents
algorithm
MCM Algorithm
Construct a series of d+1 vectors, f(m), m=0, 1, , d, which are each of
dimension d1.
An arbitrary reference node s is chosen and f(0) is formed by setting
f(0)(s)=0 and remaining entries of f(0) to .
The remaining vectors f(m), m=0, 1, , d are recursively computed
according to:
where, I is the set of nodes in Gd such that there exists an edge from node i
to node j.
The iteration bound is given by :
f d i f m i
T min max
d m
i1, 2, 3,...,d m0,1, 2,...,d 1
Example
0
f 0
Step 2
0
f 0
4
f 1 0
Step 3
4
f 1 0
8
f 2 4
0
Step 4
8
f 2 4
0
12
12
f 3 8
4
Final Step
4
0
8
12
f 0 f 1 0 f 2 4 f 3 8
0
4
f 3 i f m i
F i, m
3
f 3 1 f 2 1 12 8
F 1,2
4
3 1
3 2
Max F i, m
m=1
m=2
i=1
-4
-4
-4
-4
i=2
-4
-4
-4
i=3
-4
-4
i1, 2 , 3
f 3 1 f 1 1 12 4
F 1,1
4
3
1
3
m=0
T min max F i, m
f 3 1 f 0 1 12 0
F 1,0
4
30
30
m0,1, 2
MCM
Time complexity is
O d 4 de
Time complexity is
Ode ded
d - number of delays in the DFG (G).
e - number of edges in the DFG (G).
ed - number of edges in the delay
graph (GD).
Example
4k a 3kb
k b 2k c
kc kc
3kc 2ka
ka 3 , kb 4, kc 2
ka 3 and kb 4
Next Class
RE-TIMING
Step -2
0
f 0
i, j f i w' i, j
0
f 1 j
min f 1 i, j
i=1
i=2
i=3
j=1
(0-4)=-4
(0-5)=5
(0+)=
-4
j=2
(0+0)=0
(+)=
(+)=
j=3
(0+)=
(+0)=
(+)=
4
f 1 0
Step -3
4 m
f j min f m1 i w' i, j for i I
1
f 0
f
i, j f i w' i, j
1
f 2 j
min f 2 i, j
i=1
i=2
i=3
j=1
(-4-4)=-8
(0-5)=-5
(-5)=
-8
j=2
(0+0)=0
(0+)=
(0+)=
j=3
(0+)=
(+0)=
(+)=
8
f 2 0