Research Article
EESS: An Energy-Efficient Spectrum Sensing Method by Optimizing Spectrum Sensing Node in Cognitive Radio Sensor Networks
Algorithm 1
Cluster formation algorithm based on optimal SSN selection.
Input: Optimal SSNs ratio p based on the Eq. (20); | All number of nodes in the network N; | The rest number of nodes in the network . | initialization: counter c = 0; constant C; | ←Np, N - Np | for do | randomly selected SSN i sends a message containing a counter c and its ID to neighbor node | end of for | repeat until timer stops | for do | Timer i is on; | cc + 1; | if c <= C | then The neighbor node of SSN i forward its ID and count c; | end of for | end of repeat | for do | for do | if node j has the lowest count c among every SSN in | then node j join the SSN i | end of for | end of for | for do | if node j has similar messages among every node in | then node j select the SSN i who sent the first message | end of for | Output: clusters |
|