Algorithms for Molecular Biology (Apr 2011)

Listing all sorting reversals in quadratic time

  • Badr Ghada,
  • Swenson Krister M,
  • Sankoff David

DOI
https://doi.org/10.1186/1748-7188-6-11
Journal volume & issue
Vol. 6, no. 1
p. 11

Abstract

Read online

Abstract We describe an average-case O(n2) algorithm to list all reversals on a signed permutation π that, when applied to π, produce a permutation that is closer to the identity. This algorithm is optimal in the sense that, the time it takes to write the list is Ω(n2) in the worst case.