如果存在一个双射将一个字符串的字符映射到另一个字符串的字符,使得两个字符串变得相同,则称两个长度相等的字符串参数化匹配。参数化模式匹配问题是,给定两个字符串$T$和$P$,找出$T$中参数化匹配$P$的子串的出现次数. Diptarama等人[Position Heaps for Parameterized Strings,CPM 2017]提出了一种称为参数化位置堆的索引数据结构,并给出了从左到右的在线构造算法。本文提出了一种从右到左的参数化位置堆的在线构造算法。对于长度为$n$的文本串$T$,在两种分别大小为$σ$和$π$的字母表$Σ$和$Π$上,我们的构造算法在$O(n \log(σ+ π))$时间和$O(n)$空间中运行。我们的从右到左的参数化位置堆支持$O(m \log (σ+ π) + m π+ \mathit{pocc}))$时间的模式匹配查询,其中$m$是查询模式$P$的长度,$\mathit{pocc}$是要报告的出现次数。我们的建设和模式匹配算法是有效的Diptarama等人。的算法。
英文摘要:
Two strings of equal length are said to parameterized match if there is a bijection that maps the characters of one string to those of the other string, so that two strings become identical. The parameterized pattern matching problem is, given two strings $T$ and $P$, to find the occurrences of substrings in $T$ that parameterized match $P$. Diptarama et al. [Position Heaps for Parameterized Strings, CPM 2017] proposed an indexing data structure called parameterized position heaps, and gave a left-to-right online construction algorithm. In this paper, we present a right-to-left online construction algorithm for parameterized position heaps. For a text string $T$ of length $n$ over two kinds of alphabets $Σ$ and $Π$ of respective size $σ$ and $π$, our construction algorithm runs in $O(n \log(σ+ π))$ time with $O(n)$ space. Our right-to-left parameterized position heaps support pattern matching queries in $O(m \log (σ+ π) + m π+ \mathit{pocc}))$ time, where $m$ is the length of a query pattern $P$ and $\mathit{pocc}$ is the number of occurrences to report. Our construction and pattern matching algorithms are as efficient as Diptarama et al.'s algorithms.
我们提出了一个简单的线性时间在线算法来构造字符串的位置堆[Escherichfeucht et al,2011]。我们对位置堆的定义与[Escherichfeucht et al,2011]中提出的定义略有不同,因为它考虑了从左到右排序的后缀。我们的构造基于经典的后缀指针,类似于Ukkonen的后缀树算法[Ukkonen,1995]。使用后缀指针,位置堆可以扩展为允许线性时间字符串匹配算法的扩展位置堆[Escherichfeucht et al,2011]。
Parameterized Quantum Query Complexity of Graph Collision
我们提出了三个新的量子算法的量子查询模型中的\textsc{graph-collision}问题:\begin{itemize} \item an algorithm based on tree decomposition that uses $O\left(\sqrt{n}t^{\sfrac{1}{6}}\right)$ queries where $t$ is the treewidth of the graph; \item an algorithm constructed on a span program that improves a result by Gavinsky and Ito. The algorithm uses $O(\sqrt{n}+\sqrt{α^{**}})$ queries, where $α^{**}(G)$ is a graph parameter defined by \[α^{**}(G):=\min_{VC\text{-- vertex cover of}G}{\max_{\substack{I\subseteq VC\\I\text{-- independent set}}}{\sum_{v\in I}{°{v}}}};\] \item an algorithm for a subclass of circulant graphs t…
University of Copenhagen(哥本哈根大学);Department of Computer Science, University of California Santa Barbara(加州大学圣塔芭芭拉分校计算机科学系);The Institute of Mathematical Sciences, HBNI(HBNI数学科学研究所)