Research Article
On Distributed Localization for Road Sensor Networks: A Game Theoretic Approach
Algorithm 1
Distributed localization algorithm based on potential game.
(1) set , | (2) while | (3) for each non-anchor node | (4) //solution space generation | (5) get posOfNeighborsandnumOfNeighborAnchor of | (6) if numOfNeighborAnchor < 1 | (7) set its straSpace as the target area | (8) else if numOfNeighborAnchor equals to 1 | (9) set its straSpace as the communication circle of its anchor | (10) else if numOfNeighborAnchor equals to 2 | (11) set its straSpace as the junctions of its neighbor anchors’ communication circles | (12) else | (13) estimate the position of the player using existing localization algorithms | (14) ; | (15) continue; | (16) end if | (17) // negotiation | (18) random strategy form its strategy space; | (19) if random number from 0 to 1
| (20) | (21) else | (22) | (23) end if | (24) // anchor node elevation | (25) if | (26) ; | (27) if | (28) Elevate node as an anchor node | (29) ; | (30) else | (31) | (32) | (33) end if | (34) end for | (35) end while |
|