arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.01414cs.DSmath.COstat.CO
收藏

计数小排列模式

Counting Small Permutation Patterns

Chaim Even-Zohar, Calvin Leng

摘要:

xy平面中的n个通用点的样本定义了一个排列,该排列将它们沿着两个轴的秩相关联。k点的每个子集类似地定义了一个模式,该模式出现在该排列中。在许多领域,包括非参数统计中,大排列中小模式的出现次数都会增加。因此,希望比直接的~O(n^k)时间算法更有效地计数它们。这项工作提出了新的算法计数模式。我们发现,所有的模式的顺序2和3,以及8个模式的顺序4,可以在近线性时间计数。为此,我们开发了一个代数框架,称为角树公式。我们的方法概括了现有的方法,并允许系统地研究其范围。使用角树的机制,我们找到了23个独立的4阶模式的线性组合,可以在时间~O(n)内计算。我们还描述了一个算法,该算法计算剩余的4-模式之一,因此所有的4-模式,在时间~O(n^(3/2))。作为实际应用,我们提供了Yanagimoto(1970),Bergsma和Dassios(2010)统计量的近似线性时间计算。这个统计量产生了X和Y独立性的Hoeffding检验的自然和强一致的变体,给定如上所述的随机样本。这改进了迄今为止最有效的~O(n^2)算法。

英文摘要:

A sample of n generic points in the xy-plane defines a permutation that relates their ranks along the two axes. Every subset of k points similarly defines a pattern, which occurs in that permutation. The number of occurrences of small patterns in a large permutation arises in many areas, including nonparametric statistics. It is therefore desirable to count them more efficiently than the straightforward ~O(n^k) time algorithm. This work proposes new algorithms for counting patterns. We show that all patterns of order 2 and 3, as well as eight patterns of order 4, can be counted in nearly linear time. To that end, we develop an algebraic framework that we call corner tree formulas. Our approach generalizes the existing methods and allows a systematic study of their scope. Using the machinery of corner trees, we find twenty-three independent linear combinations of order-4 patterns, that can be computed in time ~O(n). We also describe an algorithm that counts one of the remaining 4-patterns, and hence all 4-patterns, in time ~O(n^(3/2)). As a practical application, we provide a nearly linear time computation of a statistic by Yanagimoto (1970), Bergsma and Dassios (2010). This statistic yields a natural and strongly consistent variant of Hoeffding's test for independence of X and Y, given a random sample as above. This improves upon the so far most efficient ~O(n^2) algorithm.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