Beruflich Dokumente
Kultur Dokumente
2014300950050
December 3, 2016
With general analysis presented in previous Exercise Set (Exercise Set 7),
we simply give our weighted-graph below without repetition. And now we
turn to solve it by Dijkstras algorithm.
1.1
1.2
Step 2
1.3
Step 3
1.4
Step 4
With general analysis presented in previous Exercise Set (Exercise Set 7),
we simply give our weighted-graph below without repetition. And now we
turn to solve it by Dijkstras algorithm.
Notice that we connect vertices L,M,N,R to T with a cost of 0, since it
doesnt need time between the end of the last phase and marketing the
product. We may set L,M,N,R to be the termination, but for perspicuity,
we dont perform in that way.
2
2.1
2.2
Step 2
2.3
Step 3
2.4
Step 4
2.5
Step 5
2.6
Step 6
2.7
Step 7
2.8
Step 8
2.9
Step 9
2.10
Step 10
2.11
Step 11
Figure 1: (a)
Figure 2: (b)
Step 2
Step 3
Step 4
Step 5
Step 6
Wf inal = {OA, AB, BC, BE, ED, DT } and the minimal cost is eW h(e) =
h(OA)+h(AB)+h(BC)+h(BE)+h(ED)+h(DT ) = 4+1+2+4+1+6 = 18.
3.1
(b)
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
3.1.7
Step 7
Step 8
Step 9
Step 10
3.2
Termination
1. We are given the nodes of a network but not the links. Instead, we
are given the potential links and the positive length for each if it is
inserted into the network.
2. We 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 length of the links inserted into the network
Lets see how this problem accords with these characteristics of minimum
spanning tree problem.
1. We are given the 8 groves of trees as nodes to connect, and the potential
roads with positive length.
2. We wish to design the network by inserting enough dirt roads to satisfy
the requirement that each grove is accessible from every other grove.
3. Our objective is to satisfy this requirement in a way that minimizes
the total length of the road to construct.
From these aspects we can see clearly management are facing a minimum
spanning tree problem.
Let me put it another way:
First, we are looking for a spanning tree,that every pair of groves
are connected by a unique path.
Second, we are looking for a spanning tree with minimum total cost.
10