bounding variance and expectation of longest path lengths in dags jeff edmonds, york university

38
Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University Supratik Chakraborty, IIT Bombay

Upload: jerold

Post on 18-Jan-2016

26 views

Category:

Documents


0 download

DESCRIPTION

Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University Supratik Chakraborty, IIT Bombay. Motivation. Statistical timing analysis of circuits Mean and std deviation of component delays provided by manufacturers - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Bounding Variance and Expectation of Longest Path Lengths in DAGs

Jeff Edmonds, York UniversitySupratik Chakraborty, IIT Bombay

Page 2: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Motivation

Statistical timing analysis of circuits Mean and std deviation of component delays

provided by manufacturers Joint distributions of component delays difficult to

obtain in practice

Page 3: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

The Longest Path Problem Input:

st-DAG G gives job precedence. For each edge i,

xi is the time to complete job i

Output: Time for all jobs to complete in parallel

= length of longest st-path = Maxp i p

xi = X

G

t

x1

x2

s

x3

Easy with Dynamic Programming

Page 4: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

The Longest Path Problem Input:

st-DAG G gives job precedence. For each edge i,

xi is the time to complete job i

Output: Time for all jobs to complete in parallel

= length of longest st-path = Maxp i p

xi = X

G

t

x1

x2

s

x3

Inter-dependent random variables

Understand random variable XG

Page 5: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

The Longest Path Problem Input:

st-DAG G gives job precedence. For each edge i,

xi is the time to complete job i

Output: Time for all jobs to complete in parallel

= length of longest st-path = Maxp i p

xi = X

G

t

x1

x2

s

x3

Exp[Xi] & Var[Xi]

Bound Exp[XG] & Var[XG]

Page 6: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

The Longest Path Problem Input:

t

x1

x2

s

x3

G (x1, x

2, x

3) xG

Exp (2, 2, 4) ?

Var (1, 1, 0) ?

Prob (x1, x

2, x

3) xG

0.5 (1, 1, 4) 4

0.5 (3, 3, 4) 6

Possible distributions :

Prob (x1, x

2, x

3) xG

0.5 (1, 3, 4) 4

0.5 (3, 1, 4) 4

Another possibility :

51

40

XG = Max( x1+x2, x3 )

Page 7: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

The Longest Path Problem Input:

t

x1

x2

s

x3

G (x1, x

2, x

3) xG

Exp (2, 2, 4) ?

Var (1, 1, 0) ?

Upper & Lower bounds

XG = Max( x1+x2, x3 )

Page 8: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Contributions Upper bounds of Exp[X

G] and Var[X

G]

A spring “algorithm” for computing bounds Proof no distributions give higher values (skip) Cake distributions that achieve bounds

Lower bounds of Exp[XG] and Var[X

G]

Continuum of values for Exp[XG] and Var[X

G]

Cake distributions that achieve any Exp[X

G] and Var[X

G] within range

Special results for series-parallel graphs

Page 9: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Series Graphs

If G is a series graph,

XG = ∑i xi

Exp[xG] = ∑i Exp[xi]

0 ≤ Var[xG] ≤ (∑i √Var[xi] )2

t

s

Page 10: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Series Graphs

If G is a parallel graph,

XG = Maxi xi

Maxi Exp[xi] ≤ Exp[xG] ≤ ?

0 ≤ Var[xG] ≤ ?

t

s

Page 11: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Representing Random Variables

r0 1

0

5X

X : Two-valued random variable, prob 0.5 for each value

0.5

Page 12: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Representing Random Variables

r0 1

0

5X

0.5

X, Z : Two equivalent independent random variables.

Z

Page 13: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Representing Random Variables

r0 1

0

5X Y

X, Y : Two-valued random variables, prob 0.5 for each value

X, Y have perfect negative correlation

0.5

Exp( Max(x,y) ) = Exp(x) + Exp(y)Var( Max(x,y) ) = 0

Page 14: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Series GraphsIf G is a parallel graph,

XG = Maxi xi

Maxi Exp[xi]

≤ Exp[xG]

≤ Min(

∑i Exp[xi],

Maxi Exp[xi] + √∑i Var[xi] )

