View full-text article in PMC Entropy (Basel). 2021 Dec 20;23(12):1703. doi: 10.3390/e23121703 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2021 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 (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm A2GetBestParents(V,Xi,LS) bps= array 1 to 2n−2 of variable sets bss= array 1 to 2n−2 of local scores for allcs⊆(V∖{Xi}) such that X0∈cs in lexicographic order do bps[cs]←cs bss[cs]←LS[Xi][cs] for all cs1⊂cs such that X0∈cs1 and |cs∖cs1|=1 do if bss[cs1]>bss[cs] then bss[cs]←bss[cs1] bps[cs]←bps[cs1] end if end for end for