|
Algorithm 5 Random Selection Algorithm |
-
1:
Input: S a collection of sets made up by the user locations
-
2:
Output: , covering set
-
3:
function RANDOM SELECTION(S)
-
4:
-
5:
-
6:
-
7:
while do
-
8:
select based on a random selection of
-
9:
if then
-
10:
-
11:
-
12:
end if
-
13:
-
14:
end while
-
15:
return G
-
16:
end function
|