arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2007.04128cs.DS
收藏

用于 Top-$k$ 近邻连续出现的字符串索引

String Indexing for Top-$k$ Close Consecutive Occurrences

Philip Bille, Inge Li Gørtz, Max Rishøj Pedersen, Eva Rotenberg, Teresa Anna Steiner

AI总结:

本文研究了 top-$k$ 近邻连续出现的字符串索引问题,旨在紧凑表示字符串的同时支持高效查询距离最小的连续出现,并提出了三种时空权衡方案及线段相交转化和树递归聚类等新技术。

摘要:

经典的字符串索引问题是将字符串 $S$ 预处理为一种紧凑数据结构,以支持高效的后续模式匹配查询,即给定一个模式串 $P$,报告 $P$ 在 $S$ 中的所有出现。在本文中,我们研究了字符串索引的一个基本且自然的扩展,称为 top-$k$ 近邻连续出现的字符串索引问题(SITCCO)。在此,连续出现是一个数对 $(i,j)$,$i < j$,使得 $P$ 在 $S$ 中的位置 $i$ 和 $j$ 处出现,且在 $i$ 和 $j$ 之间没有 $P$ 的出现,它们的距离定义为 $j-i$。给定模式 $P$ 和参数 $k$,目标是报告 $S$ 中 $P$ 的距离最小的 top-$k$ 连续出现。挑战在于紧凑地表示 $S$,同时支持接近 $P$ 和 $k$ 长度的查询时间。我们针对该问题给出了三种时空权衡。设 $n$ 为 $S$ 的长度,$m$ 为 $P$ 的长度,$ε\in(0,1]$。我们的第一个结果实现了 $O(n\log n)$ 空间和最优的 $O(m+k)$ 查询时间。我们的第二个和第三个结果实现了线性空间,查询时间分别为 $O(m+k^{1+ε})$ 或 $O(m + k \log^{1+ε} n)$。在此过程中,我们开发了几种具有独立意义的技术,包括将问题转化为线段相交问题的新方法,以及一种新的树递归聚类技术。

英文摘要:

The classic string indexing problem is to preprocess a string $S$ into a compact data structure that supports efficient subsequent pattern matching queries, that is, given a pattern string $P$, report all occurrences of $P$ within $S$. In this paper, we study a basic and natural extension of string indexing called the string indexing for top-$k$ close consecutive occurrences problem (SITCCO). Here, a consecutive occurrence is a pair $(i,j)$, $i < j$, such that $P$ occurs at positions $i$ and $j$ in $S$ and there is no occurrence of $P$ between $i$ and $j$, and their distance is defined as $j-i$. Given a pattern $P$ and a parameter $k$, the goal is to report the top-$k$ consecutive occurrences of $P$ in $S$ of minimal distance. The challenge is to compactly represent $S$ while supporting queries in time close to the length of $P$ and $k$. We give three time-space trade-offs for the problem. Let $n$ be the length of $S$, $m$ the length of $P$, and $ε\in(0,1]$. Our first result achieves $O(n\log n)$ space and optimal query time of $O(m+k)$. Our second and third results achieve linear space and query times either $O(m+k^{1+ε})$ or $O(m + k \log^{1+ε} n)$. Along the way, we develop several techniques of independent interest, including a new translation of the problem into a line segment intersection problem and a new recursive clustering technique for trees.

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

↑