<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Minimal and Reduced Reversible Automata?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dipartimento di Informatica</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Università degli Studi di Milano</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Italy</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>lavado</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>pighizzini}@di.unimi.it</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>luca.prigioniero@studenti.unimi.it</string-name>
        </contrib>
      </contrib-group>
      <fpage>234</fpage>
      <lpage>239</lpage>
      <abstract>
        <p>A condition characterizing the class of regular languages which have several nonisomorphic minimal reversible automata is presented. The condition concerns the structure of the minimum automaton accepting the language under consideration. It is also observed that there exist reduced reversible automata which are not minimal, in the sense that all the automata obtained by merging some of their equivalent states are irreversible. Furthermore, it is proved that if the minimum deterministic automaton accepting a reversible language contains a loop in the “irreversible part” then it is always possible to construct infinitely many reduced reversible automata accepting such a language.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        A device is said to be reversible when each configuration has exactly one
predecessor and one successor, thus implying that there is no loss of information
during the computation. On the other hand, as observed by Landauer, logical
irreversibility is associated with physical irreversibility and implies a certain amount
of heat generation [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. In order to avoid such a power dissipation and, hence, to
reduce the overall power consumption of computational devices, the possibility
of realizing reversible machines looks appealing.
      </p>
      <p>
        A lot of work has been done to study reversibility in different computational
devices. Just to give a few examples, in the case of general devices as Turing
machines Bennet proved that each machine can be simulated by a reversible
one [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], while Lange, McKenzie, and Tapp proved that each deterministic machine
can be simulated by a reversible machine which uses the same amount of space [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
As a corollary, in the case of a constant amount of space, this implies that
each regular language is accepted by a reversible two-way deterministic finite
automaton. Actually, this result was already proved by Kondacs and Watrous [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>
        However, in the case of one-way automata, the situation is different.1 In fact,
as shown by Pin, the regular language a∗b∗ cannot be accepted by any reversible
automaton [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. So the class of languages accepted by reversible automata is
a proper subclass of the class of regular languages. Actually, there are some
different notions of reversible automata in literature. In 1982, Angluin
introduced reversible automata in algorithmic learning theory, considering devices
having only one initial and only one final state [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. On the other hand, the
devices considered in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], besides a set of final states, can have multiple initial
states, hence they can take a nondeterministic decision at the beginning of the
computation. An extension which allows one to consider nondeterministic
transitions, without changing the class of accepted languages, has been considered by
Lombardy [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], introducing and investigating quasi reversible automata. Classical
automata, namely automata with a single initial state and a set of final states,
have been considered in the works by Holzer, Jakobi, and Kutrib [
        <xref ref-type="bibr" rid="ref3 ref5 ref6">5,3,6</xref>
        ]. In
particular, in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] the authors obtained a characterization of regular languages which
are accepted by reversible automata. This characterization is given in terms
of the structure of the minimum deterministic automaton. Furthermore, they
provide an algorithm that, in the case the language is acceptable by a reversible
automaton, allows one to transform the minimum automaton into an equivalent
reversible automaton, which in the worst case is exponentially larger than the
given minimum automaton. In spite of that, the resulting automaton is minimal,
namely there are no reversible automata accepting the same language with a
smaller number of states. However, the minimal automaton is not necessarily
unique, in fact there could exist different reversible automata with the same
number of states accepting the same language.
      </p>
      <p>We continue the investigation of minimality in reversible automata and we
will refer to the following notions. Let C be the family of reversible automata
accepting a given language L and A ∈ C:
– The automaton A is reduced in C if every automaton obtained from A by
merging some equivalent states does not belong to C.
– The automaton A is minimal in C if each automaton in C has at least as
many states as A.
– The automaton A is the minimum in C if it is the unique (up to isomorphism)
minimal automaton in C.</p>
      <p>Our first result is a condition that characterizes languages having several different
minimal reversible automata. This condition is on the structure of the transition
graph of the minimum automaton accepting the language under consideration.
As a special case, we show that whenever the “irreversible part” of the minimum
automaton contains a loop, it is possible to construct at least two different
minimal reversible automata.
1 From now on, we will consider only one-way automata. Hence we will omit to specify
“one-way” all the times.</p>
      <p>
        We also observe that there exist reversible automata that are reduced, but
not minimal. Investigating this phenomenon in detail, we were able to find a
language for which there exist arbitrarily large, and hence infinitely many, reduced
reversible automata. Furthermore, we obtained a general construction that allows
to obtain arbitrarily large reversible automata for each language accepted by a
minimum deterministic automaton satisfying the structural condition given in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]
and such that the “irreversible part” contains a loop. We know that this is also
possible in other situations, namely that our condition is not necessary.
      </p>
      <p>Now we introduce a few preliminary notations and notions. A deterministic
automaton (d f a) is a tuple A = (Q, Σ, δ, qI , F ) with the usual meaning. We allow
the transition function δ to be partial and througthout the paper, we assume that
all states are useful, namely they are used to accept some word. This implies that
a d f a does not contain any dead state. We denote by δR the reverse transition
function that associates with each state r ∈ Q and letter a ∈ Σ the set of states
from which r can be reached by reading a, i.e., δR(r, a) = {q ∈ Q | δ(q, a) = r}.
A state r is said to be irreversible when there are at least two transitions on the
same letter entering r, i.e., #δR(r, a) ≥ 2, otherwise r is reversible. A d f a is
said to be reversible (r e v - d f a) when each state is reversible. A language is
reversible when there exists a r e v - d f a accepting it.</p>
      <p>A d f a A can be split in two parts: the reversible part and the irreversible
part. Roughly speaking, the irreversible part consists of all states that can be
reached with a path which starts in an irreversible state, and of all transitions
connecting those states. The reversible part consists of the remaining states
and transitions, namely the states that can be reached from the initial state by
visiting only reversible states, and their outgoing transitions.</p>
      <p>
        The above mentioned algorithm [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] for converting a minimum irreversible
d f a A into an equivalent minimal r e v - d f a A0, if possible, keeps the same
reversible part of A and creates some copies of states and transitions in the
irreversible part. However, different equivalent minimal r e v - d f as might exist.
(See Figure 1).
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Minimal Reversible Automata</title>
      <p>In this section we present a characterization of the languages having several
different minimal reversible automata. From now on, let us fix a reversible language L
and the minimum d f a M = (Q, Σ, δ, qI , F ) accepting it.</p>
      <p>Theorem 1. The following statements are equivalent:
1. There exists a state q ∈ Q in the irreversible part such that δR(q, a) 6= ∅,
δR(q, b) 6= ∅, for two symbols a, b ∈ Σ, with a 6= b.
2. There exist at least two minimal nonisomorphic r e v - d f as accepting L.</p>
      <p>As a consequence of Theorem 1 we have the following characterization of
reversible languages having a unique minimal (hence a minimum) r e v - d f a:</p>
      <p>Corollary 2. There exists a unique (up to isomorphism) minimal r e v - d f a
accepting L if and only if for each state p ∈ Q in the irreversible part, all the
transitions entering in p are on the same symbol.</p>
      <p>
        We proved that when the minimum d f a accepting a reversible language
contains a loop in the irreversible part the condition in Corollary 2 is always
false, hence there exist at least two minimal nonisomorphic r e v - d f as. As a
consequence, considering Corollary 2, we can observe that when a reversible
language has a unique minimal r e v - d f a, all the loops in the minimum d f a
accepting it should be in the reversible part. However, the converse does not hold,
namely there are languages whose minimum d f a does not contain any loop in
the irreversible part, which does not have a unique minimal r e v - d f a. Indeed,
in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] an example with a finite language is presented.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Reduced Reversible Automata</title>
      <p>In this section, we consider reduced r e v - d f as. There exist r e v - d f as which
are reduced but not minimal. Furthermore, there exist reversible languages having
arbitrarly large reduced r e v - d f as and, hence, infinitely many reduced r e v
d f as.</p>
      <p>In Figure 2 a reduced r e v - d f a equivalent to the d f as in Figure 1 is
depicted. If we try to merge two states in the loop, then the loop collapses to
a single state, so producing the minimum d f a, which is irreversible. Actually,
this example can be modified by using a loop of N states: if (and only if) N is
prime, we get a reduced automaton. This is a special case of the construction we
obtained to prove the following:
Theorem 3. If M contains a state q in the irreversible part such that the
language accepted by computations starting from q is infinite, then there exist
infinitely many nonisomorphic reduced r e v - d f as accepting L.</p>
      <p>The condition in Theorem 3 is not necessary. In fact, we found an example
where the minimum d f a does not contain any loop in the irreversible part, but
it is possible to construct infinitely many equivalent reduced r e v - d f as.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Angluin</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Inference of reversible languages</article-title>
          .
          <source>J. ACM</source>
          <volume>29</volume>
          (
          <issue>3</issue>
          ),
          <fpage>741</fpage>
          -
          <lpage>765</lpage>
          (
          <year>1982</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bennett</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Logical reversibility of computation</article-title>
          .
          <source>IBM Journal of Research and Development</source>
          <volume>17</volume>
          (
          <issue>6</issue>
          ),
          <fpage>525</fpage>
          -
          <lpage>532</lpage>
          (
          <year>1973</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Holzer</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jakobi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kutrib</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Minimal reversible deterministic finite automata</article-title>
          .
          <source>In: Potapov, I. (ed.) Developments in Language Theory - 19th International Conference, DLT</source>
          <year>2015</year>
          ,
          <article-title>Liverpool</article-title>
          ,
          <string-name>
            <surname>UK</surname>
          </string-name>
          ,
          <source>July 27-30</source>
          ,
          <year>2015</year>
          ,
          <source>Proceedings. Lecture Notes in Computer Science</source>
          , vol.
          <volume>9168</volume>
          , pp.
          <fpage>276</fpage>
          -
          <lpage>287</lpage>
          . Springer (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Kondacs</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Watrous</surname>
          </string-name>
          , J.:
          <article-title>On the power of quantum finite state automata</article-title>
          .
          <source>In: FOCS</source>
          . pp.
          <fpage>66</fpage>
          -
          <lpage>75</lpage>
          . IEEE Computer Society (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Kutrib</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Aspects of reversibility for classical automata</article-title>
          . In: Calude,
          <string-name>
            <given-names>C.S.</given-names>
            ,
            <surname>Freivalds</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Kazuo</surname>
          </string-name>
          , I. (eds.)
          <article-title>Computing with New Resources - Essays Dedicated to Jozef Gruska on the</article-title>
          <source>Occasion of His 80th Birthday. Lecture Notes in Computer Science</source>
          , vol.
          <volume>8808</volume>
          , pp.
          <fpage>83</fpage>
          -
          <lpage>98</lpage>
          . Springer (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Kutrib</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Reversible and irreversible computations of deterministic finite-state devices</article-title>
          . In: Italiano,
          <string-name>
            <given-names>G.F.</given-names>
            ,
            <surname>Pighizzini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Sannella</surname>
          </string-name>
          ,
          <string-name>
            <surname>D</surname>
          </string-name>
          . (eds.)
          <source>Mathematical Foundations of Computer Science 2015 - 40th International Symposium, MFCS</source>
          <year>2015</year>
          , Milan, Italy,
          <source>August 24-28</source>
          ,
          <year>2015</year>
          , Proceedings,
          <source>Part I. Lecture Notes in Computer Science</source>
          , vol.
          <volume>9234</volume>
          , pp.
          <fpage>38</fpage>
          -
          <lpage>52</lpage>
          . Springer (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Landauer</surname>
          </string-name>
          , R.:
          <article-title>Irreversibility and heat generation in the computing process</article-title>
          .
          <source>IBM Journal of Research and Development</source>
          <volume>5</volume>
          (
          <issue>3</issue>
          ),
          <fpage>183</fpage>
          -
          <lpage>191</lpage>
          (
          <year>1961</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Lange</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McKenzie</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tapp</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Reversible space equals deterministic space</article-title>
          .
          <source>J. Comput. Syst. Sci</source>
          .
          <volume>60</volume>
          (
          <issue>2</issue>
          ),
          <fpage>354</fpage>
          -
          <lpage>367</lpage>
          (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Lombardy</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>On the construction of reversible automata for reversible languages</article-title>
          . In: Widmayer,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Ruiz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.T.</given-names>
            ,
            <surname>Bueno</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.M.</given-names>
            ,
            <surname>Hennessy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Eidenbenz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Conejo</surname>
          </string-name>
          ,
          <string-name>
            <surname>R</surname>
          </string-name>
          . (eds.) Automata,
          <article-title>Languages and Programming, 29th International Colloquium</article-title>
          ,
          <string-name>
            <surname>ICALP</surname>
          </string-name>
          <year>2002</year>
          , Malaga, Spain, July 8-
          <issue>13</issue>
          ,
          <year>2002</year>
          ,
          <source>Proceedings. Lecture Notes in Computer Science</source>
          , vol.
          <volume>2380</volume>
          , pp.
          <fpage>170</fpage>
          -
          <lpage>182</lpage>
          . Springer (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Pin</surname>
          </string-name>
          , J.:
          <article-title>On reversible automata</article-title>
          . In: Simon, I. (ed.)
          <source>LATIN '92, 1st Latin American Symposium on Theoretical Informatics, São Paulo, Brazil, April</source>
          <volume>6</volume>
          -
          <issue>10</issue>
          ,
          <year>1992</year>
          ,
          <source>Proceedings. Lecture Notes in Computer Science</source>
          , vol.
          <volume>583</volume>
          , pp.
          <fpage>401</fpage>
          -
          <lpage>416</lpage>
          . Springer (
          <year>1992</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>