All sensor nodes
while do
 Cluster nodes
 Pick representative node from each cluster
= Chosen representative nodes
end
number of runs for Genetic Algorithm
while   do
 Pick two random subsets and
 Swap a random node from and
 if
  
  
  end
end
Algorithm 1: Pseudocode for two-tier round-robin subset allocation.