Figure 11
From: Maximum expected accuracy structural neighbors of an RNA secondary structure

Pseudocode for RNAborMEA algorithm. Given RNA sequence s = s1, .. ., s n of length n, initial secondary structure S0 of s, RNAborMEA computes for all values of 0 ≤ k ≤ n that structure S with base pair distance k from S0, which maximizes the value . The pseudocode actually computes only values M(i, j, k) for all i, j, k; the MEA structures are obtained by backtracing. This algorithm clearly runs in O(n3) time with O(n3) space.