Research Article

Efficient Multidimensional Top- Query Processing in Wireless Multihop Networks

Algorithm 6

Handling reply message, .
(1)/*  receives  */
(2)if  threshold .threshold  then
(3)  threshold .threshold
(4)
(5)if   receives reply from all next_nodes inlcluded in AT for the fist time  then
(6)  if   is a cluster head  then
(7)    Perform Algorithm 5
(8)  else
(9)    
(10)     
(11)     Send to parent
(12) else
(13)    receives reply from all next_nodes inlcluded in
(14)
(15)
(16) Send to parent