English

Empirically Improved Tokuda Gap Sequence in Shellsort

Data Structures and Algorithms 2021-12-22 v1 Combinatorics

Abstract

Experiments are conducted to improve Tokuda (1992) gap sequence in Shellsort into γ\gamma-sequences, and the best result is the gap sequence in which the kk-th increment hkh_k is given by \begin{align} h_k=\left\lceil \frac{\gamma^k-1}{\gamma-1} \right\rceil \end{align} , where γ=2.243609061420001...\gamma=2.243609061420001... and kN1k\in\mathbb{N}_1. The first few increments of the gap sequence are \begin{align} 1,\, 4,\, 9,\, 20,\, 45,\, 102,\, 230,\, 516,\,1158,\,2599,\,5831,\,13082,\,29351,\,65853,\, 147748,\,331490,\,743735,\, ...\end{align}It empirically yields less numbers of comparison on average than Tokuda (1992) gap sequence. In the procedure of search, it reveals the potential existence of a new type of fractal.

Cite

@article{arxiv.2112.11112,
  title  = {Empirically Improved Tokuda Gap Sequence in Shellsort},
  author = {Ying Wai Lee},
  journal= {arXiv preprint arXiv:2112.11112},
  year   = {2021}
}
R2 v1 2026-06-24T08:25:58.230Z