Input:   ,
Output:   , ,
  set i, J and ASURmax to be 0
  for
   for each
       calculate and record
   end for
  end for
  for
   for
       calculate ASUR( )
      if  (ASUR( ) > ASURmax) then
        ASURmax = ASUR( )
         
         
    end if
end for
  end for
Algorithm 1: Packet selection algorithm based on asymmetric coding method.