|
Algorithm 2: MTCLM_RANDOM (G, ). |
-
Input:
graph G,
-
Output:
X,.
-
1:
;
-
2:
;
-
3:
computer the optimal solution to the LP ,;
-
4:
for eachdo
-
5:
set a positive constant.
-
6:
while
do
-
7:
set with probability ;
-
8:
if
then
-
9:
set ;
-
10:
-
11:
break;
-
12:
else
-
13:
set
-
14:
;
-
15:
end if
-
16:
end while
-
17:
end for
-
18:
returnX,;
|