Skip to main content
. 2015 Jan 14;15(1):1518–1536. doi: 10.3390/s150101518

Algorithm 2: DBF, non initiator node.

 1: parenti = null; Wi = ∞
 2: while node i receives < j,Wj > message from node j
 3: if Wi > Wj + costi,j then
 4:  parenti = j
 5:  Wi = Wj + costi,j
 6:  broadcast < i,Wi >
 7: end if
 8: end while