This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

11institutetext: Institute of Mathematics, Academy of Sciences of the Czech Republic
Žižkova 22, 616 62 Brno, Czech Republic
11email: masopust@math.cas.cz

A Note on Limited Pushdown Alphabets in Stateless Deterministic Pushdown Automata

Tomáš Masopust
Abstract

Recently, an infinite hierarchy of languages accepted by stateless deterministic pushdown automata has been established based on the number of pushdown symbols. However, the witness language for the nnth level of the hierarchy is over an input alphabet with 2(n1)2(n-1) elements. In this paper, we improve this result by showing that a binary alphabet is sufficient to establish this hierarchy. As a consequence of our construction, we solve the open problem formulated by Meduna et al. Then we extend these results to mm-state realtime deterministic pushdown automata, for all m1m\geq 1. The existence of such a hierarchy for mm-state deterministic pushdown automata is left open.

1 Introduction

Pushdown automata, and especially deterministic pushdown automata, play a central role in many applications of context-free languages. Considering state complexity, it is well-known that any pushdown automaton can be transformed to an equivalent pushdown automaton with a single state. Thus, the hierarchy based on the number of states collapses to only one level. In that case, the sole state is not important and one-state automata are also called stateless in the literature. On the other hand, however, no such transformation is possible for deterministic pushdown automata since it is shown in [7] that the number of states in deterministic pushdown automata establishes an infinite state hierarchy on the family of deterministic context-free languages. The reader is referred to [7] for more details, including binary witness languages.

Recently, Meduna et al. [17] have established an infinite hierarchy of languages on the lowest level of the state hierarchy, on the level of stateless deterministic pushdown automata, based on the number of pushdown symbols. They have shown that there exist languages accepted by stateless deterministic pushdown automata with nn pushdown symbols that cannot be accepted by any stateless deterministic pushdown automaton with n1n-1 pushdown symbols. However, the size of the input alphabet of the witness language for each level of the hierarchy is almost twice bigger than the size of the pushdown alphabet, which is linear with respect to the level of the hierarchy. More specifically, they constructed an infinite sequence of languages LnL_{n}, for all n1n\geq 1, such that the alphabet of the language LnL_{n} is of cardinality 2n2n, and they proved that any stateless deterministic pushdown automaton accepting the language LnL_{n} requires at least n+1n+1 pushdown symbols. Thus, their construction requires a growing alphabet and it was left open whether the hierarchy can be shown with witness languages over a fixed alphabet. In addition, they formulated an open question of what is the role of non-input pushdown symbols in this hierarchy, that is, can a similar infinite hierarchy be established based on the number of non-input pushdown symbols?

In this paper, we improve their result by constructing a sequence of witness languages over a binary alphabet, which is the best possible improvement because any unary language accepted by a stateless deterministic pushdown automaton is a singleton. In other words, languages accepted by deterministic pushdown automata (by empty pushdown) are prefix-free [7]. As an immediate consequence of our construction, we obtain a solution to the open problem. Then we show that a similar idea can be used for realtime pushdown automata to establish infinite hierarchies based on the number of pushdown symbols on each level of the state hierarchy. Again, the witness languages are binary. However, the case of general deterministic pushdown automata is left open.

Stateless automata of many types are of great interest and have widely been investigated in the literature. For instance, stateless multicounter machines have been studied in [2], hierarchies of stateless multicounter 535^{\prime}\to 3^{\prime} Watson-Crick automata have been investigated in [1, 18], multihead finite and pushdown automata have been studied in [4, 9], stateless restarting automata in [11, 12], and stateless automata and their relationship to P systems in [24]. Pushdown store languages, that is, languages consisting of strings occurring on the pushdown along accepting computations of a pushdown automaton, have been studied in [15, 16], including the languages of stateless pushdown automata. Some decision results concerning stateless and deterministic pushdown automata can be found in [5, 22].

2 Preliminaries

In this paper, we assume that the reader is familiar with automata and formal language theory [7, 8, 19]. For a set AA, |A||A| denotes the cardinality of AA, and 2A2^{A} denotes the powerset of AA. An alphabet is a finite nonempty set. For an alphabet VV, VV^{*} represents the free monoid generated by VV, where the unit (the empty string) is denoted by ε\varepsilon.

