Algorithm 3 Approximation Algorithm for STP-MSPCL Input: L, , Output: A set C of Steiner points,
|
-
1:
for all
,
do
-
2:
if distance()
then
-
3:
if
and
then
-
4:
-
5:
else
-
6:
-
7:
for all
,
do
-
8:
Compute the shortest path P between and ;
-
9:
;
-
10:
Compute a minimum spanning tree on ;
-
11:
Let C be the set of locations on the shortest path between any two locations in ;
-
12:
return
|