Papers
Topics
Authors
Recent
Search
2000 character limit reached

Complete Reversible 2-Head Finite Automata

Updated 6 July 2026
  • Complete reversible 2-head finite automata are deterministic devices that process input from both ends while ensuring unique reversible computations and complete input traversal.
  • They impose strict conditions on determinism, completeness, and reversibility, which defines a hierarchy and limits their power compared to general reversible 2-head models.
  • The automata exhibit closure under reversal and complementation, effectively characterizing languages such as palindromes and specific linear sets.

Searching arXiv for the specified paper and related metadata. Complete reversible 2-head finite automata are deterministic 2-head finite automata that process an input word from both ends and perform reversible computation, so that both forward and backward computation are unique. In the formulation studied by Nagy and Yasin, completeness requires that any input can be fully read by the automaton, and reversibility requires backward determinism; the resulting family of accepted languages, denoted $2CrevLIN$, is strictly weaker than the classes accepted by 1-limited reversible, reversible, and deterministic 2-head automata. The broader reversible 2-head model can accept some characteristic linear languages, such as the language of palindromes, but it does not cover all regular languages (Nagy et al., 21 Jul 2025).

1. Formal definition and acceptance semantics

Let Σ\Sigma be a finite input alphabet and let $\,\⊢,\⊣$ be left and end markers not in Σ\Sigma. A complete reversible two-head finite automaton is a tuple

A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),

where QQ is a finite set of states, q0Qq_0\in Q is the initial state, FQF\subseteq Q is the set of accepting states, and

$\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$

If the automaton is in state qq and the two heads scan Σ\Sigma0, then

Σ\Sigma1

means that the control changes to Σ\Sigma2, head Σ\Sigma3 moves one step in direction Σ\Sigma4, and head Σ\Sigma5 moves one step in direction Σ\Sigma6.

Three conditions are imposed. Determinism requires that for every Σ\Sigma7 and every pair Σ\Sigma8, the transition is unique. Completeness requires that, as long as at least one unread input symbol remains under one of the heads, exactly one transition is specified. Equivalently, for every

Σ\Sigma9

there is exactly one $\,\⊢,\⊣$0. Reversibility requires injectivity of the global transition relation on configurations. The local form of this condition is that if

$\,\⊢,\⊣$1

and

$\,\⊢,\⊣$2

then necessarily

$\,\⊢,\⊣$3

This local injectivity ensures that every node in the global configuration graph has at most one predecessor (Nagy et al., 21 Jul 2025).

Acceptance is defined by head meeting. The accepted language is

$\,\⊢,\⊣$4

The emphasis on meeting configurations distinguishes the model from one-way reversible automata and ties acceptance directly to complete traversal of the marked input.

2. Completeness, 1-limitedness, and state classification

Completeness forces the machine to continue until the input has been fully read. Intuitively, one head or the other must keep moving until no unread symbol remains. The 1-limited reversible variant imposes a stronger local condition: in each computation step exactly one input letter is being processed, that is, only one of the heads can read a letter. In equivalent operational terms, in every transition exactly one head moves and the other stays put (Nagy et al., 21 Jul 2025).

For complete reversible machines, the paper states that any transition in which both heads move simultaneously would violate completeness together with reversibility. A direct consequence is that every complete reversible 2-head automaton is automatically 1-limited. This is a structural restriction rather than a matter of implementation style, and it is one reason that completeness lowers expressive power relative to general reversible 2-head automata.

The 1-limited reversible model is also described through a classification of states based on two pieces of information: which head was used to enter the state, and which head is allowed to move out of the state. This produces up to seven non-empty classes. For a complete reversible automaton, the same seven classes suffice, because every state must allow some move by completeness and must be re-enterable from exactly one head-move by reversibility. This state-based view makes explicit how reversibility constrains the local flow of control.

3. Expressive power and proper hierarchy

The paper introduces four language families associated with two-head machines:

Notation Meaning
$\,\⊢,\⊣$5 languages of deterministic 2-head automata
$\,\⊢,\⊣$6 languages of reversible, but not necessarily complete, 2-head automata
$\,\⊢,\⊣$7 languages of 1-limited reversible 2-head automata
$\,\⊢,\⊣$8 languages of complete reversible 2-head automata

These families satisfy the strict inclusion chain

$\,\⊢,\⊣$9

