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

最长公共属性保持子串的研究

On Longest Common Property Preserved Substring Queries

Kazuki Kai, Yuto Nakashima, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda, Tomasz Kociumaka

摘要:

我们重新讨论了~Ayad等人引入的最长公共属性保持子串查询问题(SPIRE 2018,arXiv 2018)。我们考虑一个广义的和统一的在线设置,其中我们给出了一组$X$的$k$字符串的总长度$n$,可以预处理,以便,给定一个查询字符串$y$和一个正整数$k'\leq k$,我们可以确定最长的子串的$y$,满足一些特定的属性,并共同至少$k'$字符串在$X$。Ayad等人考虑了在线设置中最长的无平方子串和离线设置中最长的周期和回文子串。在本文中,我们给出了有效的解决方案,在在线设置为找到最长的公共平方,周期,回文,和林登子串。更准确地说,我们表明,$X$可以在$O(n)$时间导致$O(n)$大小的数据结构,回答查询在$O(|y|\logσ)$时间和$O(1)$工作空间,其中$σ$是字母表的大小,和共同的子串必须是一个正方形,一个周期子串,回文,或林登字。

英文摘要:

We revisit the problem of longest common property preserving substring queries introduced by~Ayad et al. (SPIRE 2018, arXiv 2018). We consider a generalized and unified on-line setting, where we are given a set $X$ of $k$ strings of total length $n$ that can be pre-processed so that, given a query string $y$ and a positive integer $k'\leq k$, we can determine the longest substring of $y$ that satisfies some specific property and is common to at least $k'$ strings in $X$. Ayad et al. considered the longest square-free substring in an on-line setting and the longest periodic and palindromic substring in an off-line setting. In this paper, we give efficient solutions in the on-line setting for finding the longest common square, periodic, palindromic, and Lyndon substrings. More precisely, we show that $X$ can be pre-processed in $O(n)$ time resulting in a data structure of $O(n)$ size that answers queries in $O(|y|\logσ)$ time and $O(1)$ working space, where $σ$ is the size of the alphabet, and the common substring must be a square, a periodic substring, a palindrome, or a Lyndon word.

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

↑