arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1302.6336cs.LOcs.DS
收藏

多项式重写的线性压缩模式匹配(扩展摘要)

Linear Compressed Pattern Matching for Polynomial Rewriting (Extended Abstract)

Manfred Schmidt-Schauss

摘要:

本文是一个扩展的抽象分析的长期重写的重写规则中的条款,以及长期重写压缩的单例树文法(STG)。这种形式的压缩比节点共享或将项表示为dag更一般,因为部分树(上下文)也可以在压缩中共享。在第一部分中,高效,但复杂的算法检测适用性的重写规则下STG压缩构造和分析。第二部分将这些结果应用于项重写序列。子匹配的主要结果是,找到一个左线性规则的redex可以在多项式时间STG压缩下执行。重写和(单位置或并行)重写步骤的主要含义是:(i)在STG压缩下,n个重写步骤可以在非确定性多项式时间内执行。(ii)在STG压缩下,对于左线性重写规则,可以在多项式时间内执行n个重写步骤的序列,以及(iii)对于压缩重写规则,其中左手侧或者是DAG压缩的,或者是地面和STG压缩的,以及STG压缩的目标项,可以在多项式时间内执行n个重写步骤。

英文摘要:

This paper is an extended abstract of an analysis of term rewriting where the terms in the rewrite rules as well as the term to be rewritten are compressed by a singleton tree grammar (STG). This form of compression is more general than node sharing or representing terms as dags since also partial trees (contexts) can be shared in the compression. In the first part efficient but complex algorithms for detecting applicability of a rewrite rule under STG-compression are constructed and analyzed. The second part applies these results to term rewriting sequences. The main result for submatching is that finding a redex of a left-linear rule can be performed in polynomial time under STG-compression. The main implications for rewriting and (single-position or parallel) rewriting steps are: (i) under STG-compression, n rewriting steps can be performed in nondeterministic polynomial time. (ii) under STG-compression and for left-linear rewrite rules a sequence of n rewriting steps can be performed in polynomial time, and (iii) for compressed rewrite rules where the left hand sides are either DAG-compressed or ground and STG-compressed, and an STG-compressed target term, n rewriting steps can be performed in polynomial time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