arXiv Science⌕ Search

arXiv · 2611.27945

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

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ahmed Shalaby, Damien Woods. 2026-11-23. One partition function call to rule them all: Efficiently computing the equilibrium landscape of multiple nucleic acid strands. https://arxiv.science/abs/2611.27945

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Testing Induced-Subgraph Freeness in Outerplanar Graphs under the Random-Neighbor Oracle

We prove that, for every fixed nonempty graph $H$, induced-$H$-freeness is testable with $\varepsilon^{-O_H(1)}$ queries on outerplanar graphs with no maximum-degree bound in the $\textit{random-neighbor model}$, where each query at a vertex returns a uniformly random neighbor. Thus, the query complexity is polynomial in $1/\varepsilon$ and independent of the number $n$ of vertices. Previously, the best bound known for this problem was the $\operatorname{poly}(\log n)$-query guarantee that follows from the general outerplanar-graph tester of Babu, Khoury, and Newman (2016) in the stronger $\textit{adjacency-list model}$, which provides exact degree queries and indexed access to neighbors. Our tester has $\textit{two-sided error}$, which is necessary in general: induced-$P_3$-freeness has no one-sided constant-query tester in the random-neighbor model, even on outerplanar graphs of maximum degree two.

cs.DS↗

More RLBWT Tricks

Indexes based on $k$-mers can beat BWT-based indexes when the former take advantage of unitigs in de Bruijn graphs. In this paper we consider ways in which BWT-based indexes can do that as well, or even better. In particular, we consider MEM-finding between human chromosome 19s, where we can achieve a five- to sevenfold speedup over plain backward search, or a two- to threefold speedup over plain backward search with latency hiding, for about twice the space. We also show that two-level indexing can be fast without an index of the text: without one, MEM-finding is seven to eight times faster than plain backward search in slightly less space, and from the parse alone we can then locate every occurrence of every MEM for about 5\% more time and 3 to 10\% more space.

cs.DS↗

$\ell_{\infty}$ norm SVP in $\widetilde{O}(3^n)$

We give a classical randomized algorithm for the Shortest Vector Problem in the infinity norm in $\widetilde{O}(3^n)$ time and space, improving the previous bound of $2^{2.443n+o(n)}$. A variant of the algorithm lists all shortest nonzero vectors within the same bounds. Both results, including their time and space bounds, are formally verified in Lean 4. We use the counting moment framework of Gaussian difference dynamics to construct lists with equal expected counts at each lattice point in successively smaller cubes. The key is to restrict the midpoint of each pair to a fixed inner cube, so that every allowed difference has the same region of possible midpoints. Averaging random lattice translates then preserves these expected counts through repeated differencing. We control the dependence between entries through bounds on the second counting moment, using a weighted packing estimate for cubes to bound the variation in midpoint counts. Finally, two searches based on coordinate comparisons generate the intermediate lists and recover a shortest lattice vector within the claimed time bound.

cs.DS↗