View full-text article in PMC Entropy (Basel). 2019 Oct 5;21(10):972. doi: 10.3390/e21100972 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2019 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 5 creates and initialises each node of the tree-like structure. 1:functioninitialise(i,f) 2: if f=i then 3: Li←(null,null,null,null,null,null,null,Li); 4: return Li; 5: else 6: q←⌊i+f2⌋; 7: N0i,…,q←initialise(i,q); 8: N0q+1,…,f←initialise(q+1,f); 9: N1i,…,q←initialise(i,q); 10: N1q+1,…,f←initialise(q+1,f); 11: c0i,…,q←getCandidate(N0i,…,q,0,2); 12: c0q+1,…,f←getCandidate(N1q+1,…,f,0,2); 13: Qi,…,f.add((c0i,…,q,c0q+1,…,f,0,0)); 14: X0i,…,f←1; Y0i,…,f←1; 15: Ni,…,f←(N0i,…,q,N0q+1,…,f,N1i,…,q,N1q+1,…,f,Qi,…,f,Xi,…,f,Yi,…,f,Li,…,f); 16: return Ni,…,f; 17: end if 18: end function