Skip to main content
. 2017 Jun 6;17(6):1303. doi: 10.3390/s17061303
Algorithm 2. The Local Neighbor-optimal Selecting Algorithm (LNSA)
INPUT: the position information of all nodes S = {S1, S2, …, Sn} in Di(Pi,2R).
OUTPUT: the selected nodes Sb = {S′b1, S′b2, …, S′bi, …, S′bh}.
1: Divide ROI into many regular hexagons H1, H2, …, Hi, …, Ha with the virtual grid points as the center, build the polar coordinate system in Hi
2: Perform the following steps in each regular hexagon Hi
3: Refine the nodes in Hi with |ρSiR|δ and constitute S′c = {Sc1, Sc2, …, Sck}
4: for i = 1: k
5: If αSmod(i+1,c)αSi>2θ
6: Pick the spare nodes from SSC to join S′c
7: i = i − 1
8: End
9: End
10: Choose nodes every 2θ as the awakening nodes S′bi = {Sb1, Sb2, …, Sbm} in S′c.
11: End
12: Sb = {S′b1, S′b2, …, S′bi, …, S′bh}