Research Article
A Heuristic Algorithm of Cooperative Agents Communication for Enhanced GAF Routing Protocol in WSNs
Algorithm 4
Local minimization.
1: | |
2: repeat | |
3: fordo | |
4: fordo | |
5: Remove the edge . | |
6: Set the tree containing . | |
7: Set the tree containing the core nodes. | |
8: fordo | |
9: fordo | |
10: | |
11: ifthen | |
12: | |
13: end if | |
14: end for | |
15: end for | |
16: end for | |
17: end for | |
18: | |
19: until |