Shellsort lower bounds for gap sequences

Shellsort sorts elements a fixed gap apart before making a final pass at gap one. The gap sequence controls the work. How much time must the algorithm take in the worst case for commonly used sequences such as Tokuda’s?

Why it matters and what counts as progress

Why it matters: A simultaneous approximation lemma provides a root of unity sufficiently far from 1 whose powers at selected gaps stay close to 1. These two properties let a polynomial encoding detect inputs that require many moves.

What counts as progress: Tighten worst-case lower and upper bounds for practical gap sequences, including Tokuda’s.

How the problem developed

  1. 1992 · Gap sequence [1]

    Naoyuki Tokuda Introduced the gap sequence used in Zang’s concrete lower-bound example.

  2. 14 Oct 2026 · Approximation lemma [1]

    Zhenghan Zang and ChatGPT The revised manuscript credits ChatGPT with the initial framework for Lemma 2 and reports Zang’s verification of its proof.

Follow new AI contributions to this problem.

Get email updates

Download problem history

AI contribution

Improved lower bounds on the time complexity of Shellsort

Zhenghan Zang

For positive integers a1a_{1},…,am≤Na_{m}\le N, M and Q with 2MQm≤N2MQ^{m}\le N, there is a real r for which Nr is an integer, ∥r∥≥M/N\Vert r\Vert \ge M/N and ∥air∥≤1/Q\Vert a_{i}r\Vert \le 1/Q for each i, where ‖·‖ is distance to the nearest integer. This is Lemma 2 in Zang’s Shellsort analysis.

AI involvementAI-centered
ImportanceModest
Technical verificationFormal (human)
Human understandingExplained
Paper date:

Sources

  1. Zang’s Shellsort lower-bound paper
Publication history