一类线性序?时间排序算法
A class of orders with linear? time sorting algorithm
摘要:
在这篇文章中,我们给出了一个精确的数学意义,`线性?与算法的实验行为相匹配的时间。排序算法不是我们自己的,它是基数排序的一个变种,计数排序是一个子程序。这篇文章的真正结果是一个有效的普遍性结果的字典顺序,或更一般的一些线性扩展的偏序“下一个”:“如果当前项目是平等的,比较下一个项目”。我们定义了新的订单类别:(有限宽度)树结构订单。我们表明,一个有限宽度的树结构的顺序的实例可以在线性时间和空间转换为字典顺序的实例。“nextification”算法所隐含的常数很小(对于真实世界的订单,约为3)。有限宽度树结构订单类包含有限订单({0,1},int 32,int 64,.,float,double,.),以及在树结构上由它们构造的顺序。特别地,无界整数、具有任意排序规则的字符串以及用于对SQL查询进行排序的所有顺序都是有限宽度的树结构顺序。
英文摘要:
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. 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。