Skip to main content
. 2021 Dec 20;23(12):1703. doi: 10.3390/e23121703
Algorithm A2GetBestParents(V,Xi,LS)
  • bps= array 1 to 2n2 of variable sets

  • bss= array 1 to 2n2 of local scores

  • for allcs(V{Xi}) such that X0cs in lexicographic order do

  •     bps[cs]cs

  •     bss[cs]LS[Xi][cs]

  •     for all cs1cs such that X0cs1 and |cscs1|=1 do

  •         if bss[cs1]>bss[cs] then

  •            bss[cs]bss[cs1]

  •            bps[cs]bps[cs1]

  •         end if

  •     end for

  • end for