...
首页> 外文期刊>Mathematical structures in computer science >Linear pattern matching of compressed terms and polynomial rewriting
【24h】

Linear pattern matching of compressed terms and polynomial rewriting

机译:压缩项的线性模式匹配和多项式重写

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

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

       

摘要

We consider term rewriting under sharing in the form of compression by singleton tree grammars (STG), which is more general than the term dags. Algorithms for the subtasks of rewriting are analysed: finding a redex for rewriting by locating a position for a match, performing a rewrite step by constructing the compressed result and executing a sequence of rewrite steps. The first main result is that locating a match of a linear term s in another term t can be performed in polynomial time if s, t are both STG-compressed. This generalizes results on matching of STG-compressed terms, matching of straight-line-programcompressed strings with character-variables, where every variable occurs at most once, and on fully compressed matching of strings. Also, for the case where s is directed-acyclic-graph (DAG)-compressed, it is shown that submatching can be performed in polynomial time. The general case of compressed submatching can be computed in non-deterministic polynomial time, and an algorithm is described that may be exponential in the worst case, its complexity is nO(k), where k is the number of variables with double occurrences in s and n is the size of the input. The second main result is that in case there is an oracle for the redex position, a sequence of m parallel or single-step rewriting steps under STG-compression can be performed in polynomial time. This generalizes results on DAG-compressed rewriting sequences. Combining these results implies that for an STG-compressed term rewrite system with left-linear rules, m parallel or single-step term rewrite steps can be performed in polynomial time in the input size n and m.
机译:我们考虑使用单例树语法(STG)压缩形式的共享下的术语重写,它比术语dags更通用。分析了重写子任务的算法:通过找到匹配位置找到要重写的redex,通过构造压缩结果执行重写步骤并执行一系列重写步骤。第一个主要结果是,如果s,t均经过STG压缩,则可以在多项式时间内执行将线性项s的匹配项与另一项t进行匹配的操作。这可以概括出STG压缩项的匹配,直线编程压缩的字符串与字符变量的匹配(每个变量最多出现一次)以及字符串的完全压缩匹配的结果。另外,对于s是有向无环图(DAG)压缩的情况,示出了可以在多项式时间内进行子匹配。压缩子匹配的一般情况可以在不确定的多项式时间内计算,并且描述了一种在最坏情况下可能是指数的算法,其复杂度为nO(k),其中k是s中两次出现的变量的数量n是输入的大小。第二个主要结果是,在redex位置存在预言的情况下,可以在多项式时间内执行STG压缩下m个并行或单步重写步骤的序列。这可以将DAG压缩重写序列的结果概括化。组合这些结果意味着,对于具有左线性规则的STG压缩项重写系统,可以在多项式时间内以输入大小n和m执行m个并行或单步项重写步骤。

著录项

  • 来源
    《Mathematical structures in computer science》 |2018年第8期|1415-1450|共36页
  • 作者

    MANFRED SCHMIDT-SCHAUß;

  • 作者单位

    Institut f¨ur Informatik, Fachbereich Informatik und Mathematik, Johann Wolfgang Goethe-Universit¨at, Postfach 11 19 32, D-60054 Frankfurt, Germany;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号