Abstract
In this paper we introduce a variant of alternating pushdown automata, synchronized alternating pushdown automata, which accept the same class of languages as those generated by conjunctive grammars.





Similar content being viewed by others
Notes
Semi-extended regular expressions contain an explicit operator for intersection.
We call two models equivalent if they recognize/generate the same class of languages.
One-turn PDA are a sub-family of pushdown automata, where in each computation the stack height switches only once from non-decreasing to non-increasing. That is, once a transition replaces the top symbol of the stack with \(\epsilon \), all subsequent transitions may write at most one character.
The languages accepted, respectively, derived, by these two models properly include the boolean closure of deterministic context-free languages.
This type of formalization is standard in the field of formal verification, see [13], say.
This is similar to the concept of a transition from a universal state in the standard formalization of alternating automata, as all branches must accept.
Alternatively, one can extend the definition of \(A\) with a set of accepting states \(F \subseteq Q\), and define collapsing and acceptance by accepting states, similarly to the classical definition. It can readily be seen that such an extension results in an equivalent model of computation.
We omit the state components of both \(A_G\) and \(\delta \).
If \(X_j \in \Sigma \), then \(w_j = X_j\).
References
Aho, A.V., Ullman, J.D.: The Theory of Parsing, Translation, and Compiling, Volume I Parsing. Prentice-Hall, Englewood Cliffs (1972)
Aizikowitz, T., Kaminski, M.: Conjunctive grammars and alternating pushdown automata. In: Hodges, W., de Queiroz, R. (Eds.) The 15th Workshop on Logic, Language, Information and Computation—WoLLIC’2008, Volume 5110 of Lecture Notes in Artificial Intelligence, pp. 30–41. Springer, Berlin/Heidelberg (2008)
Aizikowitz, T., Kaminski, M.: Linear conjunctive grammars and one-turn synchronized alternating pushdown automata. In: de Groote, P., Egg, M., Kallmeyer, L. (Eds.) Formal Grammar, 14th International Conference—FG 2009, Volume 5591 of Lecture Notes in Artificial Intelligence, pp. 1–16. Springer, Berlin/Heidelberg (2011)
Aizikowitz, T., Kaminski, M.: \(LR(0)\) conjunctive grammars and deterministic synchronized alternating pushdown automata. In: Kulikov, A.S., Vereshchagin, N.K. (Eds.) The 6th International Computer Science Symposium in Russia—CSR 2011, Volume 6651 of Lecture Notes in Computer Science, pp. 345–358. Springer, Berlin/Heidelberg (2011)
Alur, R., Madhusudan, P.: Visibly pushdown languages. In: Proceedings of the Thirty-Sixth Annual ACM Symposium on Theory of Computing, STOC ’04, pp. 202–211. ACM (2004)
Chandra, A.K., Kozen, D.C., Stockmeyer, L.J.: Alternation. J. ACM 28(1), 114–133 (1981)
Culik, K., II, Gruska, J., Salomaa, A.: Systolic trellis automata, I and II. Int. J. Comput. Math. 15 and 16, 195–212 and 3–22 (1984)
Ginsburg, S., Spanier, E.H.: Finite-turn pushdown automata. SIAM J. Control 4(3), 429–453 (1966)
Hopcroft, J.E., Ullman, J.D.: Introduction to Automata Theory, Languages and Computation. Addison-Wesley, Reading (1979)
Jez, A.: Conjunctive grammars generate non-regular unary languages. Int. J. Found. Comput. Sci. 19, 597–615 (2008)
Jez, A., Okhotin, A.: Conjunctive grammars over a unary alphabet: undecidability and unbounded growth. Theory Comput. Syst. 46, 27–58 (2010)
Knuth, D.E.: On the translation of languages from left to right. Inf. Control 8, 607–639 (1965)
Kupferman, O., Vardi, M.Y.: Weak alternating automata are not that weak. ACM Trans. Comput. Logic 2, 408–429 (2001)
Kupferman, O., Zuhovitzky, Sh: An improved algorithm for the membership problem for extended regular expressions. In: Diks, K., Rytter, W. (Eds.) Mathematical Foundations of Computer Science, Volume 2420 of Lecture Notes in Computer Science, pp. 446–458. Springer, Berlin/Heidelberg (2002)
Ladner, R.E., Lipton, R.J., Stockmeyer, L.J.: Alternating pushdown and stack automata. SIAM J. Comput. 13(1), 135–155 (1984)
Lehtinen, T., Okhotin, A.: Boolean grammars and GSM mappings. Int. J. Found. Comput. Sci. 21, 799–815 (2010)
Masaru, T.: Efficient Parsing for Natural Language: A Fast Algorithm for Practical Systems. Kluwer, Norwell (1985)
Okhotin, A.: Conjunctive grammars. J. Autom. Lang. Comb. 6(4), 519–535 (2001)
Okhotin, A.: LR parsing for conjunctive grammars. Grammars 5(2), 21–40 (2002)
Okhotin, A.: Conjunctive Langauges are Closed Under Inverse Homomorphism. Technical Report 2003/468, School of Computing, Queens University (2003)
Okhotin, A.: Efficient automaton-based recognition for linear conjunctive languages. Int. J. Found. Comput. Sci. 14(6), 1103–1116 (2003)
Okhotin, A.: A recognition and parsing algorithm for arbitrary conjunctive grammars. Theor. Comput. Sci. 302, 81–124 (2003)
Okhotin, A.: On the equivalence of linear conjunctive grammars and trellis automata. RAIRO Theor. Inform. Appl. 38(1), 69–88 (2004)
Okhotin, A., Reitwießner, C.: Conjunctive grammars with restricted disjunction. Theor. Comput. Sci. 411, 2559–2571 (2010)
Wotschke, D.: Nondeterminism and boolean operations in PDA’s. J. Comput. Syst. Sci. 16(3), 456–461 (1978)
Yamamoto, H.: An automata-based recognition algorithm for semi-extended regular expressions. In: Nielsen, M., Rovan, B. (Eds.) Mathematical Foundations of Computer Science—MFCS 2000, 25th International Symposium, Volume 1893 of Lecture Notes in Computer Science, pp. 699–708. Springer, Berlin/Heidelberg (2000)
Acknowledgments
The authors are grateful to Nissim Francez for his remarks on the first draft of this paper. The work of Michael Kaminski was supported by the fund for promotion of research at the Technion.
Author information
Authors and Affiliations
Corresponding author
Appendix: Proofs of Lemmas 23 and
Appendix: Proofs of Lemmas 23 and
1.1 Proof of Lemma 23
The proof is by induction on the length \(k\) of the derivation
Basis: \(k = 0\). That is,
Then \(x = \epsilon \) and \([q_1,X_1,q_2] \cdots [q_m,X_m,p] = [q,X,p]\). Trivially,
Induction Step: Assume that the implication holds for all derivations of the length at most \(k, k \ge 1\), and let
That is,
where
for some \(\sigma \in \Sigma \cup \{\epsilon \}\) and \(q_1^\prime ,\ldots ,q_{\ell +1}^\prime \in Q\).
It follows from the first step of derivation (21) that
Thus, by the definition of \(P\),
Let \(h\) be the maximal number such that in the derivation
no rule is applied to \([q_{\ell + 1 - h}^\prime ,Y_{\ell + 1 - h},q_{\ell + 2 - h}^\prime ]\). Then
and
Since the derivation (25) is leftmost, there are \(y_1,y_2,\ldots ,y_{\ell - h} \in \Sigma ^*\) such that
and
By the “only if” part of [Equivalence (5.3), p. 117], it follows from (27) that
It follows from (24) that \(q_{m + 1 - h} = q_{\ell + 1 - h}^\prime \). Thus, (28) is also
and, by the induction hypothesis,
Now, combining (22), (23), (26), (29), and (30) we obtain
Since, by (24), \(Y_{\ell +1- h} \cdots Y_\ell = X_{m +1- h} \cdots X_m\), the proof is complete.
1.2 Proof of Lemma 24
The proof is by induction on the length \(k\) of the computation
Basis: \(k = 0\). That is,
Then \(x = \epsilon \) and \(X_1 X_2 \cdots X_m = X\). Trivially,
Induction Step: Assume that the implication holds for all computations of length at most \(k, k \ge 1\), and let
That is,
where
for some \(\sigma \in \Sigma \cup \{\epsilon \}\) and
Let \(h\) be the maximal number such that in the computation
the stack height is never less than \(h\). Then \(Y_{\ell + 2 - h}\) is never exposed as the top symbol, implying
Thus, there are \(y^\prime ,y^{\prime \prime } \in \Sigma ^*\), \(q^{\prime \prime } \in Q\), and \(Y \in \Gamma \) such that
and
It follows from (35) that there are \(y_1, y_2, \ldots , y_{\ell + 1 - h} \in \Sigma ^*\) and there are,
\(q_1^\prime ,q_2^\prime ,\ldots ,q_{\ell + 1 -h}^{\prime },q\in Q\) such that
and
Therefore, by the “if” part of [Equivalence (5.3), p. 117],
and, by the induction hypothesis, for all \(q_{m + 2 - h} \in Q\),
Also, by (36) and the induction hypothesis, if \(h \le m,\) or , by the “if” part of [Equivalence (5.3), p.117], if \(h=m+1,\) for all \(q_2,q_3,\dots ,q_{m + 1 - h} \in Q\),
Finally, by the definition of \(G_A\), it follows from (32) that
Thus, by (33),
as well, and, combining the latter rule with (38), (39), (40), (37), (34), and (31), we obtain
Rights and permissions
About this article
Cite this article
Aizikowitz, T., Kaminski, M. Conjunctive grammars and alternating pushdown automata. Acta Informatica 50, 175–197 (2013). https://doi.org/10.1007/s00236-013-0177-3
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00236-013-0177-3