Counting Small Permutation Patterns

11/04/2019
by   Chaim Even-Zohar, et al.
0

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 another 4-pattern, 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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/01/2020

Counting 4-Patterns in Permutations Is Equivalent to Counting 4-Cycles in Graphs

Permutation σ appears in permutation π if there exists a subsequence of ...
research
08/30/2023

Sorting Signed Permutations by Reversals in Nearly-Linear Time

Given a signed permutation on n elements, we need to sort it with the fe...
research
11/16/2022

A Dichotomy Theorem for Linear Time Homomorphism Orbit Counting in Bounded Degeneracy Graphs

Counting the number of homomorphisms of a pattern graph H in a large inp...
research
03/24/2019

A Higher-Order Kolmogorov-Smirnov Test

We present an extension of the Kolmogorov-Smirnov (KS) two-sample test, ...
research
08/25/2021

Faster Exponential Algorithm for Permutation Pattern Matching

The Permutation Pattern Matching problem asks, given two permutations σ ...
research
09/19/2021

Moments of permutation statistics and central limit theorems

We show that if a permutation statistic can be written as a linear combi...
research
03/16/2021

Combinatorial generation via permutation languages. III. Rectangulations

A generic rectangulation is a partition of a rectangle into finitely man...

Please sign up or login with your details

Forgot password? Click here to reset