We show an interesting connection between two-way deterministic finite automata with monotonic counters and quadratic Diophantine equations. The automaton M operates on inputs of the form a1i1...anin for some fixed n and distinct symbols a1,...,an, where i1,...,in are nonnegative integers. We consider the following reachability problem: given a machine M, a state q, and a Presburger relation E over counter values, is there (i1,...,in) such that M, when started in its initial state on the left end of the input a1i1...anin with all counters initially zero, reaches some configuration where the state is q and the counter values satisfy E? In particular, we look at the case when the relation E is an equality relation, i.e., a conjunction of relations of the form Ci = Cj. We show that this case and variations of it are equivalent to the solvability of some special classes of systems of quadratic Diophantine equations. We also study the nondeterministic version of two-way finite automata augmented with monotonic counters with respect to the reachability problem. Finally, we introduce a technique which uses decidability and undecidability results to show "separation" between language classes.
[1]
Eitan M. Gurari,et al.
The Complexity of Decision Problems for Finite-Turn Multicounter Machines
,
1981,
J. Comput. Syst. Sci..
[2]
Two-way counter machines and Diophantine equations
,
1981,
22nd Annual Symposium on Foundations of Computer Science (sfcs 1981).
[3]
Tao Jiang,et al.
New Decidability Results Concerning Two-Way Counter Machines
,
1995,
SIAM J. Comput..
[4]
L. Lipshitz.
The Diophantine problem for addition and divisibility
,
1978
.
[5]
Oscar H. Ibarra,et al.
Reversal-Bounded Multicounter Machines and Their Decision Problems
,
1978,
JACM.
[6]
M. Minsky.
Recursive Unsolvability of Post's Problem of "Tag" and other Topics in Theory of Turing Machines
,
1961
.
[7]
S. Ginsburg,et al.
Semigroups, Presburger formulas, and languages.
,
1966
.
[8]
Oscar H. Ibarra,et al.
On the Emptiness Problem for Two-Way NFA with One Reversal-Bounded Counter
,
2002,
ISAAC.