Research Article

A Heuristic Algorithm of Cooperative Agents Communication for Enhanced GAF Routing Protocol in WSNs

Algorithm 2

Network reduction using cooperation strategy.

1: Initialize .
2: fordo
3: Compute the shortest path tree .
4: fordo
5: Compute using the equations (12).
6: end for
7: end for
8: fordo
9:
10: end for
11:
12: repeat
13:
14: fordo
15:
16:end for
17:
18:
19:
20: fordo
21:
22: end for
23: until
24: