Skip to main content
. 2020 Apr 6;20(7):2056. doi: 10.3390/s20072056
Algorithm 2β-step Algorithm

for k=0; k<|indi|; k++ do

  if indi[k]!=indj[k] then

   put k into the list index;

  end if

end for

totalNum=round(rand(0,1)×Hamming(indi,indj));

num=0;

n=0;

while num<totalNum do

  if rand(0,1)<β01+γrij2 then

   indi[index[n]]=(indi[index[n]]+1)mod2;

   remove index[n] from index;

   num=num+1;

  end if

  n=(n+1)modindex.length();

end while