Research Article

An Intelligent Energy-Efficient Data Routing Scheme for Wireless Sensor Networks Utilizing Mobile Sink

Algorithm 2

CH activation algorithm.
1: Execute the cluster construction process
2: for each group do
3:  for each cluster do
4:   for to do
5:    for to do
6:     ifthen
7:      Select as CH
8:      break
9:     end if
10:    end for
11:    Aggregates data at
12:    Send data to the MS.
13:    Switch to member state.
14:    ifthen
15:     Set to sleep mode
16:     Set the slot of to unused mode
17:     for to do
18:      Set
19:     end for
20:    end if
21:   end for
22:  end for
23: end for