Skip to main content
. 2018 Oct 16;18(10):3477. doi: 10.3390/s18103477
Algorithm 2 The Edge-Cutting Strategy
Input: the minimum routing graph, the layered set L, initial load LN(i) of node i in the minimum routing graph
Output: the minimum routing tree
1. for k=1:(|L|−1)
2.  while (|lk| > 0)  //complete edge-cutting for all nodes of layer lk.
3.   if exist a node “a” with the least load at the layer lk
4.    if exist multiple candidate parent nodes of the child nodes of node “a”
5.     Cut off the link between the child nodes of “a” and other candidate parent nodes.
6.    end
7.   else if exist multiple nodes with the least load at the layer lk
8.      Calculate the node product LCN(i), and set the node with the smallest node product to “a”.
9.     if the child node of node “a” exist multiple candidate parent nodes.
10.       Cut off the link between the child nodes of “a” and its other candidate parent nodes.
11.     end
12.   update lk←lk-a //delete the node “a”
13.  end
14.  Recalculate the load of all nodes
15.  end
16. end
17. return the minimum routing tree