Skip to main content

Table 3 Pseudo-code for Non-Isomorphic Encoding.

From: The road not taken: retreat and diverge in local search for simplified protein structure prediction

Procedure getNonIsoEncoding(s)

1

initMap()

2

for i ← 1 to N do

3

   absdir = c.getAbsDir(i)

4

   if absdir is a new direction then

5

Map[absdir] ← dirCount

6

dirCount + +

7

   end

8

   encoded[i] = Map[absdir];

9

end

10

return encoded