English

Generalized Leapfrogging Samplesort: A Class of $O(n \log^2 n)$ Worst-Case Complexity and $O(n \log n)$ Average-Case Complexity Sorting Algorithms

Data Structures and Algorithms 2018-01-30 v1

Abstract

The original Leapfrogging Samplesort operates on a sorted sample of size ss and an unsorted part of size s+1s+1. We generalize this to a sorted sample of size ss and an unsorted part of size (2k1)(s+1)(2^k-1)(s+1), where k=O(1)k = O(1). We present a practical implementation of this class of algorithms and we show that the worst-case complexity is O(nlog2n)O(n \log^2 n) and the average-case complexity is O(nlogn)O(n \log n). Keywords: Samplesort, Quicksort, Leapfrogging Samplesort, sorting, analysis of algorithms.

Keywords

Cite

@article{arxiv.1801.09431,
  title  = {Generalized Leapfrogging Samplesort: A Class of $O(n \log^2 n)$ Worst-Case Complexity and $O(n \log n)$ Average-Case Complexity Sorting Algorithms},
  author = {Eliezer A. Albacea},
  journal= {arXiv preprint arXiv:1801.09431},
  year   = {2018}
}

Comments

7 pages

R2 v1 2026-06-23T00:00:42.361Z