Skip to main content
. 2019 Apr 2;14:11. doi: 10.1186/s13015-019-0144-9

Fig. 2.

Fig. 2

Work done to calculate the sum of haplotype probabilities at a site for the conventional and our sublinear forward algorithm. Using the example that at site i, ϕi(oi)={h3}, we illustrate the number of arithmetic operations used in (i) the conventional O(nk) Li and Stephens HMM recurrence relations. ii Our procedure specified in Eq. (12). Black lines correspond to arithmetic operations; operations which cannot be parallelized over j are colored yellow