Algorithm 3
Path length adjustment between adjacent nodes (PLA).
Required: A communication graph without power control , a communication graph with | power control , and a path length threshold | Ensure: A set of transmission ranges | βββ(1) for do | βββ(2) βfor do | βββ(3) ββif then | βββ(4) βββAdd a link from to | βββ(5) βββif then | βββ(6) ββββ | βββ(7) βββend if | βββ(8) βββif then | βββ(9) ββββ | (10) βββend if | (11) ββend if | (12) βend for | (13) end for | *ββ is the path length from to in . |
|