Research Article
A Novel Routing Protocol for Realistic Traffic Network Scenarios in VANET
Algorithm 5
GA for initial and updated swarm position.
| 1. T 0 //for iteration | | 2. Initialize S(T) //initial population | | 3. Evaluate S(T) with computational parameters | | 5. While T ≠ END | | 6. Do | | 7. Recombine S(T) to yield crossover C(T) | | 8. Evaluate C(T) | | 9. Select S(T +1) from S(T) and C(T) | | 10. T = T +1 | | 11. End | | 12. End |
|