Skip to main content
. 2022 May 26;8(6):152. doi: 10.3390/jimaging8060152
Algorithm 1 Encode b into c
Input:  α, L, b=(b0,b1,,bk1), bt{0,1}
Output:  c=(c0,c1,,cL1), ct{0,1}
  1:  Bt=0k1bt2t;
  2:  lα;
  3:  for  t=0 to  L1  do
  4:    if BLt1l then
  5:     cLt1=1;
  6:     BBLt1l;
  7:     ll1;
  8:   else
  9:     cLt1=0;
10:   end if
11: end for