Algorithm 1 WGS for illumination pattern determination. |
-
Input:
collection of cells , set of demand of all cells
-
Output:
the set of illuminated cells
-
1:
Initialize , ;
-
2:
for i=1 to N do
-
3:
count the and ;
-
4:
end for
-
5:
Normalize two types of demand: ;
-
6:
Obtaion weighted demand: ;
-
7:
whiledo
-
8:
-
9:
Add i to and reomve i from
-
10:
-
11:
end while
|