Skip to main content
. 2023 Jan 19;25(2):200. doi: 10.3390/e25020200
Algorithm 1 Discard matching strategy.
Input: Current 2L extended path {PMEl(i1),l=1,2,,2L}, IPS output d^
Output: L survival paths PM {PMli,l=1,2,,L}
1: cnt_pm=1
2: for s=1,2,,2L do
3:    if d^l=1andcnt_pmL then
4:     PMcnt_pmi=PMEs(i1)
5:      cnt_pm=cnt_pm+1
6:    end if
7: end for
8: if Ω<L then
9:    for s=1,2,,2L do
10:      if d^l=0andcnt_pmL then
11:         PMcnt_pmi=PMEs(i1)
12:         cnt_pm=cnt_pm+1
13:      end if
14:    end for
15: end if