minimum spanning trees: chapter 6s the modern corp. problem modern corporation has decided to have a...

12
Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of- the-art fiber-optic network installed to provide high- speed communication (data, voice, and video) between its major centers. Any pair of centers do not need to have a cable directly connecting them in order to take advantage of the technology. All that is necessary is to have a series of cables that connect the centers. Question: Which cables should be installed to provide high-speed communications between every pair of centers. Copyright © 2011 by the McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin

Upload: shannon-miles

Post on 01-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem

• Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to provide high-speed communication (data, voice, and video) between its major centers.

• Any pair of centers do not need to have a cable directly connecting them in order to take advantage of the technology. All that is necessary is to have a series of cables that connect the centers.

Question: Which cables should be installed to provide high-speed communications between every pair of centers.

Copyright © 2011 by the McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin

Page 2: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Modern Corporation’s Major Centers

B

A

D

C

F

E

G2 2

1 3 1

5

7

5

4

4

7

4

6s-2

Page 3: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

The Optimal Solution

B

A

D

C

F

E

G2 2

1 3 1

5

6s-3

Page 4: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Assumptions of a Minimum-Spanning Tree Problem

1. You are given the nodes of a network but not the links. Instead, you are given the potential links and the positive cost (or a similar measure) for each if it is inserted into the network.

2. You wish to design the network by inserting enough links to satisfy the requirement that there be a path between every pair of nodes.

3. The objective is to satisfy this requirement in a way that minimizes the total cost of doing so.

6s-4

Page 5: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Algorithm for a Minimum-Spanning-Tree Problem

1. Choice of the first link: Select the cheapest potential link.

2. Choice of the next link: Select the cheapest potential link between a node that already is touched by a link and a node that does not yet have such a link.

3. Repeat step 2 over and over until every node is touched by a link (perhaps more than one). At that point, an optimal solution (a minimum spanning tree) has been obtained.

(Ties for the cheapest potential link at each step may be broken arbitrarily.)

6s-5

Page 6: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Application of Algorithm to Modern Corp.: First Link

B

A

D

C

F

E

G2 2

1 3 1

5

7

45

7

4

4

6s-6

Page 7: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Application of Algorithm to Modern Corp.: Second Link

B

A

D

C

F

E

G2 2

1 3 1

5

7

45

7

4

4

6s-7

Page 8: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Application of Algorithm to Modern Corp.: Third Link

B

A

D

C

F

E

G2 2

1 3 1

5

7

45

7

4

4

6s-8

Page 9: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Application of Algorithm to Modern Corp.: Fourth Link

B

A

D

C

F

E

G2 2

1 3 1

5

7

45

7

4

4

6s-9

Page 10: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Application of Algorithm to Modern Corp.: Fifth Link

B

A

D

C

F

E

G2 2

1 3 1

5

7

45

7

4

4

6s-10

Page 11: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Application of Algorithm to Modern Corp.: Final Link

B

A

D

C

F

E

G2 2

1 3 1

5

7

45

7

4

4

6s-11

Page 12: Minimum Spanning Trees: Chapter 6s The Modern Corp. Problem Modern Corporation has decided to have a state-of-the-art fiber-optic network installed to

Applications of Minimum-Spanning-Tree Problems

1. Design of telecommunication networks (computer networks, lease-line telephone networks, cable television networks, etc.)

2. Design of a lightly-used transportation network to minimize the total cost of providing the links (rail lines, roads, etc.)

3. Design of a network of high-voltage electrical power transmission lines.

4. Design of a network of wiring on electrical equipment (e.g., a digital computer system) to minimize the total length of the wire.

5. Design of a network of pipelines to connect a number of locations.

6s-12