Skip to main content
. 2020 Dec 29;21(1):147. doi: 10.3390/s21010147
Algorithm 1: Two-Round Relay Selection (2-RRS) Scheme Algorithm.
Input: Define N number of relay, γth;
while S transmit to N Relays
    Update γSRi;
First Round Selection
  for i=1:N
   Initialize ΩM=0;
   while γSRi>=γth
   update the group ΩM;
   There are M relay successfully decode S information, 0<M<N;
   end while
  end for
Second Round Selection:
  if M>0 then
   Find the best relay Rs maximizing γRjD;
   Rs=argmaxjMγRjD
  end if
  end while