<!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>Frequency Pushdown Automata</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ilma¯rs Pužulis</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ru¯sin¸š Freivalds?</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute of Mathematics and Computer Science, University of Latvia</institution>
          ,
          <addr-line>Rain ̧a bulva ̄ris 29, Riga, LV-1459</addr-line>
          ,
          <institution>Latvia Faculty of Computing, University of Latvia Rain ̧a bulva ̄ris 19</institution>
          ,
          <addr-line>Riga, LV-1586</addr-line>
          ,
          <country country="LV">Latvia</country>
        </aff>
      </contrib-group>
      <fpage>148</fpage>
      <lpage>153</lpage>
      <abstract>
        <p>Frequency computation was introduced in [16]. Trakhtenbrot [17] proved the existence of a continuum of functions computable by frequency Turing machines with frequency 12 . In contrast, every function computable by a frequency Turing machine with frequency exceeding 12 is recursive. Essentially similar results for finite automata and other types of machines have been proved in [12] and [1]. We consider frequency pushdown automata. They are specific types of automata because allowing several pushdown stores would add too much computation power but allowing only one pushdown store restricts the computation power.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Answering a problem by Myhill (see McNaughton [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]), Trakhtenbrot proved
in [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] that: 1) if 2m &gt; n then every (m; n)-computable function is recursive,
and 2) if 2m = n, then f can be not recursive. Kinber in [
        <xref ref-type="bibr" rid="ref11 ref12">11, 12</xref>
        ] extended these
results by considering frequency enumeration of sets and proved that the class
of (m; n)-computable sets equals the class of recursive sets if and only if 2m &gt; n.
      </p>
      <p>
        The notion of frequency computation has been extended to other models of
computation. Frequency computation in polynomial time was discussed in full
detail in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. For resource bounded computations, the behavior of frequency
computability is completely different. For example, under any reasonable
resource bound, whenever n0 m0 &gt; n m there exist sets which are (m0;
n0)computable, but not (m; n)-computable. However, scaling down to finite
automata, the analogue of Trakhtenbrot’s result holds again: the class of languages
(m; n)-recognizable by deterministic frequency automata equals the class of
regular languages if and only if 2m &gt; n; conversely, for 2m n, the class of
languages (m; n)-recognizable by deterministic frequency automata is uncountable
for a two-letter alphabet (cf. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]).
      </p>
      <p>
        When restricted to a one-letter alphabet, every (m; n)-recognizable language
is regular (cf. [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] and [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]).
      </p>
      <p>
        Frequency computations became increasingly popular when relations between
