Probabilistic Algorithms for Deciding Equivalence of Straight-Line Programs
- 1 January 1983
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 30 (1) , 217-228
- https://doi.org/10.1145/322358.322373
Abstract
Let Q be any algebraic structure and ~the set of all total programs over Q using the instruction set {z ,,-- 1, z ,,- x + y, z ,,-- x - y, z ~ x * y, z ~-- x/y}. (A program is total if no division by zero occurs during any computation ) Let the equivalence problem for ~ be the problem of deciding for two given programs in ~whether or not they compute the same funcuon,The following results are proved: (1) If Q is an inftmte field (e.g, the rauonal numbers or the complex numbers), then the equwalence problem for ~ is probabilistlcally decidable in polynomml,time. The result also holds for programs with no dwlslon instructions and Q an infimte integral domain (e.g., the integers). (2) If Q is a finite field, or if Q is a fimte set of integers of cardmahty _>2, then the equivalence problem is NP-hard. The case when,the field Q is finite but its cardinality is a funcuon of the size of the instance to theKeywords
This publication has 4 references indexed in Scilit:
- Probabilistic algorithms and straight-line programs for some rank decision problemsInformation Processing Letters, 1981
- Fast Probabilistic Algorithms for Verification of Polynomial IdentitiesJournal of the ACM, 1980
- Equivalence of free boolean graphs can be decided probabilistically in polynomial timeInformation Processing Letters, 1980
- On the parallel evaluation of multivariate polynomialsPublished by Association for Computing Machinery (ACM) ,1978