Abstract
We study counting-regular languages—these are languages L for which there is a regular language \(L'\) such that the number of strings of length n in L and \(L'\) are the same for all n. Our main result is that the languages accepted by the class of one-way unambiguous, reversal-bounded pushdown automata (\(\textsf {PDA}\)’s) are counting-regular. This generalizes an old result of Baron and Kuich that such languages have rational generating functions. We show that this result is the best possible in the sense that the claim does not hold for either 2-ambiguous \(\textsf {PDA}\)’s, unambiguous \(\textsf {PDA}\)’s with no reversal-bound, and other generalizations. We provide a number of examples of languages that are (and are not) counting-regular. We study closure properties of the class of context-free languages that are counting-regular. We also show the undecidability of counting-regularity of \(\textsf {PDA}\)’s. The undecidability is shown to hold for even the subclass of 2-ambiguous \(\textsf {PDA}\)’s which make only one reversal on the stack.
The research of O. H. Ibarra was supported, in part, by NSF Grant CCF-1117708. The research of I. McQuillan was supported, in part, by Natural Sciences and Engineering Research Council of Canada Grant 2016-06172.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Baron, G., Kuich, W.: The characterization of nonexpansive grammars by rational power series. Inf. Control 48(2), 109–118 (1981)
Béal, M.P., Perrin, D.: On the generating sequences of regular languages on k symbols. J. ACM 50(6), 955–980 (2003)
Berstel, J.: Sur la densite de langages formels. In: International Colloquium on Automata, Languages and Programming, pp. 345–358 (1972)
Berstel, J., Reutenauer, C.: Rational Series and Their Languages. Springer, New York (1988)
Castiglione, G., Massazza, P.: On a class of languages with holonomic generating functions. Theor. Comput. Sci. 658, 74–84 (2017)
Cordy, B., Salomaa, K.: On the existence of regular approximations. Theor. Comput. Sci. 387(2), 125–135 (2007)
Cui, C., Dang, Z., Fischer, T.R., Ibarra, O.H.: Information rate of some classes of non-regular languages: an automata-theoretic approach. Inf. Comput. 256, 45–61 (2017)
Eisman, G., Ravikumar, B.: On approximating non-regular languages by regular languages. Fundamenta Informaticae 110(1–4), 125–142 (2011)
Eisman, G., Ravikumar, B.: Approximate recognition of non-regular languages by finite automata. In: Proceedings of the Twenty-Eighth Australasian Conference on Computer Science, ACSC 2005, vol. 38, pp. 219–227. Australian Computer Society Inc., Darlinghurst (2005)
Hopcroft, J.E., Ullman, J.D.: Introduction to Automata Theory, Languages, and Computation. Addison-Wesley, Reading (1979)
Ibarra, O.H.: Reversal-bounded multicounter machines and their decision problems. J. ACM 25(1), 116–133 (1978)
Massazza, P.: Holonomic functions and their relation to linearly constrained languages. RAIRO Informatique théorique et. applications 27(2), 149–161 (1993)
Ravikumar, B.: Approximations by regular languages (2017, submitted)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this paper
Cite this paper
Ibarra, O.H., McQuillan, I., Ravikumar, B. (2018). On Counting Functions of Languages. In: Hoshi, M., Seki, S. (eds) Developments in Language Theory. DLT 2018. Lecture Notes in Computer Science(), vol 11088. Springer, Cham. https://doi.org/10.1007/978-3-319-98654-8_35
Download citation
DOI: https://doi.org/10.1007/978-3-319-98654-8_35
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-98653-1
Online ISBN: 978-3-319-98654-8
eBook Packages: Computer ScienceComputer Science (R0)