|
Algorithm 1 Proposed Localization Algorithm |
-
1:
procedure Anchor nodes and unknown nodes
-
2:
Initialize and and dominating set
-
3:
for Broadcast by anchor node
do
-
4:
Send
-
5:
end for
-
6:
for On receiving, node computes do
-
7:
Leash_C = Leash_C - 1;
-
8:
Accept_S = 1;
-
9:
Send
-
10:
end for
-
11:
if
then
-
12:
Create
-
13:
-
14:
else
-
15:
exit
-
16:
end if
-
17:
BS performs:
-
18:
while True do
-
19:
if
then
-
20:
Break while loop;
-
21:
else
-
22:
Calculate the maximum degree anchor nodes
-
23:
-
24:
end if
-
25:
end while
-
26:
-
27:
for k = 1 to m’ do
-
28:
BS creates binary vector
-
29:
Apply algorithm
-
30:
Apply Trilateration
-
31:
end for
-
32:
end procedure
|