0 ≤ Var[xG] ≤ ∑i Var[xi]

t

s

Page 15: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Series Parallel Graphs

Theorem

In a series-parallel graph,

Rules for maximum variance applied recursively to obtain Max Var[X

G].

Not so Max Exp[XG]

Page 16: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University
Page 17: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University
Page 18: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Maximizing Var [ XG ]

There are no distributions xi for which Var[x

i] = v

i and Exp[x

i] = m

i

Var[XG] >

Proof uses lots of calculus.

Theorem

Page 19: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Cakes Maximizing Var [ XG ]

There exists “cake” distributions xi such that Var[x

i] = v

i and Exp[x

i] = m

i

Var[XG] =

Theorem

Page 20: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University
Page 21: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Cake Distribution

t

s

G (x1, x

2, ...) xG

Exp (2, 8, ....) ?

Var (3, 2, ....) ?

Find a cake distribution for each edgewith correct Exp[xi] & Var[xi]

to maximize Var[xG]

Page 22: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Cake Distribution

t

s

G (x1, x

2, ...) xG

Exp (2, 8, ....) ?

Var (3, 2, ....) ?

Exp[xi]

Page 23: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Cake Distribution

t

s

G (x1, x

2, ...) xG

Exp (2, 8, ....) ?

Var (3, 2, ....) ?

Var[xi] = ∑c (ε hc)2

Page 24: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Cake Distribution

t

s

G (x1, x

2, ...) xG

Exp (2, 8, ....) ?

Var (3, 2, ....) ?

Series graphs G: •XG ≈ x1 + x2

• Candle heights add•Want candle heights to be in same location

Page 25: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Cake Distribution

t

s

G (x1, x

2, ...) xG

Exp (2, 8, ....) ?

Var (3, 2, ....) ?

Parallel graphs G: •XG ≈ Max( x1 , x2 )• Candle heights max•Want candle heights to be in different location

Page 26: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Cake Distribution

t

s

A candle locationfor each st-path in G

G (x1, x

2, ...) xG

Exp (2, 8, ....) ?

Var (3, 2, ....) ?

but in the end # candles ≈ # edges

Page 27: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Cake Distribution

t

s

If edge i not in path p,candle for xi at location p

has height 0

G (x1, x

2, ...) xG

Exp (2, 8, ....) ?

Var (3, 2, ....) ?

If candle is selected,then corresponding path p

is the longest path

Page 28: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Cake Distribution

t

s

G (x1, x

2, ...) xG

Exp (2, 8, ....) ?

Var (3, 2, ....) ?

“Springs” give give candle heights.

Page 29: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Cakes Maximizing Var [ XG ]

There exists “cake” distributions xi such that Var[x

i] = v

i and Exp[x

i] = m

i

Var[XG] =

Theorem

Proved

Page 30: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Lower Bound of Var[ XG ]

TheoremVar[xG] ≥ 0

Continuum Results

Theorem

Every Var[XG] in this range achievable.

Page 31: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Lower bound of Exp [ XG ]

Page 32: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

r0 1

XG

Upper bound of Exp [ XG ]

p

For st-path p, p is interval for

which p is the longest path.

p P

p = 1

Page 33: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

r0 1

XG

Upper bound of Exp [ XG ]

p

i

For edge i, i is interval for which i

is in the longest path.

i =

p i

p

Page 34: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

r0 1

Xi

Upper bound of Exp [ XG ]

p

i

If it can edge i contributes all of its

mi =Exp[Xi]

to Exp[XG

]

Page 35: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

r0 1

Xi

Upper bound of Exp [ XG ]

p

i

But if vi = Var[Xi] is too small,

it can only contribute

Page 36: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

r0 1

XG

Upper bound of Exp [ XG ]

p

i

Page 37: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University
Page 38: Bounding Variance and Expectation of Longest Path Lengths in DAGs Jeff Edmonds, York University

Conclusion & Future Work Tight analysis for upper bounds was achieved Cake distributions particularly important for

achieving tight bounds A related question is that of finding tight

bounds of mean and expectation of difference in longest paths to two given nodes in a DAG

Spring algorithm involves solving non-linear constraints iteratively. Can an alternative algorithm be obtained?