Research Article
AR-RBFS: Aware-Routing Protocol Based on Recursive Best-First Search Algorithm for Wireless Sensor Networks
Algorithm 1
Pseudocode of network deployment.
(1) Sink broadcast interest-message to all nodes | (2) The nodes receive the message | (3) For all nodes | (4) If message = not repeat | (5) Interest hop = interest hop + 1 | (6) Else go to (7). | (7) For all nodes | (8) If interest hop’s nodes are same | (9) They are in a same layer | (10) For all layers | (11) While (duty-task-message ≤ our limited number) | (12) Send duty-task-message from any node to self-neighbors | (13) If receive-answer-count = our limited number | (14) While (Time is true) | (15) Node is sleep mode | (16) Go to (12). |
|