|
| |
| 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 |
|
| |
|
| |
| 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 |
|
| |