Research Article
Efficient and Reliable Cluster-Based Data Transmission for Vehicular Ad Hoc Networks
Algorithm 2
: Cluster head selection.
Input: Set of | Output: Set of | (1) | for each vehicle where do | (2) | starts | (3) | while do | (4) | if receives or from then | (5) | | (6) | goto Cluster Formation | (7) | end if | (8) | end while | (9) | if does not receive then | (10) | calculates | (11) | if then | (12) | | (13) | broadcasts | (14) | end if | (15) | end if | (16) | end for |
|