Abstract
We study the problem of testing whether a context-free language is included in a fixed set L 0, where L 0 is the language of words reducing to the empty word in the monoid defined by a complete string rewrite system. We prove that, if the monoid is cancellative, then our inclusion problem is polynomially reducible to the problem of testing equivalence of straight-line programs in the same monoid. As an application, we obtain a polynomial time algorithm for testing if a context-free language is included in a Dyck language (the best previous algorithm for this problem was doubly exponential).
Partially supported by Project M.I.U.R. PRIN 2007–2009: Mathematical aspects and forthcoming applications of automata and formal languages.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Berstel, J., Boasson, L.: Formal properties of XML grammars and languages. Acta Inform. 38(9), 649–671 (2002)
Book, R.V.: Homogeneous Thue systems and the Church-Rosser property. Discrete Math. 48(2-3), 137–145 (1984)
Cochet, Y.: Church-Rosser congruences on free semigroups. In: Algebraic theory of semigroups (Proc. Sixth Algebraic Conf., Szeged, 1976). Colloq. Math. Soc. János Bolyai, vol. 20, pp. 51–60. North-Holland, Amsterdam (1979)
Dershowitz, N., Jouannaud, J.-P.: Rewrite systems. In: Handbook of theoretical computer science, vol. B, pp. 243–320. Elsevier, Amsterdam (1990)
Farach, M., Thorup, M.: String matching in Lempel-Ziv compressed strings. Algorithmica 20(4), 388–404 (1998)
Greibach, S.A., Friedman, E.P.: Superdeterministic PDAs: a subcase with a decidable inclusion problem. J. Assoc. Comput. Mach. 27(4), 675–700 (1980)
Hopcroft, J.E.: On the equivalence and containment problems for context-free languages. Math. Systems Theory 3, 119–124 (1969)
Knuth, D.E.: A characterization of parenthesis languages. Inform. Control 11(3), 269–289 (1967)
Lifshits, Y.: Processing compressed texts: A tractability border. In: Ma, B., Zhang, K. (eds.) CPM 2007. LNCS, vol. 4580, pp. 228–240. Springer, Heidelberg (2007)
Lohrey, M.: Word problems for 2-homogeneous monoids and symmetric logspace. In: Sgall, J., Pultr, A., Kolman, P. (eds.) MFCS 2001. LNCS, vol. 2136, pp. 500–511. Springer, Heidelberg (2001)
Lohrey, M.: Word problems and membership problems on compressed words. SIAM J. Comput. 35(5), 1210–1240 (2006)
Miyazaki, M., Shinohara, A., Takeda, M.: An improved pattern matching algorithm for strings in terms of straight-line programs. J. Discrete Algorithms (Oxf.) 1(1), 187–204 (2000)
Plandowski, W.: Testing equivalence of morphisms on context-free languages. In: van Leeuwen, J. (ed.) ESA 1994. LNCS, vol. 855, pp. 460–470. Springer, Heidelberg (1994)
Rytter, W.: Algorithms on compressed strings and arrays. In: Bartosek, M., Tel, G., Pavelka, J. (eds.) SOFSEM 1999. LNCS, vol. 1725, pp. 48–65. Springer, Heidelberg (1999)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2009 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Bertoni, A., Choffrut, C., Radicioni, R. (2009). The Inclusion Problem of Context-Free Languages: Some Tractable Cases. In: Diekert, V., Nowotka, D. (eds) Developments in Language Theory. DLT 2009. Lecture Notes in Computer Science, vol 5583. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-02737-6_8
Download citation
DOI: https://doi.org/10.1007/978-3-642-02737-6_8
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-02736-9
Online ISBN: 978-3-642-02737-6
eBook Packages: Computer ScienceComputer Science (R0)