Research Article
Cooperative Antenna Selection Method for Directional Antenna Ad Hoc Networks Based on ALOHA
Algorithm 1
The proposed cooperative antenna selection algorithm.
| Input: Network ID , the number of beams | | Output: The probability of the beams | | 1 if node is synchronized then | | 2 if then | | 3 for each , do | | 4 calculate the probabilities of the beams according to (22) | | 5 end | | 6 else | | 7 | | 8 end if | | 9 else | | 10 | | 11 end if |
|