Skip to content

Sorting by block-reversals: closing the gap

László Kozma

cs.DS

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 nn can be sorted at cost O(nlog⁡2n)O(n\log^2{n}) and some sequences can only be sorted at cost Ω(nlog⁡n)Ω(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ínek, Opler, and Pekárek, who showed that every sequence can be sorted in O(log⁡2n)O(\log^2{n}) steps and some sequences require Ω(log⁡n)Ω(\log{n}) steps. We close both gaps, showing that the upper bounds are tight, and the log⁡2n\log^2{n} factors are unavoidable.

Create a lesson