A pushdown automaton (PDA) is a septuple M=(Q,Σ,Γ,δ,q0,Z0,F)M=(Q,\Sigma,\Gamma,\delta,q_{0},Z_{0},F), where QQ is the finite set of states, Σ\Sigma is the input alphabet, Γ\Gamma is the pushdown alphabet, δ\delta is the transition function from Q×Γ×(Σ{ε})Q\times\Gamma\times(\Sigma\cup\{\varepsilon\}) to the set of finite subsets of Q×ΓQ\times\Gamma^{*}, q0Qq_{0}\in Q is the initial state, Z0ΓZ_{0}\in\Gamma is the initial pushdown symbol, and FQF\subseteq Q is the set of accepting states. A configuration of MM is any element of Q×Γ×ΣQ\times\Gamma^{*}\times\Sigma^{*}. For a configuration (q,γ,σ)(q,\gamma,\sigma), qq denotes the current state of MM, γ\gamma denotes the content of the pushdown (with the top as the rightmost symbol), and σ\sigma denotes the unread part of the input string. The automaton changes the configuration according to the transition function δ\delta. This one-step relation is denoted by \vdash and defined so that (q,γA,aσ)(p,γw,σ)(q,\gamma A,a\sigma)\vdash(p,\gamma w,\sigma) if (p,w)(p,w) is in δ(q,A,a)\delta(q,A,a), where γ\gamma and ww are strings of pushdown symbols, AA is a pushdown symbol, aa is an input symbol or ε\varepsilon, and σ\sigma is a string of input symbols. Let \vdash^{*} denote the reflexive and transitive closure of the relation \vdash. The language accepted by MM (by a final state and empty pushdown) is denoted by L(M)L(M) and defined as L(M)={wΣ(q0,Z0,w)(f,ε,ε) for some fF}L(M)=\{w\in\Sigma^{*}\mid(q_{0},Z_{0},w)\vdash^{*}(f,\varepsilon,\varepsilon)\text{ for some }f\in F\}.

Automaton MM is deterministic (DPDA) if there is no more than one move the automaton can make from any configuration, that is, |δ(q,A,a)|1|\delta(q,A,a)|\leq 1, for any state qq, pushdown symbol AA, and input symbol aa, and if δ(q,A,ε)\delta(q,A,\varepsilon) is defined, that is, δ(q,A,ε)\delta(q,A,\varepsilon)\neq\emptyset, then δ(q,A,a)\delta(q,A,a) is not defined for any input symbol aa.

Automaton MM is realtime (RPDA) if it is deterministic and if no ε\varepsilon-transitions are defined, that is, if δ(q,A,a)\delta(q,A,a) is defined, then aεa\neq\varepsilon.

Automaton MM is stateless (SPDA) if it has only one state, that is, |Q|=1|Q|=1. Moreover, in stateless pushdown automata, we allow an initial pushdown string αΓ+\alpha\in\Gamma^{+} instead of an initial pushdown symbol. Thus, in this case, we simply write M=(Σ,Γ,δ,α)M=(\Sigma,\Gamma,\delta,\alpha). Note that unlike the general case of deterministic pushdown automata, in the case of stateless deterministic pushdown automata, the realtime restriction does not decrease the power of the machine [7].

In what follows, the notation (q,γ)𝑎(p,γ)(q,\gamma)\xrightarrow{a}(p,\gamma^{\prime}), for aa in Σ\Sigma and γ,γ\gamma,\gamma^{\prime} in Γ\Gamma^{*}, denotes the computational step (q,γ,a)(p,γ,ε)(q,\gamma,a)\vdash(p,\gamma^{\prime},\varepsilon), and for a string wΣw\in\Sigma^{*}, the notation (q,γ)𝑤(p,γ)(q,\gamma)\mathrel{\vphantom{\xrightarrow{w}}\smash{\xrightarrow{w}}\vphantom{\to}^{*}}(p,\gamma^{\prime}) denotes the maximal computation (q,γ,w)(p,γ,ε)(q,\gamma,w)\vdash^{*}(p,\gamma^{\prime},\varepsilon), that is, no other ε\varepsilon-transitions are possible from the configuration (p,γ,ε)(p,\gamma^{\prime},\varepsilon). For stateless automata, the state is eliminated from this notation.

We now recall the definition of families of languages accepted by stateless deterministic pushdown automata with nn pushdown symbols.

Definition 1

