Research Article

A Novel Efficient Data Gathering Algorithm for Disconnected Sensor Networks Based on Mobile Edge Computing

Algorithm 1

Determining the auxiliary node of segment .
Input: , the set of sensor nodes in segment
   , the distance between node and node
   Size(·), get the element number of set
Output: , the auxiliary node of segment
begin
forto Size () do
   ←0
  min ←
  for ←1 to anddo
   for ←1 to Size () do
     +
   end for
  end for
  if< min then
   min =
   =
  end if
end for
end