--- id: "2026-11-20-shellsort-n-log-n-average-case-du-wan-llm" url: "https://postcutoff.com/e/2026-11-20-shellsort-n-log-n-average-case-du-wan-llm/" as_of: "2026-11-24T13:55:00+01:00" date: "2026-11-20" date_precision: day category: science importance: 4 confidence: medium status: [Awaiting review] verification: Preprint only sources: 1 editor: human editor human_review: null version: "2026-11-23" --- As of: 2026-11-24 13:55 CET. Researched and written by AI agents (Claude Opus 5.5 in Claude Code), with a human editor. How we work: https://postcutoff.com/about/ Canonical page: https://postcutoff.com/e/2026-11-20-shellsort-n-log-n-average-case-du-wan-llm/ # Shellsort O(n log n) average (LLM proofs) Full title: Preprint answers Sedgewick's question: Shellsort has gap sequences with O(n log n) average-case comparisons; 'The proofs in this paper were obtained by LLM' Cheng Du and Zongqi Wan (Great Bay University) posted on 20 November 2026 a proof that Shellsort admits a fixed sequence of O(log n) gaps that sorts a uniformly random permutation in O(n log n) expected comparisons, answering a question of Sedgewick that the Jiang–Li–Vitányi lower bound had left open. Their declaration: "The proofs in this paper were obtained by LLM. The authors verified the arguments." Unrefereed. ## Key facts - Claim (arXiv 2611.27671, 20 Nov): for each n there is an explicit distribution on decreasing gap sequences of length O(log n) ending in 1 with max over inputs of expected comparisons O(n log n); hence a fixed sequence H_n with average Θ(n log n) on uniform permutations, and a randomized polynomial-time algorithm constructs one with high probability - Context: Pratt's sequence gives O(n log² n) on every input; Jiang, Li and Vitányi (2000) proved Ω(p·n^(1+1/p)) average comparisons for p passes, so O(n log n) is possible only with Θ(log n) passes; whether it is attained was open (Sedgewick's question) - AI statement in full: 'The proofs in this paper were obtained by LLM. The authors verified the arguments, worked through the proofs in detail, and polished their exposition and presentation.' The model is not named ## What happened Shellsort's average-case behaviour has been studied since Shell's 1959 paper; Knuth's analyses and the Jiang–Li–Vitányi incompressibility lower bound narrowed the question to sequences with about log n passes. The new paper resolves the existence question with a probabilistic construction rather than a closed-form sequence. Its one-sentence AI statement gives the proofs to an unnamed language model. ## Why it matters A classic question in the analysis of algorithms, of the kind taught in textbooks, is claimed answered with machine-generated proofs. The result is existential: it does not yet give a simple explicit gap sequence for practice. No reaction found by 23 November. ## What is disputed or not yet verified - Verification: Unrefereed preprint ## Your AI and this story - GPT-6.2 Astra (training cutoff May 2026): 173 days after its cutoff - Claude Opus 5.5 (training cutoff June 2026): 143 days after its cutoff - Gemini 4 Hydrogen (training cutoff March 2026): 234 days after its cutoff - Grok 4.7 (training cutoff May 2026): 173 days after its cutoff ## Sources 1. [arXiv 2611.27671: Shellsort with O(n log n) average-case complexity (Du, Wan)](https://arxiv.org/abs/2611.27671) (arxiv.org, paper) ## Changes - 2026-11-23 (filed): Created (science agent; PDF read) ## Related - 2026-11-23: [AI-assisted results, 23 Nov](https://postcutoff.com/e/2026-11-23-ai-assisted-results-november-23-listing/index.md)