A stateless deterministic pushdown automaton M=(Σ,Γ,δ,α)M=(\Sigma,\Gamma,\delta,\alpha) is nn-pushdown-alphabet-limited, for n1n\geq 1, if |Γ|n|\Gamma|\leq n. The family nn-SDPDA denotes all languages accepted by an nn-pushdown-alphabet-limited stateless deterministic pushdown automaton. Similarly, the family nn-SRPDA denotes all languages accepted by an nn-pushdown-alphabet-limited stateless realtime pushdown automaton.

3 Main results

Recall that it is known [7] that any language LL accepted by a stateless deterministic pushdown automaton is prefix-free. Thus, if LL contains ε\varepsilon, then L={ε}L=\{\varepsilon\}. It is also known that any stateless deterministic pushdown automaton accepting a language different from {ε}\{\varepsilon\} can be transformed to an equivalent stateless realtime pushdown automaton. To simplify proves, we extend this result by showing that the resulting stateless realtime pushdown automaton does not require any new pushdown symbol.

Theorem 3.1

For any stateless deterministic pushdown automaton with nn pushdown symbols accepting a language L{ε}L\neq\{\varepsilon\}, there exists an equivalent stateless realtime pushdown automaton with no more than nn pushdown symbols.

Proof

Assume that all pushdown symbols appear in an accepting computation. Let X𝜀σX\xrightarrow{\ \varepsilon\ }\sigma be an ε\varepsilon-transition of M=(Σ,Γ,δ,α)M=(\Sigma,\Gamma,\delta,\alpha). If XX appears in σ\sigma, then any computation reaching XX on top of the pushdown is not accepting because XX cannot be eliminated from the pushdown; it is always replaced with σ\sigma containing XX again, which contradicts our assumption. Modify the automaton MM by replacing all occurrences of XX on right-hand sides of transitions with σ\sigma, and by removing X𝜀σX\xrightarrow{\ \varepsilon\ }\sigma from δ\delta and XX from Γ\Gamma. The accepted language is not changed because the only action of XX was to be replaced with σ\sigma, and the resulting automaton has one ε\varepsilon-transition less. Repeating this substitution results in an equivalent stateless realtime pushdown automaton with no more than nn pushdown symbols.

This result can be rewritten as follows.

Corollary 1

For all n1n\geq 1, n-SDPDA=n-SRPDAn\text{-SDPDA}=n\text{-SRPDA}.

In the following subsection, we improve the result presented in [17] by giving binary witness languages and answering the open problem formulated there.

3.1 Binary alphabet

First, note that from the fact that any language accepted by a stateless deterministic pushdown automaton is prefix-free, any such a unary language is of the form ana^{n}, for some n0n\geq 0. Every such language can be accepted by a stateless deterministic pushdown automaton with only one pushdown symbol (equal to the input symbol) starting from the initial string ana^{n} with δ(a,a)=ε\delta(a,a)=\varepsilon. Thus, to establish the infinite hierarchy based on the number of pushdown symbols using only a binary alphabet is the best possible improvement that can be done. To do this, we define the following sequence of languages

L1\displaystyle L_{1} ={ac}, for some c0, and\displaystyle=\{a^{c}\},\text{ for some }c\geq 0\,,\text{ and } (1)
Ln\displaystyle L_{n} ={bka1kn1}, for any n2.\displaystyle=\{b^{k}a\mid 1\leq k\leq n-1\},\text{ for any }n\geq 2\,.

We now prove that for all n1n\geq 1, any stateless deterministic pushdown automaton accepting the language LnL_{n} requires at least nn pushdown symbols. First, we show that nn pushdown symbols is sufficient.

Lemma 1

For any n1n\geq 1, there exists a stateless deterministic pushdown automaton with nn pushdown symbols accepting the language LnL_{n} defined in (1).

Proof

As mentioned above, there exists a stateless deterministic pushdown automaton with one pushdown symbol accepting the language L1L_{1}. Thus, consider the language LnL_{n} for n2n\geq 2. This language is accepted by the stateless pushdown automaton Mn=({a,b},{X0,X1,,Xn1),δ,X0)M_{n}=(\{a,b\},\{X_{0},X_{1},\ldots,X_{n-1}),\delta,X_{0}), where the transition function δ\delta is defined as follows:

  1. 1.

    δ(Xi,b)=Xi+1\delta(X_{i},b)=X_{i+1}, for 0in20\leq i\leq n-2,

  2. 2.

    δ(Xi,a)=ε\delta(X_{i},a)=\varepsilon, for 1in11\leq i\leq n-1.

