A class of orders with linear? time sorting algorithm

Laurent Lyaudet
9/4/2018
cs.CCmath.CO

Official code: LLyaudet/TSODLULS (1 star, C, LGPL-3.0, last commit 2023-12-31).

Abstract

In this article, we give a precise mathematical meaning to `linear? time' that matches experimental behaviour of the algorithm. The sorting algorithm is not our own, it is a variant of radix sort with counting sort as a subroutine.

Show full abstract

The true result of this article is an efficient universality result for lexicographic order, or more generally for some linear extensions of the partial order `Next': `if current items are equal, compare next items'. We define new classes of orders: (Finite width) Tree Structured Orders. We show that an instance of a finite width tree structured order can be converted in linear time and space to an instance of lexicographic order. The constants implied by the `nextification' algorithm are small (around 3 for real world orders). The class of finite width tree structured orders contains finite orders ({0, 1}, int32, int64, ..., float, double, ...), and orders constructed from them on a tree structure. In particular, unbounded integers, strings with arbitrary collation, and all orders used for sorting SQL queries are finite width tree structured orders.

View on arXivView PDF

Code Implementations(1)

LLyaudet/TSODLULSOfficial100%
LGPL-3.0

Tree Structured Orders Definition Language, Universal Lexicographic Sort

12C, PHPJul 28, 20182 years agoLGPL-3.0

Similar Papers

Cite this paper

@article{lyaudet2018class,
  title  = {A class of orders with linear? time sorting algorithm},
  author = {Laurent Lyaudet},
  year   = {2018},
  eprint = {1809.00954},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1809.00954}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1809.00954.svg)](https://codeofpaper.com/paper/1809.00954)

Discussion