...
首页> 外文期刊>Theory of computing systems >Fast Algorithms for the Shortest Unique Palindromic Substring Problem on Run-Length Encoded Strings
【24h】

Fast Algorithms for the Shortest Unique Palindromic Substring Problem on Run-Length Encoded Strings

机译:运行长度编码字符串最短独特的回文源问题的快速算法

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

For a string S, a palindromic substring S[i..j] is said to be a shortest unique palindromic substring (SUPS) for an interval [s, t] in S, if S[i..j] occurs exactly once in S, the interval [i, j] contains [s, t], and every palindromic substring containing [s,t] which is shorter than S[i..j] occurs at least twice in 5. In this paper, we study the problem of answering SUPS queries on run-length encoded strings.. We show how to preprocess a given run-length encoded string RLEs of size m in O(m) space and O(m log σRLE_s + m-(log m/ log log m)~(1/2) time so that all SUPSs for any subsequent query interval can be answered in O (log m/ log log m)~(1/2)+ α) time, where α is the number of outputs, and σRLE_s is the number of distinct runs of RLE_s Additionaly, we consider a variant of the SUPS problem where a query interval is also given in a run-length encoded form. For this variant of the problem, we present two alternative algorithms with faster queries. The first one answers queries in O (log log m/ log log log m)~(1/2)+α) time and can be built in O (m log σRLE_s + m,(log m j log log m)~(1/2) time, and the second one answers queries in O(log log m + a) time and can be built in O(m log σRLE_s) time. Both of these data structures require O(m) space.
机译:对于字符串S,据说回文族字幕S [i...]是一个最短的独特的回文基板(sups),如果s [i...]在in中,则是s的间隔[s,t] S,间隔[i,j]包含[s,t],并且包含短于s [i...]的每个回文源片段至少在5中发生两次。在本文中,我们研究回答run-length编码字符串上的sups查询的问题..我们展示了如何预处理o(m)空间和o(m logΣrle_s+ m-(log m / log)中的给定运行长度编码串rly log m)〜(1/2)时间,以便在O(log m / log log m)〜(1/2)+α)时间内回答所有后续查询间隔的所有SUPS,其中α是输出的数量,ΣRLE_S是RLE_S辅助的不同运行的数量,我们考虑SUPS问题的变型,其中在运行长度编码的形式中还给出了查询间隔。对于这个问题的这种变体,我们提出了两个具有更快的查询的替代算法。第一个答案在O(日志log m / log log log m)中查询〜(1/2)+α)时间,可以内置在O(m logΣrle_s+ m中,(log mj log log m)〜(1 / 2)时间,第二个答案在O(日志log m + a)时间内查询,并且可以内置在O(m logΣRle_s)时间内。这两个数据结构都需要O(m)空间。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号