Symbols X1,X2,,XnX_{1},X_{2},\ldots,X_{n} are used to count the number of bb’s and to restrict this number to n1n-1. Notice that MnM_{n} is deterministic (realtime) and that |Γ|=n|\Gamma|=n.

We next prove that at least nn pushdown symbols are necessary for the language LnL_{n}.

Lemma 2

For any n1n\geq 1, there does not exist a stateless deterministic pushdown automaton accepting the language LnL_{n} defined in (1) with n1n-1 pushdown symbols.

Proof

The case n=1n=1 is trivial and follows from the definition. Thus, consider the case n2n\geq 2. Let Mn=({a,b},Γ,δ,α)M_{n}=(\{a,b\},\Gamma,\delta,\alpha) be a stateless deterministic pushdown automaton accepting the language LnL_{n}. By Theorem 3.1, we can assume that MnM_{n} is realtime. Consider the computations on strings bkab^{k}a for all k=1,2,,n1k=1,2,\ldots,n-1. Then

α𝑏π1X1𝑏π2X2𝑏𝑏πn1Xn1𝑎ε.\alpha\xrightarrow{\ b\ }\pi_{1}X_{1}\xrightarrow{\ b\ }\pi_{2}X_{2}\xrightarrow{\ b\ }\ldots\xrightarrow{\ b\ }\pi_{n-1}X_{n-1}\mathrel{\vphantom{\xrightarrow{\ a\ }}\smash{\xrightarrow{\ a\ }}\vphantom{\to}^{*}}\varepsilon\,.

As symbol aa is accepted from all configurations πkXk\pi_{k}X_{k}, it implies that Xk𝑎εX_{k}\xrightarrow{\ a\ }\varepsilon and πk=ε\pi_{k}=\varepsilon, for all k=1,2,,n1k=1,2,\ldots,n-1, that is,

α𝑏X1𝑏X2𝑏𝑏Xn1𝑎ε.\alpha\xrightarrow{\ b\ }X_{1}\xrightarrow{\ b\ }X_{2}\xrightarrow{\ b\ }\ldots\xrightarrow{\ b\ }X_{n-1}\xrightarrow{\ a\ }\varepsilon\,.

Assume that there exist i<ji<j such that Xi=XjX_{i}=X_{j}. Since Xibn1iaεX_{i}\mathrel{\vphantom{\xrightarrow{\ b^{n-1-i}a\ }}\smash{\xrightarrow{\ b^{n-1-i}a\ }}\vphantom{\to}^{*}}\varepsilon, the automaton accepts the string bj+n1iab^{j+n-1-i}a that does not belong to the language LnL_{n} because n1+(ji)>n1n-1+(j-i)>n-1. Hence, all the pushdown symbols XiX_{i}, for i=1,2,,n1i=1,2,\ldots,n-1, are pairwise different. It remains to show that the automaton needs at least one more pushdown symbol. To do this, consider the form of the initial string α\alpha. If α{X1,X2,,Xn1}+\alpha\in\{X_{1},X_{2},\ldots,X_{n-1}\}^{+}, then αa|α|ε\alpha\mathrel{\vphantom{\xrightarrow{\ a^{|\alpha|}\ }}\smash{\xrightarrow{\ a^{|\alpha|}\ }}\vphantom{\to}^{*}}\varepsilon because Xi𝑎εX_{i}\xrightarrow{\ a\ }\varepsilon, for all i=1,2,,n1i=1,2,\ldots,n-1. Thus, the automaton needs at least nn pushdown symbols.

As a consequence of the previous two lemmas, we have the following result. The strictness of the inclusion has been shown in [17]. We have added binary witness languages.

Theorem 3.2

For each n1n\geq 1, nn-SDPDA (n+1)\subsetneq(n+1)-SDPDA. In addition, the witness languages are binary.

3.2 Non-input pushdown symbols

In [17], the authors formulated a question of whether an infinite hierarchy can be established based on the number of non-input pushdown symbols, that is, whether there exists a similar hierarchy when Definition 1 is modified as follows.

Definition 2

