View full-text article in PMC Entropy (Basel). 2020 Jan 27;22(2):149. doi: 10.3390/e22020149 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2020 by the authors. 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 3 Function pb_ch_pref Require:V˜in, Ri, Λi−1(X) 1: T˜iHX|VZ(n)←Λi−1(X) 2: T˜iHX|V(n)∖HX|VZ(n)←Ri 3: for j∈HX|V(n)C do 4: if j∈HX|V(n)C∖LX|V(n) then 5: T˜i(j)←pT(j)|T1:j−1VnT˜i(j)|T˜i1:j−1V˜in 6: else if j∈LX|V(n) then 7: T˜i(j)←arg maxt∈XpT(j)|T1:j−1Vnt|T˜i1:j−1V˜in 8: end if 9: end for 10: X˜in←T˜inGn 11: Λi(X)←T˜iHX|V(n)∖HX|VZ(n) 12:returnX˜in and Λi(X)