In this paper, we study the combinatorial set of RNA secondary structures of length $n$ with $m$ base-pairs. For a compact representation, we encode an RNA secondary structure by the corresponding Motzkin word. For this combinatorial set, we construct an AND/OR tree structure, find a bijection between the combinatorial set and the set of variants of the AND/OR tree, and develop algorithms for ranking and unranking the variants of the AND/OR tree. The developed ranking and unranking algorithms have polynomial time complexity $O(m^2 (n - m))$ for $m < n - 2 m$ and $O(m (n - m)^2)$ for $m > n - 2 m$. In contrast to the existing algorithms, the new algorithms do not require preprocessing steps and have better time complexity.
翻译:在本文中,我们研究了RNA二级结构的组合,其长度为10美元,基面值为10万美元。在压缩的表述中,我们用相应的莫兹金字将RNA二级结构编码成一个相应的莫兹金字词。对于这一组合,我们建造了AND/OR树结构,在AND/OR树的组合和变种之间找到一个分母,并为AND/OR树的变种制定排序和非排序的算法。发达的排序和非排序算法具有多元时间复杂性 $O(m%2 (n-m)), $ < n-2m(n-m)% 2美元, $ > n-2m(n-m) 2美元。与现有的算法相反,新的算法不需要预处理步骤,而且具有更高的时间复杂性。