A stateless deterministic pushdown automaton M=(Σ,Γ,δ,α)M=(\Sigma,\Gamma,\delta,\alpha) is an nn-non-input-pushdown-alphabet-limited, for n1n\geq 1, if the number of non-input pushdown symbols is limited by nn, that is, if |Γ||Σ|n|\Gamma|-|\Sigma|\leq n. The family nn-niSDPDA denotes all languages accepted by an nn-non-input-pushdown-alphabet-limited stateless deterministic pushdown automaton.

As an immediate consequence of the previous results, we get the answer to this question.

Theorem 3.3

For each n0n\geq 0, nn-niSDPDA (n+1)\subsetneq(n+1)-niSDPDA.

Proof

We define languages Kn=Ln+2K_{n}=L_{n+2}. Then any stateless deterministic pushdown automaton accepting the language KnK_{n} requires n+2n+2 pushdown symbols. Since the input alphabet is binary, we immediately get |Γ||Σ|=n|\Gamma|-|\Sigma|=n, as required.

4 Generalization to realtime pushdown automata

It is a natural question to ask whether a similar hierarchy can be obtained for the other levels of the state hierarchy. To prove this for realtime pushdown automata, we define the following sequence of languages

Lm,1\displaystyle L_{m,1} ={ac}, for some c0, and\displaystyle=\{a^{c}\},\text{ for some }c\geq 0\,,\text{ and } (2)
Lm,n\displaystyle L_{m,n} ={bka1kmn1}, for any m1 and n2.\displaystyle=\{b^{k}a\mid 1\leq k\leq mn-1\},\text{ for any }m\geq 1\text{ and }n\geq 2\,.

We now prove that for all m,n1m,n\geq 1, any mm-state deterministic pushdown automaton accepting the language Lm,nL_{m,n} requires at least nn pushdown symbols. The sufficiency is shown first.

Lemma 3

For any m,n1m,n\geq 1, there exists an mm-state realtime pushdown automaton with nn pushdown symbols accepting the language Lm,nL_{m,n} defined in (2).

Proof

Consider the language Lm,nL_{m,n} for m1m\geq 1 and n2n\geq 2. This language is accepted by the mm-state deterministic pushdown automaton

Mm,n=({q0,q1,,qm1},{a,b},{X0,X1,,Xn1),δ,q0,X0,{qm1}),M_{m,n}=(\{q_{0},q_{1},\ldots,q_{m-1}\},\{a,b\},\{X_{0},X_{1},\ldots,X_{n-1}),\delta,q_{0},X_{0},\{q_{m-1}\})\,,

where the transition function δ\delta is defined as follows:

  1. 1.

    δ(qj,Xi,b)=(qj,Xi+1)\delta(q_{j},X_{i},b)=(q_{j},X_{i+1}), for 0jm10\leq j\leq m-1 and 0in20\leq i\leq n-2,

  2. 2.

    δ(qj,Xn1,b)=(qj+1,X0)\delta(q_{j},X_{n-1},b)=(q_{j+1},X_{0}), for 0jm20\leq j\leq m-2,

  3. 3.

    δ(q0,Xi,a)=(qm1,ε)\delta(q_{0},X_{i},a)=(q_{m-1},\varepsilon), for 1in11\leq i\leq n-1,

  4. 4.

    δ(qj,Xi,a)=(qm1,ε)\delta(q_{j},X_{i},a)=(q_{m-1},\varepsilon), for 1jm11\leq j\leq m-1 and 0in10\leq i\leq n-1.

Pushdown symbols in combination with states are used to count the number of bb’s and to restrict this number to mn1mn-1. Notice that Mm,nM_{m,n} is realtime and that |Γ|=n|\Gamma|=n.

We now prove that at least nn pushdown symbols are necessary for any mm-state realtime pushdown automaton to accept the language Lm,nL_{m,n}.

Lemma 4

For any m,n1m,n\geq 1, there does not exist any mm-state realtime pushdown automaton accepting the language Lm,nL_{m,n} defined in (2) with n1n-1 pushdown symbols.

Proof

Let m1m\geq 1 be fixed, but arbitrary. The case n=1n=1 is trivial and follows from the definition. Thus, consider the case n2n\geq 2. For the sake of contradiction, assume that there exists an mm-state realtime pushdown automaton Mm,n=({q0,q1,,qm1},{a,b},Γ,δ,M_{m,n}=(\{q_{0},q_{1},\ldots,q_{m-1}\},\{a,b\},\Gamma,\delta, q0,X0,F)q_{0},X_{0},F) with n1n-1 pushdown symbols accepting the language Lm,nL_{m,n}. Consider the computations on strings bkab^{k}a for all k=1,2,,mn1k=1,2,\ldots,mn-1. Then

