Skip to main content
Figure 6 | Algorithms for Molecular Biology

Figure 6

From: Unrooted unordered homeomorphic subtree alignment of RNA trees

Figure 6

The incorporation of cavity matching subroutines in the DP algorithm. In (a), the DP matrix H is illustrated, where the solid red entries correspond to entries in the sub-matrix H u , u ′ for some u ∈ T and u′∈S. In this example, N(u) = v 1 ,v 2 ,v 3 , andN( u ′ )= v 1 ′ , v 2 ′ , v 3 ′ , v 4 ′ , where| T u v 1 |≤| T u v 2 |≤| T u v 3 |, and| S u ′ v 1 ′ |≤| S u ′ v 2 ′ |≤| S u ′ v 3 ′ |≤| S u ′ v 4 ′ |. The solid blue entries correspond to computed values of the form Rooted-HSA - r ( T v i u , S v j ′ u ′ ), which are required for the computation of term III in Equation 7 for entries in H u , u ′ . The waived entries correspond to computed values of the form Rooted-HSA - r ( T v i u , S u ′ v j ′ ) and Rooted-HSA - r ( T u v i , S v j ′ u ′ ), which are required for the computation of terms I and II in Equation 7 for entries in H u , u ′ . (a) The computation of Rooted-HSA - r ( T u v 1 , S u ′ v 1 ′ ) according to Equation 7. The entry corresponding to this sub-instance is marked with a solid black circle. In order to compute term I of the equation, there is a need to examine values of the form Rooted-HSA - r ( T v j u , S u ′ v 1 ′ ) for v j  ∈ N(u) ∖ {v 1 }. As each T v j u is a subtree of T u v 1 , the rows corresponding to these subtrees have smaller indices than the row of T u v 1 , and so the required solutions are already computed and stored in H (waved entries marked with a dashed green circle, in the same column above the computed entry). Similarly, for computing term II, there is a need to examine solutions Rooted-HSA - r ( T u v 1 , S v j ′ u ′ ) for v j ′ ∈N( u ′ )∖{ v 1 ′ }, appearing at the same row and to the left of the computed entry. For computing term III, there is a need to construct the matching cost function w u , u ′ v 1 , v 1 ′ , which assigns for each v j  ∈ N(u) ∖ {v 1 } and v j ′ ′ ∈N( u ′ )∖{ v 1 ′ } the matching cost w u , u ′ v 1 , v 1 ′ ( v j , v j ′ ′ )= Rooted-HSA - r ( T v j u , S v j ′ ′ u ′ ) (the corresponding matching instance is shown in (b)). These required values appear in blue entries marked by a dashed black circle. Due to the order in which entries are being traversed, all required values were previously computed by the algorithm and stored in H, thus it is possible to compute Rooted-HSA - r ( T u v 1 , S u ′ v 1 ′ ) at this stage.

Back to article page