powerpoint presentationorennahum.dynu.net/files/courses/trans_ash/transportation5 - mst.… · ¥...

49
" 1/47 5

Upload: others

Post on 14-Aug-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

1/47

5

Page 2: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

2/47

Page 3: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

3/47

Page 4: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

4/47

,,)(.

,-)(,

.

:,–,

Page 5: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

5/47

.

,,,.

.

.

-,.

Page 6: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

6/47

Page 7: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

7/47

Page 8: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

8/47

Page 9: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

9/47

) ( ?) ,

, ?(

.

. , 1.

) ( n n-1.

Page 10: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

10/47

n-1 ?

Page 11: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

11/47

:,G=(V,E,w),,

:

:)Greedy(

Page 12: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

12/47

– -S-A(S)

.(u,v)-A(S)-u-S-v-S.:

Minimize:

=,

Subject to:

,

= 1

,

= 1

0,1 ,

Page 13: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

13/47

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 14: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

14/47

- ,

.

.

Page 15: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

15/47

)(

.1,,

.2i=1

.3i,,

.4i-1)i=i+1(

.5i,,3

Page 16: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

16/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 17: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

17/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 18: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

18/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 19: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

19/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 20: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

20/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 21: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

21/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 22: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

22/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 23: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

23/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 24: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

24/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 25: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

25/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 26: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

26/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 27: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

27/47

-

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

15DE

11FG

9EG

9DB

8EF

8BC

7BE

7AB

6DF

5CE

5AD

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7

Page 28: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

28/47

-

7

5

96

5

A

B

C

E

G

F

D

7

:5+5+6+7+7+9=39

Page 29: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

29/47

– S ,-e

-S . ,T* , e.

) :( -e ,T* , :

e ,T* , C.

C , f , -S.

T=T*+e-f .

-fC<eC -T*)Cost(T)<Cost( , .

Page 30: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

30/47

Page 31: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

31/47

– C G ,-f

C . ,T* , f.

) :( -f ,T* , :

f ,T* , T* . S .

C , e , -S.

T=T*+e-f

-fC<eC -T*)Cost(T)<Cost( , .

Page 32: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

32/47

Page 33: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

33/47

1:

e T C , -e C . , e

.

Page 34: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

34/47

2:

e=(v,w) T , -e -S .

,e .

Page 35: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

35/47

,

,

Page 36: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

36/47

, O.

O(N^2)– " C*N^2

Page 37: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

37/47

,

,G=(V,E) , O(|E|)

Page 38: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

38/47

)(

.1=VT,=ET

.2VT

.3|ET|-)1-V||(

.1v)u,(-VTu-VTv.-)3(,

.2v)u,(ET

.3v-VT

Page 39: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

39/47

-

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7TV TE

A

Page 40: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

40/47

-

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7TV TE

A ADD

Page 41: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

41/47

-

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7TV TE

A ADD DFF

Page 42: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

42/47

-

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7TV TE

A ADD DFF ABB

Page 43: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

43/47

-

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7TV TE

A ADD DFF ABB BEE

Page 44: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

44/47

-

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7TV TE

A ADD DFF ABB BEE ECC

Page 45: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

45/47

-

7 8

5

9

11

6

159

8

5

A

B

C

E

G

F

D

7TV TE

A ADD DFF ABB BEE ECC EGG

Page 46: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

46/47

G=(V,E,w).

,,T.-T-T.

-G,.,-T

)(.

TG,:

e=(u,v)-T,-V’-T

e.

Page 47: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

47/47

u-v.

,f,-V’.

ef,e,:w(f) w(e).

-T’fe.

-T’,

,T’ee)V’(.

-T,T.

Page 48: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

48/47

Page 49: PowerPoint Presentationorennahum.dynu.net/files/Courses/Trans_Ash/Transportation5 - MST.… · ¥ § ° ¯ ¸ ¥ ¸" £ ² ¥ ° © ¹ ¥ ¤ ¬ ¡ ¥ º º ¥ « ¸ ² ® º ¥ £

"

49/47