(q0,X0)\displaystyle(q_{0},X_{0}) 𝑏(q1,π1X1)𝑏(q2,π2X2)𝑏\displaystyle\xrightarrow{\ b\ }(q_{1},\pi_{1}X_{1})\xrightarrow{\ b\ }(q_{2},\pi_{2}X_{2})\xrightarrow{\ b\ }\ldots
\displaystyle\ldots 𝑏(qmn1,πmn1Xmn1)𝑎(qf,ε),\displaystyle\xrightarrow{\ b\ }(q_{mn-1},\pi_{mn-1}X_{mn-1})\mathrel{\vphantom{\xrightarrow{\ a\ }}\smash{\xrightarrow{\ a\ }}\vphantom{\to}^{*}}(q_{f},\varepsilon)\,,

where qfFq_{f}\in F. As symbol aa is accepted from all configurations (qk,πkXk)(q_{k},\pi_{k}X_{k}), it implies that (qk,Xk)𝑎(qfk,ε)(q_{k},X_{k})\xrightarrow{\ a\ }(q_{f_{k}},\varepsilon), for some qfkFq_{f_{k}}\in F, and πk=ε\pi_{k}=\varepsilon, for all k=1,2,,mn1k=1,2,\ldots,mn-1, that is,

(q0,X0)𝑏(q1,X1)𝑏(q2,X2)𝑏𝑏(qmn1,Xmn1)𝑎(qf,ε).(q_{0},X_{0})\xrightarrow{\ b\ }(q_{1},X_{1})\xrightarrow{\ b\ }(q_{2},X_{2})\xrightarrow{\ b\ }\ldots\xrightarrow{\ b\ }(q_{mn-1},X_{mn-1})\xrightarrow{\ a\ }(q_{f},\varepsilon)\,.

As we have mm states and n1n-1 pushdown symbols, there must exist i<ji<j such that (qi,Xi)=(qj,Xj)(q_{i},X_{i})=(q_{j},X_{j}). Since (qi,Xi)bmn1iaε(q_{i},X_{i})\mathrel{\vphantom{\xrightarrow{\ b^{mn-1-i}a\ }}\smash{\xrightarrow{\ b^{mn-1-i}a\ }}\vphantom{\to}^{*}}\varepsilon, the automaton accepts string bj+mn1iab^{j+mn-1-i}a that does not belong to the language Lm,nL_{m,n} because mn1+(ji)>mn1mn-1+(j-i)>mn-1, which is a contradiction. Thus, the automaton needs at least nn pushdown symbols.

We now present definitions of families of languages accepted by mm-state deterministic pushdown automata with nn pushdown symbols.

Definition 3

A pushdown automaton M=(Q,Σ,Γ,δ,q0,Z0,F)M=(Q,\Sigma,\Gamma,\delta,q_{0},Z_{0},F) is nn-pushdown-alphabet-limited, for n1n\geq 1, if |Γ|n|\Gamma|\leq n. The family (m,n)(m,n)-RPDA denotes all languages accepted by an mm-state realtime pushdown automaton with nn pushdown symbols.

Definition 4

A pushdown automaton M=(Q,Σ,Γ,δ,q0,Z0,F)M=(Q,\Sigma,\Gamma,\delta,q_{0},Z_{0},F) is an nn-non-input-pushdown-alphabet-limited, for n1n\geq 1, if |Γ||Σ|n|\Gamma|-|\Sigma|\leq n. The family (m,n)(m,n)-niRPDA denotes all languages accepted by an mm-state realtime pushdown automaton with nn non-input pushdown symbols.

As a consequence of the previous two lemmas, we have the following results.

Theorem 4.1

For each m,n1m,n\geq 1, (m,n)(m,n)-RPDA (m,n+1)\subsetneq(m,n+1)-RPDA. In addition, the witness languages are binary.

Theorem 4.2

For each m1m\geq 1 and n0n\geq 0, (m,n)(m,n)-niRPDA (m,n+1)\subsetneq(m,n+1)-niRPDA.

Proof

