Permutation patterns in streams
Permutation patterns in streams
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 \emph{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 \emph{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.
Benjamin Aram Berendsohn
计算技术、计算机技术
Benjamin Aram Berendsohn.Permutation patterns in streams[EB/OL].(2025-07-15)[2025-07-23].https://arxiv.org/abs/2507.11291.点此复制
评论