首页    期刊浏览 2024年12月02日 星期一
登录注册

文章基本信息

  • 标题:Computing the Longest Common Prefix of a Context-free Language in Polynomial Time
  • 作者:Michael Luttenberger ; Raphaela Palenta ; Helmut Seidl
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2018
  • 卷号:96
  • 页码:48:1-48:13
  • DOI:10.4230/LIPIcs.STACS.2018.48
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:We present two structural results concerning the longest common prefixes of non-empty languages. First, we show that the longest common prefix of the language generated by a context-free grammar of size N equals the longest common prefix of the same grammar where the heights of the derivation trees are bounded by 4N. Second, we show that each non-empty language L has a representative subset of at most three elements which behaves like L w.r.t. the longest common prefix as well as w.r.t. longest common prefixes of L after unions or concatenations with arbitrary other languages. From that, we conclude that the longest common prefix, and thus the longest common suffix, of a context-free language can be computed in polynomial time.
  • 关键词:longest common prefix; context-free languages; combinatorics on words
Loading...
联系我们|关于我们|网站声明
国家哲学社会科学文献中心版权所有