Top Banner
Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙趙趙 ) Department of Computer Scienc e and Information Engineering National Taiwan University, T aiwan E-mail: [email protected] WWW: http://www.csie.ntu.edu.tw/~k mchao
18

Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

Jan 01, 2016

Download

Documents

Bethanie Nelson
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

Minimum Routing Cost Spanning Trees

Kun-Mao Chao (趙坤茂 )Department of Computer Science an

d Information EngineeringNational Taiwan University, Taiwan

E-mail: [email protected]

WWW: http://www.csie.ntu.edu.tw/~kmchao

Page 2: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

2

An MST with large routing cost

2

......

2

2

2

2

2

1

1

11

1

Page 3: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

3

A small routing cost tree with large weight

1

1

....

11 v0

1

1

1

1

v3

v2

v1

vi

v-2

v-1

.... ....

3/)2|(|),(

1),(

0

1

ivvw

vvw

i

ii

Page 4: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

4

Minimum routing cost spanning trees

• Given a graph, find a spanning tree with the minimum all-to-all distance

• NP-hardTvu

vud

vudTC

T

vuT

on and between

path)shortest the(of

distance theis ),( where

),()( Minimize,

Page 5: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

5

Routing cost C(T)=192v1 v2

v3

10

v4 v5

5 3 1

Page 6: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

6

Routing load l(T,e)

)(

)(),()(TEe

eweTlTC

Page 7: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

7

Routing cost C(T)=192v1 v2

v3

10

v4 v5

5 3 1

1921838581012)(

8412)),(,(

8412)),(,(

8412)),(,(

12322)),(,(

52

42

31

21

TC

vvTl

vvTl

vvTl

vvTl

Page 8: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

8

The impact of the topology

v1 vnv2 v3

T2

1 1 1...

T1

v2

v1v3

5

55

...5

5

5vn

21 )1(10)( nTC

3

)1)(1(

)(2)(11

2

nnn

iniTCni

Page 9: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

9

bound on routing load

x n - x

)1(2Minimum21

Maximum

].1,1[in integer an is where

2 2

)(2load Routing

2

2

n

n

nx

xnx

xnx

Page 10: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

10

bound on routing load

>=δn >=δn

)(2load Routing nnn

Why?

Page 11: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

11

Median

• Let r be the median of graph G=(V,E,W), i.e., the vertex with the minimum total distance to all vertices.

• In other words, r minimizes the function

.on and between (distance)

length path -shortest theis ),( where

),()(

Guv

uvd

uvdvf

G

vuG

Page 12: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

12

A 2-approximation

• A shortest-paths tree rooted at the median of a graph is a 2-approximation of an MRCT of the graph.

(Please refer to our discussions in class.

A note on this has been posted in our course website.)

Page 13: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

13

Centroid

r r1 r2

(a) (b)

Page 14: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

14

Some interesting vertices

• Centroid

• Median

• Center

* a tree with positive edge lengths, the median coincides with the centroid.

Page 15: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

15

1/2, 1/3, 1/4-separatorsv1v2 v3v4

v5

v1v2 v3v4

v5

v1v2 v3v4

v5

v1v2 v3v4

v5

(a) (b)

(d)(c)

Page 16: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

16

A δ-separator

<=kn<=kn

<=kn

<=kn

<=kn <=kn

<=kn<=kn

iS

brn(T,S,i)={B1,B2,B3}

B1

B2 B3

VB(T,S,i)

Page 17: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

17

A 15/8-approximation algorithm

• Use a minimal 1/3-separator to estimate a lower of the routing cost of an MRCT– There exists a path P which is a minimal 1/3-

separator–

• The endpoints of P are useful in constructing a lower routing cost spanning tree

Vv

MRCT Pwn

Pvdn

MRCTC )(9

4),(

34

)(2

Page 18: Minimum Routing Cost Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan.

18

A 3/2-approximation algorithm

• Besides the two endpoints of P, a centroid is used to lower the upper bound.