Algorithm 1.
1: Track leaf 1 (randomly out of the two leaves found on day 1) for all days. |
2: Look for leaf 2 in direction d1 + 180° and track it. |
3: Look for leaf 3 in directions such that |d3 − d1| > 60° and |d3 − d2| > 60° and track it. |
4: Look for leaf 4 in direction d3 + 180° and track it. |
5: Track the 5th leaf to appear, whatever its growth direction. |
6: Shuffle leaves 1 and 2 so that leaf 1 is closest to leaf 5 (convention). |
7: Shuffle leaves 3 and 4 so that leaf 3 is closest to leaf 5 (beginning of phyllotaxy). |
8: for j ≥ 1 do |
9: Look for leaf 5 + j in direction d5+j sign(d5−d4) dp and track it. |
10: end for |