arXiv論文メモ
新着一覧
cs.CC / cs.DS / cs.LG · 査読状況未確認

強化学習で発見したシェルソートの間隔列と計算量の上界

A New Gap Sequence for Shellsort: RL-Driven Algorithm Discovery Beyond $N^{4/3}$

Bo Liu

この論文をやさしく読む

ひとことで言うと

シェルソートで使う間隔列を強化学習で探し、実用課題での操作回数と最悪計算量の両方を調べた研究です。

何に役立つ?

シェルソートの間隔列を選ぶ際、操作回数と理論的な最悪計算量を比較する材料になります。25件の大規模課題で7つの古典的な列より平均操作回数が少なかったという評価です。

この研究の面白いところ

古典的な列を正解として与えず、候補生成器を実行して学習します。実用部分は固定したまま、10の1000乗を超える領域でまれな補助間隔を加えることにより、理論上の上界を証明しています。

どこまで分かった?

実用性能の比較はNが10の7乗より大きく10の8乗以下の25課題と7基準列に対するものです。理論上の上界と下界の一致には多重対数因子の差が残り、下界は引用された既存定理に基づきます。

v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。

アブストラクトの日本語訳

シェルソートの間隔の選び方は、よく知られた未解決問題である。60年以上にわたり、有効な間隔列は人が設計した公式、数値探索、または数論的な構成に依存してきた。密な列や主に理論的な列には、より強い一般的な計算量の上界があるものの、短く疎で実用上も競争力のある構成については、最悪計算量の上界が長年Nの4/3乗から改善されていなかった。本研究は、間隔列そのものを実行結果から学習できるかを問う。 強化学習を用いた自己教師ありのシステムを提示し、実行可能な間隔生成器を探索する。提案は構成上すべて有効であり、実行した候補について比較回数と移動回数を正確に得る。古典的な間隔列を教師データには使わない。独立した5回の探索で、共通する有理数・幾何級数型の系列が見つかった。第二段階の自己教師あり学習では有限の先頭部分だけを調整し、実用向けの列1、3、8、20、47、116、300、585、1416、3303、…を得た。この列を固定してから、10の7乗より大きく10の8乗以下の25件の大規模課題で、同じ課題に対する操作回数の平均が、比較した7種類の古典的基準列のどれよりも低かった。 実用時の振る舞いは変えずに、学習した末尾部分を補完する。10の1000乗を超える領域だけで、密度がゼロの位置にh_s+1という単位の補助間隔を加え、残る合同条件の障壁を除く。得られる疎な間隔列では、多重対数因子を除いて上界と下界の多項式の指数が一致し、計算量T(N)は少なくともNの1.024296451657…乗のオーダーで、上界はNの同じ指数乗とpolylog Nの積のオーダーとなる。下界は有理数・幾何級数型の列に対するZangの近年の定理から従い、本研究の貢献は一致する上界である。これにより、一つの厳密な間隔列が、自己教師あり探索、大規模な実用課題での性能、疎で実用的なシェルソート列についての従来のNの4/3乗という上界を大きく下回る理論結果を結びつける。

v1の要旨から自動生成。本文の精読・人による確認は未実施。

初稿
2026-09-24(UTC)
最新改訂
2026-09-24 · v1
査読・掲載
査読状況未確認
arXivで読むPDF

更新履歴

取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。

原文の要旨

Choosing Shellsort gaps is a well-known open problem. For over sixty years, successful sequences have relied on human-designed formulas, numerical searches, or number-theoretic constructions. Although stronger general bounds exist for dense or mainly theoretical families, the worst-case upper bound for a short, sparse, and practically competitive construction has not advanced beyond $N^{4/3}$ for decades. We ask whether the sequence itself can instead be learned from execution. We present an RL-driven, self-supervised system that searches over executable gap generators. Every proposal is valid by construction, and executed candidates return exact comparison and move counts; no classical sequence is used as a target. Across five independent searches, the system discovers a common rational-geometric family. A second self-supervised stage tunes only a finite prefix, producing the practical sequence $1,3,8,20,47,116,300,585,1416,3303,\ldots$. Once frozen, it obtains the lowest equal-task average operation count among seven classical baselines on 25 large tasks with $10^7<N\leq 10^8$. We complete the learned tail without changing its practical behavior: only beyond $10^{1000}$, a zero-density set of unit companions $h_s+1$ removes the remaining congruence barriers. The resulting sparse sequence has matching polynomial upper and lower exponents, up to polylogarithmic factors: $\Omega(N^{1.024296451657\ldots}) \leq T(N) \leq O(N^{1.024296451657\ldots}\operatorname{polylog} N)$. The lower bound follows from Zang's recent theorem for rational-geometric sequences; our contribution is the matching upper bound. Thus one exact sequence connects self-supervised discovery, large-scale practical performance, and a substantial step below the classical $N^{4/3}$ bound for sparse practical Shellsort sequences.

著者のコメント

25 pages, 2 tables; full proof and technical appendix

arXiv ID: 2609.29881 / 要約の誤りについて