Skip to main navigation Skip to search Skip to main content

RNA inverse folding can be solved in linear time for structures without isolated stacks or base pairs

  • Théo Boury
  • , Samuel Gardelle
  • , Laurent Bulteau
  • , Yann Ponty

Research output: Contribution to journalArticlepeer-review

Abstract

Inverse folding is a classic instance of negative RNA design which consists in finding a sequence that uniquely folds into a target secondary structure with respect to energy minimization. A breakthrough result of Bonnet et al. shows that, even in simple base pairs-based (BP) models, the decision version of a mildly constrained version of inverse folding is NP-hard. In this work, we show that inverse folding can be solved in linear time for a large collection of targets, including every structure that contains no isolated BP and no isolated stack (or, equivalently, when all helices consist of 3+ base pairs). For structures featuring shorter helices, our linear algorithm is no longer guaranteed to produce a solution, but still does so for a large proportion of instances. Our approach introduces a notion of modulo m-separability, generalizing a property pioneered by Hales et al. Separability is a sufficient condition for the existence of a solution to the inverse folding problem. We show that, for any input secondary structure of length n, a modulo m-separated sequence can be produced in time O(nm2m) anytime such a sequence exists. Meanwhile, we show that any structure consisting of 3+ base pairs is either trivially non-designable, or always admits a modulo-2 separated solution. Solution sequences can thus be produced in linear time, and even be uniformly generated within the set of modulo-2 separable sequences.

Original languageEnglish
Article number20
JournalAlgorithms for Molecular Biology
Volume20
Issue number1
DOIs
Publication statusPublished - 1 Dec 2025

Keywords

  • Parameterized complexity
  • RNA structure
  • String design
  • Uniform sampling

Fingerprint

Dive into the research topics of 'RNA inverse folding can be solved in linear time for structures without isolated stacks or base pairs'. Together they form a unique fingerprint.

Cite this