On the Average Case of MergeInsertion

05/23/2019
by   Florian Stober, et al.
0

MergeInsertion, also known as the Ford-Johnson algorithm, is a sorting algorithm which, up to today, for many input sizes achieves the best known upper bound on the number of comparisons. Indeed, it gets extremely close to the information-theoretic lower bound. While the worst-case behavior is well understood, only little is known about the average case. This work takes a closer look at the average case behavior. In particular, we establish an upper bound of n n - 1.4005n + o(n) comparisons. We also give an exact description of the probability distribution of the length of the chain a given element is inserted into and use it to approximate the average number of comparisons numerically. Moreover, we compute the exact average number of comparisons for n up to 148. Furthermore, we experimentally explore the impact of different decision trees for binary insertion. To conclude, we conduct experiments showing that a slightly different insertion order leads to a better average case and we compare the algorithm to the recent combination with (1,2)-Insertionsort by Iwama and Teruyama.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/24/2011

Worst-Case Upper Bound for (1, 2)-QSAT

The rigorous theoretical analysis of the algorithm for a subclass of QSA...
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
07/23/2022

Average-Case to (shifted) Worst-Case Reduction for the Trace Reconstruction Problem

The insertion-deletion channel takes as input a binary string x ∈{0, 1}^...
research
04/26/2018

QuickMergesort: Practically Efficient Constant-Factor Optimal Sorting

We consider the fundamental problem of internally sorting a sequence of ...
research
05/08/2018

A Simple and Efficient Strategy for the Coin Weighing Problem with a Spring Scale

This paper considers a generalized version of the coin weighing problem ...
research
01/18/2019

An information theoretic model for summarization, and some basic results

A basic information theoretic model for summarization is formulated. Her...
research
02/01/2023

Agility and Target Distribution in the Dynamic Stochastic Traveling Salesman Problem

An important variant of the classic Traveling Salesman Problem (TSP) is ...

Please sign up or login with your details

Forgot password? Click here to reset