【24h】

Online Algorithms on Antipowers and Antiperiods

机译:反权力和反周期的在线算法

获取原文

摘要

The definition of antipower introduced by Fici et al. (ICALP 2016) captures the notion of being the opposite of a power: a sequence of k pairwise distinct blocks of the same length. Recently, Alamro et al. (CPM 2019) defined a string to have an antiperiod if it is a prefix of an antipower, and gave complexity bounds for the offline computation of the minimum antiperiod and all the antiperiods of a word. In this paper, we address the same problems in the online setting. Our solutions rely on new arrays that compactly and incrementally store antiperiods and antipowers as the word grows, obtaining in the process this information for all the word's prefixes. We show how to compute those arrays online in O(n log n) space, O(n log n) time, and o(n~e) delay per character, for any constant e > 0. Running times are worst-case and hold with high probability. We also discuss more space-efficient solutions returning the correct result with high probability, and small data structures to support random access to those arrays.
机译:Fici等人介绍了反权力的定义。 (ICALP 2016)捕获了与幂相反的概念:相同长度的k对成对的不同块的序列。最近,Alamro等人。 (CPM 2019)定义了一个字符串,如果它是反幂的前缀,则具有反周期,并为离线计算单词的最小反周期和所有反周期给出了复杂性界限。在本文中,我们解决了在线设置中的相同问题。我们的解决方案依赖于新数组,该数组可以随着单词的增长而紧凑且增量地存储反周期和反幂,从而在此过程中获取所有单词前缀的信息。对于任何常数e> 0,我们展示了如何在O(n log n)空间,O(n log n)时间和每个字符o(n〜e)延迟下在线计算那些数组。运行时间是最坏的情况,并且举行的可能性很高。我们还将讨论更节省空间的解决方案,以高概率返回正确的结果,以及较小的数据结构以支持对这些数组的随机访问。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号