arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.11291cs.DS
收藏

流中的排列模式

Permutation patterns in streams

Benjamin Aram Berendsohn

AI总结:

本文研究流式输入下排列模式匹配问题的空间复杂度,证明复杂度随模式π不同而变化,并给出单调模式、特定长度3模式及其他模式的具体空间上界与下界。

摘要:

排列模式与模式避免是组合数学和计算机科学中核心且被深入研究的概念。给定两个排列 $τ$ 和 $π$,模式匹配问题(PPM)询问 $τ$ 是否包含 $π$。该问题出现在计算机科学和统计学的多种情境中,并已在精确、参数化、近似、性质测试及其他形式化框架下得到广泛研究。本文研究流式场景下的模式匹配,即输入 $τ$ 被逐元素依次揭示。关于整数流中各种统计量的空间复杂度已有大量工作。我们设置的新颖之处在于输入流是一个排列,这使得可以推断关于未来输入的一些信息。我们的算法关键地利用了这一点,而现有的下界技术变得难以应用。我们证明问题的复杂度随模式 $π$ 的不同而发生剧烈变化。空间需求为:单调模式 $π=12\dots k$ 或 $π=k\dots21$ 时为 $Θ(k\log{n})$;$π\in \{312,132\}$ 时为 $O(\sqrt{n\log{n}})$;$π\in \{231,213\}$ 时为 $O(\sqrt{n}\log n)$;对所有其他 $π$ 为 $\widetildeΘ_π(n)$。若 $τ$ 是任意整数序列(不一定是排列),我们证明除第一种(单调)情形外,所有情形下的复杂度均为 $\widetildeΘ_π(n)$。

英文摘要:

Permutation patterns and pattern avoidance are central, well-studied concepts in combinatorics and computer science. Given two permutations $τ$ and $π$, the pattern matching problem (PPM) asks whether $τ$ contains $π$. This problem arises in various contexts in computer science and statistics and has been studied extensively in exact-, parameterized-, approximate-, property-testing- and other formulations. In this paper, we study pattern matching in a streaming setting, when the input $τ$ is revealed sequentially, one element at a time. There is extensive work on the space complexity of various statistics in streams of integers. The novelty of our setting is that the input stream is a permutation, which allows inferring some information about future inputs. Our algorithms crucially take advantage of this fact, while existing lower bound techniques become difficult to apply. We show that the complexity of the problem changes dramatically depending on the pattern $π$. The space requirement is: $Θ(k\log{n})$ for the monotone patterns $π= 12\dots k$, or $π= k\dots21$, $O(\sqrt{n\log{n}})$ for $π\in \{312,132\}$, $O(\sqrt{n} \log n)$ for $π\in \{231,213\}$, and $\widetildeΘ_π(n)$ for all other $π$. If $τ$ is an arbitrary sequence of integers (not necessary a permutation), we show that the complexity is $\widetildeΘ_π(n)$ in all except the first (monotone) cases.

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

↑