frequency computation and computation with a small number of queries was
discovered [
        <xref ref-type="bibr" rid="ref1 ref13 ref14 ref4 ref5 ref7 ref9">1, 4, 5, 7, 9, 13, 14</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Frequency Pushdown Automata</title>
      <p>Let be any finite alphabet, and let be the free monoid generated by .
The binary alphabet B is denoted by B. Every subset L is said to be
a language. The elements of are called strings ; jxj denotes the length of
a string x 2 . By L : ! f0; 1g we denote the characteristic function
of L.</p>
      <p>A deterministic pushdown automaton (PDA) is a 7-tuple M =
(Q; ; ; ; q0; Z; F ) where Q is a finite set of states, is a finite set which
is called the input alphabet, is a finite set which is called the stack alphabet,
q0 2 Q is the start state, Z 2 is the initial stack symbol, and F Q is
the set of accepting states. An element (p; a; A; q; ) 2 is a transition of M .
It has the intended meaning that M , in state p 2 Q, with a 2 [ f"g on the
input and with A 2 as topmost stack symbol, may read a, change the state
to q, pop A, replacing it by pushing 2 . The ( [ f"g) component of the
transition relation is used to formalize that the PDA can either read a letter
from the input, or proceed leaving the input untouched.</p>
      <p>
        For n-frequency pushdown automata we modify the above definition allowing
n input words. However, we need to be aware that for the general case input
words can be of distinct lengths. Our definition closely models the definition of
n-frequency finite automata (see, e.g. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]).
      </p>
      <p>A deterministic n-frequency automaton (n-DFA) is a 7-tuple A =
[Q; ; #; ; q0; ; n], where n 2 N, n 1, Q is a finite set of states, q0 is the
initial state, is a finite alphabet and # is a symbol not in . The mapping
: Q ( [ f#g)n ! Q is the transition function; the function : Q ! Bn is
the type of state which is used for outputs. The type is interpreted as an n-tuple
of answers i: its i-th component records whether the i-th input word read from
the i-th input up to the current moment belongs to the language. We use the
notation (q; (x1#`1 ; : : : ; xn#`n )) to denote the type after reading the inputs
the words (x1#`1 ; : : : ; xn#`n ).</p>
      <p>Next we formally describe the behavior of an n-DFA A. Let n 2 N+, and let
x = (x1; : : : ; xn) 2 ( )n be an input vector. We define jxj = maxfjxij j 1 i
ng, and q x = (q; (x1#`1 ; : : : ; xn#`n )), where : Q (( [ f#g)n) is the
usual extension of on n-tuples of strings, and `i = jxj jxij for all 1 i n.
The output of A is defined to be the type (q0 x).</p>
      <p>A language L is said to be (m; n)-recognized by an n-DFA A if for each
n-tuple (x1; : : : ; xn) 2 ( )n of pairwise distinct strings the tuples (q0 x) and
( L(x1); : : : ; L(xn)) coincide on at least m components. A language L is
called (m; n)-recognizable if there is an n-DFA A that (m; n)-recognizes L.</p>
      <p>To define deterministic n-frequency pushdown automata (with only one
pushdown store) the transition function will be extended for n-tuples : Q n
( [ f"g) ! Q ( [ f"g).</p>
      <p>A deterministic n-frequency pushdown automaton (n-DFPA) is a 9-tuple
A = (Q; ; #; ; ; q0; ; Z; F ), where # 62 and (Q; [ f#g; ; ; q0; ; Z; F ) is
a PDA.</p>
      <p>Let n 2 N+, and let x = (x1; : : : ; xn) 2 ( )n be an n-tuple. We define
jxj = maxfjxij j 1 i ng, and
q x =</p>
      <p>(q; (x1#`1 ; : : : ; xn#`n ));
where `i = jxj jxij for all 1 i n. Then the output of A is defined to be
the type (q0 x). We emphasize that the n-DFPA contains only one pushdown
tape which is used to process all n inputs.</p>
      <p>A language L is said to be (m; n)-recognized by an n-DFPA A if for each
n-tuple (x1; : : : ; xn) 2 ( )n of pairwise distinct strings the tuples (q0 x) and
( L(x1); : : : ; L(xn)) coincide on at least m components. A language L is
called (m; n)-recognizable if there is an n-DFPA A that (m; n)-recognizes L.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Definitions</title>
      <p>A:
By N = f0; 1; 2; : : : g we denote the set of nonnegative integers and B = f0; 1g.
[n] = f1; 2; : : : ; ng. We use jXj to denote the cardinality of a set X.</p>
      <p>Let A N be a set. By cA : N ! B we denote the characteristic function of
cA (x) =
(1; if x 2 A</p>
      <p>0; if x 2= A
We say that a function is recursive if there is an algorithm (Turing machine)
that computes the function. If cA is a total recursive function then we call the
set A recursive.
Definition 1. A set A is (m; n)–computable iff there is a total recursive function
f which assigns to all distinct inputs x1; x2; : : : ; xn a binary vector (y1; y2; : : : ; yn)
such that at least m of the equations cA (x1) = y1; cA (x2) = y2; : : : ; cA (xn) = yn
hold.</p>
      <p>By a structure of a finite set K we call a set of K’s subsets S 2K .</p>
      <p>We assume that the elements of K are ordered under some fixed ordering
: K ! [n] where n = jKj.</p>
      <p>Definition 2. A set A is (S; K)–computable (or computable with a structure
S) iff there is a total recursive function f which assigns to all distinct inputs
x1; x2; : : : ; xn a binary vector (y1; y2; : : : ; yn) such that
9B 2 S 8b 2 B A x (b) = y (b).</p>
      <p>It can be seen that (m; n)–computing is a special case of (S; K)–computing
by taking S to be the set of all subsets of K of size m.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Fano Plane</title>
      <p>In finite geometry, the Fano plane (named after Gino Fano) is the finite projective
plane of order 2, having the smallest possible number of points and lines. This
plane has 7 points and 7 lines with 3 points on every line and 3 lines through
every point. Every two points are on a unique line and every two lines intersect
in a unique point.</p>
      <p>We consider the first example of what we call structured frequency algorithm.
Definition 3. A set A is Fano-computable iff there exists a recursive operator
R : N 7 ! f0; 1g7 such that, for all 7-tuples (x0; x1; ; x6) 2 N 7 of mutually
distinct natural numbers,
[(R(x0) = cA(x0) ^ R(x1) = cA(x1) ^ R(x3) = cA(x3))_
_(R(x1) = cA(x1) ^ R(x2) = cA(x2) ^ R(x4) = cA(x4))_
_(R(x2) = cA(x2) ^ R(x3) = cA(x3) ^ R(x5) = cA(x5))_
_(R(x3) = cA(x3) ^ R(x4) = cA(x4) ^ R(x6) = cA(x6))_
(R(x4) = cA(x4) ^ R(x5) = cA(x5) ^ R(x0) = cA(x0))_
_(R(x5) = cA(x5) ^ R(x6) = cA(x6) ^ R(x1) = cA(x1))_
_(R(x6) = cA(x6) ^ R(x0) = cA(x0) ^ R(x2) = cA(x2))]
where R(xi) denotes the i-th component of R(x0; x1;
; x6).</p>
      <p>
        Theorem 1. (K.Balodis,J.Iraids, R.Freivalds [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]) A set A is Fano-computable
iff it is recursive.
      </p>
    </sec>
    <sec id="sec-5">
      <title>Results</title>
      <p>Now consider the language M = fw2wrev j w 2 B g which is clearly (1;
1)recognizable by a 2-DFPA.</p>
      <p>
        Theorem 2. (C.Calude, R.Freivalds, F.Stephan [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ])
The language M = fw2wrev j w 2 B g is (1; 1)-recognizable, but not (2;
2)recognizable by a 2-DFPA.
      </p>
      <p>Theorem 2 can be strengthened as follows:
Theorem 3. The language M = fw2wrev j w 2 B g is (1; 1)-recognizable but
for all n it is not (n; n)-recognizable by a 2-DFPA.</p>
      <p>Theorem 4. If a set A is Fano-computable by a 7–DFPA, then it is computable
by a 1–DFPA.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Austinat</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Diekert</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hertrampf</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Petersen</surname>
          </string-name>
          , H.:
          <article-title>Regular frequency computations</article-title>
          .
          <source>In Theoretical Computer Science</source>
          , vol.
          <volume>330</volume>
          , No.
          <issue>1</issue>
          , pp.
          <fpage>15</fpage>
          -
          <lpage>20</lpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Barzdin</surname>
            ,
            <given-names>J. M.</given-names>
          </string-name>
          :
          <article-title>On a class of Turing machines (Minsky machines)</article-title>
          .
          <source>In Algebra i Logika</source>
          , vol.
          <volume>1</volume>
          , No.
          <issue>6</issue>
          , pp.
          <fpage>42</fpage>
          -
          <lpage>51</lpage>
          (
          <year>1962</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Balodis</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Iraids</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Freivalds</surname>
          </string-name>
          , R.:
          <article-title>Structured Frequency Algorithms</article-title>
          . Unpublished manuscript (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Balodis</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kucevalovs</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Freivalds</surname>
          </string-name>
          , R.:
          <source>Frequency Prediction of Functions. In Lecture Notes in Computer Science</source>
          , vol.
          <volume>7119</volume>
          , pp.
          <fpage>76</fpage>
          -
          <lpage>83</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Beigel</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gasarch</surname>
            ,
            <given-names>W.I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kinber</surname>
            ,
            <given-names>E.B.</given-names>
          </string-name>
          :
          <article-title>Frequency computation and bounded queries</article-title>
          .
          <source>In Theoretical Computer Science</source>
          , vol.
          <volume>163</volume>
          , No.
          <issue>1</issue>
          /2, pp.
          <fpage>177</fpage>
          -
          <lpage>192</lpage>
          (
          <year>1996</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Calude</surname>
            ,
            <given-names>C.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Freivalds</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stephan</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Deterministic Frequency Pushdown Automata</article-title>
          .
          <article-title>Unpublished manuscript (</article-title>
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Degtev</surname>
            ,
            <given-names>A.N.:</given-names>
          </string-name>
          <article-title>On (m,n)-computable sets</article-title>
          . In: Moldavanskij,
          <string-name>
            <surname>D.I</surname>
          </string-name>
          . (ed.)
          <source>Algebraic Systems. Ivanovo Gos. Universitet</source>
          , pp.
          <fpage>88</fpage>
          -
          <lpage>99</lpage>
          (
          <year>1981</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Freivalds</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zeugmann</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pogosyan</surname>
            ,
            <given-names>G.R.</given-names>
          </string-name>
          :
          <article-title>On the Size Complexity of Deterministic Frequency Automata</article-title>
          .
          <source>In Lecture Notes in Computer Science</source>
          , vol.
          <volume>7810</volume>
          , pp.
          <fpage>287</fpage>
          -
          <lpage>298</lpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Harizanova</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kummer</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Owings</surname>
          </string-name>
          , J.:
          <article-title>Frequency computations and the cardinality theorem</article-title>
          .
          <source>In The Journal of Symbolic Logic</source>
          , vol.
          <volume>57</volume>
          , No.
          <issue>2</issue>
          , pp.
          <fpage>682</fpage>
          -
          <lpage>687</lpage>
          (
          <year>1992</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Hinrichs</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wechsung</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>Time bounded frequency computations</article-title>
          .
          <source>In Information and Computation</source>
          , vol.
          <volume>139</volume>
          , pp.
          <fpage>234</fpage>
          -
          <lpage>257</lpage>
          (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Kinber</surname>
            ,
            <given-names>E.B.</given-names>
          </string-name>
          :
          <article-title>Frequency calculations of general recursive predicates and frequency enumeration of sets</article-title>
          .
          <source>In Soviet Mathematics Doklady</source>
          , vol.
          <volume>13</volume>
          , pp.
          <fpage>873</fpage>
          -
          <lpage>876</lpage>
          (
          <year>1972</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Kinber</surname>
            ,
            <given-names>E.B.</given-names>
          </string-name>
          :
          <article-title>Frequency computations in finite automata</article-title>
          .
          <source>Kibernetika (Russian)</source>
          ,
          <source>No. 2</source>
          , pp.
          <fpage>7</fpage>
          -
          <lpage>15</lpage>
          ,
          <year>1976</year>
          ; English translation in Cybernetics 12,
          <fpage>179</fpage>
          -
          <lpage>187</lpage>
          (
          <year>1976</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Kinber</surname>
            ,
            <given-names>E.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Smith</surname>
            ,
            <given-names>C.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Velauthapillai</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wiehagen</surname>
          </string-name>
          , R.:
          <article-title>On Learning Multiple Concepts in Parallel</article-title>
          .
          <source>In Journal of Computer and System Sciences</source>
          , vol.
          <volume>50</volume>
          , No.
          <issue>1</issue>
          , pp.
          <fpage>41</fpage>
          -
          <lpage>52</lpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Kummer</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stephan</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Recursion Theoretic Properties of Frequency Computation and Bounded Queries</article-title>
          .
          <source>In Information and Computation</source>
          , vol.
          <volume>120</volume>
          , No.
          <issue>1</issue>
          , pp.
          <fpage>59</fpage>
          -
          <lpage>77</lpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>McNaughton</surname>
            ,
            <given-names>R.:</given-names>
          </string-name>
          <article-title>The theory of automata, a survey</article-title>
          .
          <source>In Advances in Computers</source>
          , vol.
          <volume>2</volume>
          , pp.
          <fpage>379</fpage>
          -
          <lpage>421</lpage>
          (
          <year>1961</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Rose</surname>
            ,
            <given-names>G.F.</given-names>
          </string-name>
          :
          <article-title>An extended notion of computability</article-title>
          .
          <source>In Abstracts of International Congress for Logic, Methodology and Philosophy of Science</source>
          , p.
          <volume>14</volume>
          (
          <year>1960</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Trakhtenbrot</surname>
            ,
            <given-names>B.A.</given-names>
          </string-name>
          :
          <article-title>On the frequency computation of functions</article-title>
          .
          <source>In Algebra i Logika (Russian)</source>
          ,
          <source>vol. 2</source>
          , pp.
          <fpage>25</fpage>
          -
          <lpage>32</lpage>
          (
          <year>1964</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>