Algorithm 5 Event source determination. |
Require:
|
Ensure:
|
-
1:
← round(k% × sizeOf(.))
-
2:
for each
∈ .
do
-
3:
← retrieve a set of edges from ., such that each edge connects
-
4:
for each
∈
do
-
5:
← retrieve the weight for from .
-
6:
← +
-
7:
end for
-
8:
if
sizeOf () <
then
-
9:
← ∪ {}
-
10:
else
-
11:
← retrieve a sensor node from whose is the smallest
-
12:
if
.<.
then
-
13:
← ∪ {} - {}
-
14:
end if
-
15:
end if
-
16:
end for
|