We present a quasilinear time algorithm to decide the word problem on a natural algebraic structures we call orthocomplemented bisemilattices, a subtheory of boolean algebra. We use as a base a variation of Hopcroft, Ullman and Aho algorithm for tree isomorphism which we combine with a term rewriting system to decide equivalence of two terms. We prove that the rewriting system is terminating and confluent and hence the existence of a normal form, and that our algorithm is computing it. We also discuss applications and present an effective implementation in Scala.
翻译:我们提出了一个准线性时间算法来决定自然代数结构的词性问题,我们称之为正相混合的双子变体,这是布林代数的子理论。我们用Hopcroft、Ullman和Aho的树型变体算法作为基础,我们结合一个术语重写系统来决定两个术语的等值。我们证明改写系统正在终止和互通,因此存在一种正常的形式,我们的算法也在计算它。我们还在Scala讨论应用程序并展示一个有效的实施。