首页    期刊浏览 2024年09月01日 星期日
登录注册

文章基本信息

  • 标题:Longest Lyndon Substring After Edit
  • 作者:Yuki Urabe ; Yuto Nakashima ; Shunsuke Inenaga
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2018
  • 卷号:105
  • 页码:19:1-19:10
  • DOI:10.4230/LIPIcs.CPM.2018.19
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:The longest Lyndon substring of a string T is the longest substring of T which is a Lyndon word. LLS(T) denotes the length of the longest Lyndon substring of a string T. In this paper, we consider computing LLS(T') where T' is an edited string formed from T. After O(n) time and space preprocessing, our algorithm returns LLS(T') in O(log n) time for any single character edit. We also consider a version of the problem with block edits, i.e., a substring of T is replaced by a given string of length l. After O(n) time and space preprocessing, our algorithm returns LLS(T') in O(l log sigma + log n) time for any block edit where sigma is the number of distinct characters in T. We can modify our algorithm so as to output all the longest Lyndon substrings of T' for both problems.
  • 关键词:Lyndon word; Lyndon factorization; Lyndon tree; Edit operation
Loading...
联系我们|关于我们|网站声明
国家哲学社会科学文献中心版权所有