Optimization Perspectives on Shellsort

01/01/2023
by   Oscar Skean, et al.
0

Shellsort is a sorting method that is attractive due to its simplicity, yet it takes effort to analyze its efficiency. The heart of the algorithm is the gap sequence chosen a priori and used during sorting. The selection of this gap sequence affects the efficiency of Shellsort, and thus drives both its theoretical and experimental analysis. We contribute to Shellsort by identifying efficient gap sequences based on new parameterized functions. Specifically, a parameter grid-search identifies optimal parameters for different input sizes for sorting by observing minimal overhead in three categories: number of comparisons, number of exchanges, and running time. We report that our method finds sequences that outperform state-of-the-art gap sequences concerning the number of comparisons for chosen small array sizes. Additionally, our function-based sequences outperform the running time of the Tokuda sequence for chosen large array sizes. However, no substantial improvements were observed when minimizing the number of exchanges.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/26/2018

QuickMergesort: Practically Efficient Constant-Factor Optimal Sorting

We consider the fundamental problem of internally sorting a sequence of ...
research
12/04/2017

The Saukas-Song Selection Algorithm and Coarse Grained Parallel Sorting

We analyze the running time of the Saukas-Song algorithm for selection o...
research
12/21/2021

Empirically Improved Tokuda Gap Sequence in Shellsort

Experiments are conducted to improve Tokuda (1992) gap sequence in Shell...
research
11/03/2018

QuickXsort - A Fast Sorting Scheme in Theory and Practice

QuickXsort is a highly efficient in-place sequential sorting scheme that...
research
12/01/2020

Huskysort

Much of the copious literature on the subject of sorting has concentrate...
research
12/21/2021

Optimal Gap Sequences in Shellsort for n≤16 Elements

Optimal gap sequences in Shellsort, defined as gap sequences having the ...
research
05/10/2018

Nearly-Optimal Mergesorts: Fast, Practical Sorting Methods That Optimally Adapt to Existing Runs

We present two stable mergesort variants, "peeksort" and "powersort", th...

Please sign up or login with your details

Forgot password? Click here to reset