arXivPreprintOpen accesscs.DS

Sorting by block-reversals: closing the gap

L\'aszl\'o Kozma

Key points

From the paper's conclusion
  • We close both gaps, showing that the upper bounds are tight, and the $\log^2{n}$ factors are unavoidable.

Abstract

In block-reversal sorting an elementary operation is to reverse the order of a contiguous block in a sequence, at cost proportional to the length of the block. In SODA 2004, Bender, Ge, He, Hu, Pinter, Skiena, and Swidan showed that every sequence of length $n$ can be sorted at cost $O(n\log^2{n})$ and some sequences can only be sorted at cost $\Omega(n\log{n})$. In block-partition sorting, an elementary operation is to partition the sequence into contiguous blocks, and simultaneously reverse all blocks. The model was introduced in SODA 2024 by Jel\'{i}nek, Opler, and Pek\'{a}rek, who showed that every sequence can be sorted in $O(\log^2{n})$ steps and some sequences require $\Omega(\log{n})$ steps. We close both gaps, showing that the upper bounds are tight, and the $\log^2{n}$ factors are unavoidable.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers