Research Article

Deadline-Aware Energy-Efficient Query Scheduling in Wireless Sensor Networks with Mobile Sink

Algorithm 1

Calculate Least Energy Consuming Schedule.
(1) Select QRS and RCS
(2) Calculate , , , , and
(3) if     then
(4) failed        MS is late
(5) run MECS algorithm
(6) else
(7) if      then
(8)  successful   Schedule QRS and RCS
(9) else
(10)  if  ( ) and ( ) then
(11)   successful Schedule QRS and RCS
(12)  else
(13)   failed     Response is late
(14)   run OECS algorithm
(15)  end if
(16) end if
(17) end if