Skip to main content
. 2016 Apr 1;16(4):462. doi: 10.3390/s16040462
Algorithm 2: Construction of the Measurement-Formation Path
Input: Sparse measurement coefficients vectors Φ1,Φ2,ΦM each with n i.i.d. elements; nodes’ maximum communication range Rcomm;
Output: Set of measurement formation a trees T={T1,T2,,TM}, Ti={Ini,Si,Yi}
1 For each measurement i=1, 2,, M
2 Calculate the set of interested nodes Ini={all nodes s.t. Φij0, j=1, 2,,n}.
3 Calculate the set of neighbor nodes Ne={each node v s.t. dist(v,t)Rcomm, vV, tIni}.
4 Do
5 Calculate the number of edges incident from Ne to Ini (denoted as De{|Ne|}).
6 If Max(De{|Ne|})2
7 Remove all adjacent nodes of node v from Ini where vIni and De{v}=Max(De{|Ne|})
8 Add node v into Ini
9 Renew Ne and Ini
10 Ifend
11 While (|Ininew|<|Iniold|).
12 Calculate the convex hull (denoted as Cl) of set Ne{sink} by using Graham scan method
13 Construct the MST which takes the sink as a root and connects all Cl nodes
14 Ti={Ini,Cl,Yi} where Yi recorded the edge information of such MST
15 Forend
16 Return T={T1,,TM}