We define languages Km,n=Lm,n+2K_{m,n}=L_{m,n+2}. Then any mm-state realtime pushdown automaton accepting the language Km,nK_{m,n} requires n+2n+2 pushdown symbols. Since the input alphabet is binary, we immediately get |Γ||Σ|=n|\Gamma|-|\Sigma|=n, as required.

Finally, note that Theorem 3.1 does not hold for deterministic pushdown automata that are not stateless. The following example shows that there exists a two-state deterministic automaton with two pushdown symbols accepting the language Lm,nL_{m,n}, for all m,n1m,n\geq 1. This implies that to establish a similar infinite hierarchy for deterministic pushdown automata based on the number of states and pushdown symbols over a binary (constant) input alphabet requires more sophisticated approaches.

Example 1

Let m,n1m,n\geq 1 be fixed, but arbitrary. Then the automaton M=({f,q},{a,b},M=(\{f,q\},\{a,b\}, {Z,B},δ,f,Z,{f})\{Z,B\},\delta,f,Z,\{f\}), where δ\delta is defined so that

  1. 1.

    δ(f,Z,b)=(q,Bmn1)\delta(f,Z,b)=(q,B^{mn-1}),

  2. 2.

    δ(q,B,b)=(q,ε)\delta(q,B,b)=(q,\varepsilon),

  3. 3.

    δ(q,B,a)=(f,ε)\delta(q,B,a)=(f,\varepsilon),

  4. 4.

    δ(f,B,ε)=(f,ε)\delta(f,B,\varepsilon)=(f,\varepsilon),

accepts the language Lm,nL_{m,n}. The automaton reads the first input symbol bb, changes its state, and pushes a string of mn1mn-1 symbols BB to the pushdown. Then it compares input symbol bb against BB on the pushdown until it reads symbol aa with BB on the pushdown. In that case, it goes to the other state where it empties the whole pushdown without reading any other input symbol.

5 Conclusion

It is a natural question to ask whether a similar hierarchy can be obtained for deterministic pushdown automata. It is likely that such a hierarchy exists on each level, however, we have not established it in this paper. Can such a hierarchy be established with witness languages over a binary (constant) alphabet?

Languages accepted by stateless deterministic pushdown automata are also called simple languages because they are generated by so-called simple grammars [7]. It was shown in [10] that the equivalence problem for simple grammars is decidable, which is, together with the general result by Sénizergues [20, 21], in contrast to the fact that containment is undecidable even for simple languages as shown in [3]. It is remarkable that the best known algorithm for the equivalence of simple languages works in time O(n6 polylog n)O(n^{6}\text{ polylog }n), where nn is the size of the grammar, see [13]. Hence, simple languages are in some sense the simplest languages for which containment is undecidable. Note that further simplification results in so-called very simple languages, for which the containment was shown decidable in [23], and the algorithm improved and simplified in [14]. Simple languages also play a role in process algebras, see, e.g., [6].

Finally, note that it is unsolvable to decide whether for a context-free language LL there exists an integer nn such that LL is accepted by a stateless deterministic pushdown automaton with a pushdown alphabet of cardinality nn. This follows immediately from the undecidability of the problem whether a context-free language LL can be accepted by a stateless deterministic pushdown automaton, see [7] where this problem is formulated as an exercise. As far as the author knows, it is also an open problem whether there exists an algorithm to compute, for a given deterministic context-free language LL, the minimal nn such that LL belongs to the nnth level of the state hierarchy.

Acknowledgement.

Research supported by the GAČR grant no. P202/11/P028 and by RVO: 67985840.

