Skip to main content
. 2023 Dec 1;18:18. doi: 10.1186/s13015-023-00229-z

Table 2.

Table listing pseudoknot classes, corresponding treewidth and resulting complexity of the folding algorithm

Complexities
Type Fatgraph Treewidth Full Turner All others
H-type ([)] 4 On5 On4(*)
Kissing hairpins ([)(]) 4 On5 On4
“L” [12] ([{)]} 5 On6 On6
“M” [12] ([{)(]}) 5 On6 On6
4-clique ([{<)]}> 5 On6 On6
5-clique ([{<A)]}>a 5 On6 On6
5-chain ({[)(][)}] 6 On7 On7

For H-type pseudoknots beneath the Turner model, marked as (*), an iterated computation over canonical tree decompositions is required to achieve the complexity (see Theorem 5). For the H-type and kissing hairpins cases, we are in the specific case where the most complex routine is the alignment of a “clique case” helix, which is done in O(n4) despite a treewidth of 4. These examples are detailed in the Appendix, Fig. 10. The DP equations for each of these examples have been automatically generated by a Python implementation of our pipeline, freely available at https://gitlab.inria.fr/bmarchan/auto-dp