Analyzing variants of Shellsort

  • Authors:
  • Bronislava Brejová

  • Affiliations:
  • Univ. of Waterloo, Waterloo, On, Canada

  • Venue:
  • Information Processing Letters
  • Year:
  • 2001

Quantified Score

Hi-index 0.89

Visualization

Abstract

We consider two variants of Shellsort --- Dobosiewicz sort and Shaker sort. Not much is known about the running time of these algorithms. We prove that the worst-case time of Shaker sort is O(n3/2log3n) for certain sequences of increments and the average-case time for both variants is &Ohgr;(n2/cp) where p is the number of increments and c = 2 for Dobosiewicz sort and c = 4 for Shaker sort. In our proofs we adapt techniques and results from analysis of Shellsort.