Research Article

Multiple Prime Expansion Channel Hopping for Blind Rendezvous in a Wireless Sensor Network

Table 1

Multiple prime expansion algorithm.

Multiple prime expansion algorithm

1Input: M, A, B
M: the total number of channels
A and B: two wireless devices waiting to rendezvous
or ; p: probability of A or B contains common channels
m: the length of the “fill part”
2LA(LB) = the smallest prime number not smaller than A(B)
3if A and B are prime number
4LA=A, LB=B
5else
6if A is prime number, B is composite number
7LA=A, LB= [ B, FB]
8else
9if A is composite number, B is prime number
10LA= [ A, FA], LB=B;
11else
12LA= [ A, FA], LB= [ B, FB];
13end