Research Article

Traffic and Energy Aware Optimization for Congestion Control in Next Generation Wireless Sensor Networks

Algorithm 1

Pseudo-code for F-ANT.
1. If ()
2. If (F-ANT is at sink node)
3. Initialize B-ANT
4. Else
5. If Random then
6. Initialize F-ANT
7. Go to next hop randomly
8. Else
9. Nodes as current and next node are updated here
10. If node already visited
11. Go to other next neighbor node
12. Update heuristic value by step 11
13. END