Skip to main content
. 2020 Jun 22;20(12):3528. doi: 10.3390/s20123528
Algorithm 1 Depth-first bit-labeling search.
Input:The assignment order I;
  The label candidate set B.
Output: The 4 bit PGL schemes set L*.
1: begin procedure
2: initialize: let lA*(xi1)=(0000), B=BlA*(xi1); set t=2;
3: find StB;
4: if St=Ø then
5:  go to 14;
6: end if
7: for j=1;j<=|St|;j++ do
8:  lA*(xit)=sjS(t), B=BlA*(xit), t=t+1;
9:  if t=32 then
10:   record the partial Gray labeling schemes LA*:{lA*(xi1),lA*(xi2),,lA*(xi32)} in L*;
11:   go to 14;
12:  end if
13:  return to 3;
14:  t=t1, B=B{lA*(xit)};
15: end for
16: return L*.