使用多维树计数排列模式
Counting Permutation Patterns with Multidimensional Trees
AI总结:
本文提出 pattern-trees 及其求值框架,解决排列中所有长度为 k 的模式计数问题,给出 k=6、7 的近二次时间算法和 k=5 的近 $n^{7/4}$ 时间算法,并指出 k=8 的维数障碍。
摘要:
我们研究已被充分探讨的模式计数问题:给定排列 $π\in \mathbb{S}_n$ 和整数 $k > 1$,统计 $π$ 中每个模式 $τ\in \mathbb{S}_k$ 的序同构出现次数。我们的首个结果是针对 $k=6$ 和 $k=7$ 的 $\widetilde{\mathcal{O}}(n^2)$ 时间算法。其证明在很大程度上依赖于我们引入的一类新图,称为 pattern-trees(模式树)。每棵这样的树对应于 $\mathbb{S}_k$ 中排列的一个整数线性组合,并与偏序集的线性扩张相关联。我们为这些组合设计了一种求值算法,并将其应用于一族线性无关的树。对于 $k=8$,我们展示了一个障碍:先前那族树所张成的子空间维数恰好为 $|\mathbb{S}_8| - 1$,比所需维数少 1。我们的第二个结果是针对 $k=5$ 的 $\widetilde{\mathcal{O}}(n^{7/4})$ 时间算法。该算法扩展了 pattern-trees 框架,在某些情况下加速了对它们的求值。证明的一个关键组成部分是引入 pair-rectangle-trees,这是一种用于优势计数的数据结构。
英文摘要:
We consider the well-studied pattern counting problem: given a permutation $π\in \mathbb{S}_n$ and an integer $k > 1$, count the number of order-isomorphic occurrences of every pattern $τ\in \mathbb{S}_k$ in $π$. Our first result is an $\widetilde{\mathcal{O}}(n^2)$-time algorithm for $k=6$ and $k=7$. The proof relies heavily on a new family of graphs that we introduce, called pattern-trees. Every such tree corresponds to an integer linear combination of permutations in $\mathbb{S}_k$, and is associated with linear extensions of partially ordered sets. We design an evaluation algorithm for these combinations, and apply it to a family of linearly-independent trees. For $k=8$, we show a barrier: the subspace spanned by trees in the previous family has dimension exactly $|\mathbb{S}_8| - 1$, one less than required. Our second result is an $\widetilde{\mathcal{O}}(n^{7/4})$-time algorithm for $k=5$. This algorithm extends the framework of pattern-trees by speeding-up their evaluation in certain cases. A key component of the proof is the introduction of pair-rectangle-trees, a data structure for dominance counting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。