Skip to main content
. 2015 Feb 4;15(2):3540–3564. doi: 10.3390/s150203540

Algorithm 5 CRBR-Localization Algorithm

Input: all nodes' neighborhood N; the initial node A; the actual node number n.
Output: node location permutation S.
1. use Algorithm 1 to derive the permutation S
2. k = the number of ordering S
3. If k = = n then
4.  turn to Algorithm 4
5. else if nk = = 1
6.  turn to Algorithm 2
7. else
8.  turn to Algorithm 3
9. end if