Algorithm 1 Depth-first bit-labeling search. |
Input:The assignment order I; |
The label candidate set B. |
Output: The 4 bit PGL schemes set . |
1: begin procedure |
2: initialize: let , ; set ; |
3: find ; |
4: if
then
|
5: go to 14; |
6: end if
|
7: for
do
|
8: , , ; |
9: if
then
|
10: record the partial Gray labeling schemes in ; |
11: go to 14; |
12: end if
|
13: return to 3; |
14: , ; |
15: end for
|
16: return
. |