References

  • [1] O. Eğecioğlu, L. Hegedüs, and B. Nagy. Hierarchies of stateless multicounter 535^{\prime}\to 3^{\prime} Watson-Crick automata languages. Fund. Inform., 110(1-4):111–123, 2011.
  • [2] O. Eğecioğlu and O. H. Ibarra. On stateless multicounter machines. In K. Ambos-Spies, B. Löwe, and W. Merkle, editors, Proc. of CiE 2009, volume 5635 of LNCS, pages 178–187. Springer, Heidelberg, 2009.
  • [3] E. P. Friedman. The inclusion problem for simple languages. Theoret. Comput. Sci., 1:297–316, 1976.
  • [4] P. Frisco and O. H. Ibarra. On stateless multihead finite automata and multihead pushdown automata. In V. Diekert and D. Nowotka, editors, Proc. of DLT 2009, volume 5583 of LNCS, pages 240–251. Springer, Heidelberg, 2009.
  • [5] J. H. Gallier. DPDA’s in ’atomic normal form’ and applications to equivalence problems. Theoret. Comput. Sci., 14(2):155–186, 1981.
  • [6] J. F. Groote and H. Hüttel. Undecidable equivalences for basic process algebra. Inform. and Comput., 115(2):354–371, 1994.
  • [7] M. Harrison. Introduction to Formal Language Theory. Addison-Wesley, Boston, USA, 1978.
  • [8] J. E. Hopcroft and J. D. Ullman. Formal languages and their relation to automata. Addison-Wesley, Boston, USA, 1969.
  • [9] O. H. Ibarra, J. Karhumäki, and A. Okhotin. On stateless multihead automata: Hierarchies and the emptiness problem. In E. S. Laber, C. Bornstein, L. T. Nogueira, and L. Faria, editors, Proc. of LATIN 2008, volume 4957 of LNCS, pages 94–105. Springer, Heidelberg, 2008.
  • [10] A. Korenjak and J. Hopcroft. Simple deterministic languages. In Proc. of SWAT (FOCS), pages 36–46, Berkeley, California, USA, 1966.
  • [11] M. Kutrib, H. Messerschmidt, and F. Otto. On stateless deterministic restarting automata. Acta Inform., 47(7):391–412, 2010.
  • [12] M. Kutrib, H. Messerschmidt, and F. Otto. On stateless two-pushdown automata and restarting automata. Internat. J. Found. Comput. Sci., 21(5):781–798, 2010.
  • [13] S. Lasota and W. Rytter. Faster algorithm for bisimulation equivalence of normed context-free processes. In R. Královič and P. Urzyczyn, editors, Proc. of MFCS 2006, volume 4162 of LNCS, pages 646–657. Springer, Heidelberg, 2006.
  • [14] E. Mäkinen. On the inclusion problem for very simple deterministic pushdown automata. J. Autom. Lang. Comb., 6(3):351–357, 2001.
  • [15] A. Malcher, K. Meckel, C. Mereghetti, and B. Palano. Descriptional complexity of pushdown store languages. In M. Kutrib, N. Moreira, and R. Reis, editors, Proc. of DCFS 2012, volume 7386 of LNCS, pages 209–221. Springer, Heidelberg, 2012.
  • [16] A. Malcher, K. Meckel, C. Mereghetti, and B. Palano. Descriptional complexity of pushdown store languages. IFIG Research Report 1203, Institut für Informatik, Universität Giessen, Germany, 2012.
  • [17] A. Meduna, L. Vrábel, and P. Zemek. An infinite hierarchy of language families resulting from stateless pushdown automata with limited pushdown alphabets. In M. Kutrib, N. Moreira, and R. Reis, editors, Proc. of DCFS 2012, volume 7386 of LNCS, pages 236–243. Springer, Heidelberg, 2012.
  • [18] B. Nagy, L. Hegedüs, and O. Eğecioğlu. Hierarchy results on stateless multicounter 535^{\prime}\to 3^{\prime} Watson-Crick automata. In J. Cabestany, I. Rojas, and G. Joya, editors, Proc. of IWANN 2011, Part I, volume 6691 of LNCS, pages 465–472. Springer, Heidelberg, 2011.
  • [19] A. Salomaa. Formal languages. Academic Press, New York, 1973.
  • [20] G. Sénizergues. T(A)=T(B)? In Proc. of ICALP 1999, volume 1644 of LNCS. Springer, Heidelberg, 1999.
  • [21] G. Sénizergues. L(A)=L(B)? decidability results from complete formal systems. Theoret. Comput. Sci., 251(1-2):1–166, 2001.
  • [22] L. G. Valiant. Decision procedures for families of deterministic pushdown automata. Technical Report CS-RR-001, Department of Computer Science, University of Warwick, Coventry, UK, 1973.
  • [23] M. Wakatsuki and E. Tomita. A fast algorithm for checking the inclusion for very simple deterministic pushdown automata. IEICE Trans. Inform. Sys., E76-D:1224–1233, 1993.
  • [24] L. Yang, Z. Dang, and O. H. Ibarra. On stateless automata and P systems. Internat. J. Found. Comput. Sci., pages 1259–1276, 2008.