Single algorithm efficiently predicts dna and rna molecule structures

One partition function call to rule them all: Efficiently computing the equilibrium landscape of multiple nucleic acid strands

Data Structures and Algorithms

Summary

The paper addresses the challenge of predicting all possible folded shapes and energies of multiple DNA or RNA strands interacting together. Previous methods required different tools for separate problems and were slow or incomplete. The authors developed a single, efficient algorithm that calculates the entire energy landscape in polynomial time and space, improving speed and ability over earlier work. This means many questions about molecular structures and their stability can now be answered more quickly and with one method.

What this means in practice

  • For biotech developers: Design DNA or RNA-based molecules by rapidly predicting detailed structure and stability for multiple interacting strands with one efficient algorithm.
  • For bioinformatics engineers: Build software tools that compute all energy states and count stable structures for nucleic acid interactions faster and more comprehensively than prior methods.

Authors

Ahmed Shalaby, Damien Woods

Abstract

In the nearest neighbour model of DNA/RNA binding, the partition function (PF) is a sum of Boltzmann-weighted free energies of the exponentially large set of secondary structures. Dirks et al. [SIAM review, 2007] gave a polynomial time PF algorithm for $O(1)$ strands, generalising McCaskill [Biopolymers, 1990] single-stranded case. Despite the intuition that PF may somehow encode the entire state space, thus far different approaches were required to solve various energy-landscape prediction problems. For example: finding the minimum free energy (MFE), structure(s) for $O(1)$ strands was open since 2007, and we recently solved [ICALP, 2025] via new techniques. We asked if there is a magnifiable PF algorithm [DNA31, 2025], which we answer here in the affirmative. We give an $O(N^3(c-1)!)$ time, $O(N^2)$ space algorithm, for $c=O(1)$ strands of $N$ bases, the same overhead as Dirks et al. (non-magnifiable) algorithm. However, we show that magnification allows for efficient decoding of the entire landscape, concretely: a single call to the magnifiable PF efficiently solves and improves upon a large number of problems, giving: - MFE in $O(N^3(c-1)!)$ time, $O(N^2)$ space; a considerable improvement over our $O(N^4(c-1)!)$ time, $O(N^4)$ space result [ICALP 2025]. - The first polynomial time algorithm for the multi-stranded density of states problem, in time $O(N^3(c-1)!),O(N^2)$ space. - The first polynomial time algorithm outputting the entire list of energy levels occupied by at least one structure (in time $O(N^3(c-1)!),O(N^2)$ space), and the first algorithms for various energy landscape and counting problems. Our approach unifies the field of energy landscape prediction showing that a single, general, algorithmic framework neatly unifies a large collection of problems that practitioners care about, and required distinct techniques with worse time bounds.