The hierarchy shows that reversibility already reduces the power of deterministic 2-head automata, and that 1-limitedness and completeness each impose further proper restrictions (Nagy et al., 21 Jul 2025).

Several witness languages establish the properness of the inclusions. Some simple regular languages already fall outside Σ\Sigma0: the language

Σ\Sigma1

cannot be accepted by any reversible 2-head automaton. This rules out the assumption that reversibility is merely a semantic refinement that leaves regular-language recognition intact.

The separation between Σ\Sigma2 and Σ\Sigma3 is witnessed by the language

Σ\Sigma4

which is accepted by a reversible 2-head automaton, but by no 1-limited reversible device. The separation between Σ\Sigma5 and Σ\Sigma6 is witnessed by

Σ\Sigma7

which is accepted by a 1-limited reversible 2-head automaton, but by no complete reversible 2-head automaton. In the broader setting, reversible 2-head automata are also capable of accepting some characteristic linear languages, for example the language of palindromes.

4. Closure properties and comparison with left-deterministic linear grammars

All four classes,

Σ\Sigma8

are closed under reversal. Operationally, reversal is obtained by swapping the two heads in every transition. This closure is natural for a model whose computation is defined symmetrically with respect to the two ends of the input (Nagy et al., 21 Jul 2025).

Complete reversible machines are additionally closed under complementation. If

Σ\Sigma9

is complete and reversible, then

A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),0

accepts exactly

A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),1

This complement construction depends on completeness: any input can be fully read, so toggling the final-state set yields the complementary language without introducing undefined behavior.

The paper also compares these automaton families with classes generated by left deterministic linear grammars. Left-deterministic linear languages form a proper subclass of A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),2. At the same time, LDLL and A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),3 are incomparable: some left-deterministic linear languages are not reversible-2-head, and some reversible-2-head languages are not left-deterministic. This comparison places complete reversible 2-head automata within a broader landscape of linear-language formalisms rather than treating them as an isolated automaton variant.

5. Illustrative complete reversible automaton

An explicit toy example is given over A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),4. The automaton accepts all words in A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),5. Its idea is to scan the entire input left-to-right with head A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),6 only, then scan it right-to-left with head A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),7 only, and finally halt in an accepting state when the two heads meet. The state set is

A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),8

with A=(Q,Σ,q0,F,δ),A=(Q,\Sigma,q_0,F,\delta),9 initial and QQ0. Both states are reachable, and only QQ1 is accepting (Nagy et al., 21 Jul 2025).

The transition description is divided into phases. In state QQ2, phase QQ3 moves head QQ4 to the right until it scans QQ5: QQ6 for every QQ7 and every QQ8. Once head QQ9 sees the right endmarker q0Qq_0\in Q0, the machine switches to phase q0Qq_0\in Q1 by moving head q0Qq_0\in Q2: q0Qq_0\in Q3 Then head q0Qq_0\in Q4 moves left until it sees q0Qq_0\in Q5: q0Qq_0\in Q6 for every q0Qq_0\in Q7 and q0Qq_0\in Q8. When head q0Qq_0\in Q9 reaches the left endmarker, the automaton enters the accepting state: FQF\subseteq Q0

The exposition states three properties of this automaton. It is complete, because at every configuration except the final “both heads at FQF\subseteq Q1” configuration exactly one transition is defined. It is reversible, because locally the mapping

FQF\subseteq Q2

is one-to-one. It accepts FQF\subseteq Q3, because regardless of input length, head FQF\subseteq Q4 first moves all the way right, then head FQF\subseteq Q5 moves all the way left, and the machine accepts.

A sample run on input “ab” is given explicitly:

  • start at FQF\subseteq Q6;
  • FQF\subseteq Q7, so head FQF\subseteq Q8 moves to FQF\subseteq Q9;
  • $\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$0, so head $\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$1 moves to $\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$2;
  • $\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$3, so head $\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$4 moves to $\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$5;
  • $\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$6, so head $\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$7 moves to $\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$8;
  • $\delta:Q\times(\Sigma\cup\{\⊢,\⊣\})^2\longrightarrow Q\times\{L,R\}^2.$9, so head qq0 moves to qq1;
  • qq2, so head qq3 moves to qq4;
  • qq5, and the input is accepted.

The example is intentionally small, but it exhibits the defining features of the model: deterministic progress, full reading of the input, one-step invertibility, and acceptance at a head-meeting configuration.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Complete Reversible 2-Head Finite Automata.