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

文章基本信息

  • 标题:Pattern Matching with Variables: Fast Algorithms and New Hardness Results
  • 本地全文:下载
  • 作者:Henning Fernau ; Florin Manea ; Robert Mercas
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2015
  • 卷号:30
  • 页码:302-315
  • DOI:10.4230/LIPIcs.STACS.2015.302
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:A pattern (i. e., a string of variables and terminals) maps to a word, if this is obtained by uniformly replacing the variables by terminal words; deciding this is NP-complete. We present efficient algorithms\footnote{The computational model we use is the standard unit-cost RAM with logarithmic word size. Also, all logarithms appearing in our time complexity evaluations are in base 2.} that solve this problem for restricted classes of patterns. Furthermore, we show that it is NP-complete to decide, for a given number k and a word w, whether w can be factorised into k distinct factors; this shows that the injective version (i.e., different variables are replaced by different words) of the above matching problem is NP-complete even for very restricted cases.
  • 关键词:combinatorial pattern matching; combinatorics on words; patterns with variables; ${cal NP
国家哲学社会科学文献中心版权所有