Skip to main content
. 2020 Jan 13;20(2):445. doi: 10.3390/s20020445
Algorithm 1: block location setting
1Function OPTIMAL BLOCKS{predefined workspace, selected tileset}:
2 define {w(wr,wc)}
3i ←1, j ←1, t ←1
4for alli, i ←1, do
5  for allj, j ←1, do
6   locationw(i,j) is COM of tile t:
7    if tile t is asymmetrical tile:
8     Locate: tile t blocks as Figure 8c
9    else if tile t is symmetrical tile:
10      Execute: shifting from t1 to t
11      Find: blocks of tile having the similar heading with the heading after transforming
12      Locate: tile t blocks as Figure 8a,b
13    end
14   end
15  end
End Function