Abstract
This work presents an algebraic method, based on rational transductions, to study the sequential and parallel complexity of counting problems for regular and context-free languages. This approach allows us to obtain old and new results on the complexity of ranking and unranking as well as on other problems concerning the number of prefixes, suffixes, subwords, and factors of a word which belongs to a fixed language. Other results concern a suboptimal compression of finitely ambiguous context-free languages, the complexity of the value problem for rational and algebraic formal series in noncommuting variables, and a characterization of regular and Z-algebraic languages by means of ranking functions.
Similar content being viewed by others
References
A. V. Aho, J. E. Hopcroft, and J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading MA, 1974.
A. V. Aho and J. D. Ullman,The Theory of Parsing, Translation and Compiling, Vol. 1, Prentice-Hall, Englewood Cliffs, NJ 1972.
C. Alvarez and B. Jenner, A very hard log-space counting class,Theoret. Comput. Sci. 107 (1993), 3–30.
J. Berstel,Transductions and Context-Free Languages, Teubner, Stuttgart, 1979.
J. Berstel and C. Reutenauer,Rational Series and Their Languages, Springer-Verlag, Berlin, 1988.
A. Bertoni, D. Bruschi, and M. Goldwurm, Ranking and formal power series,Theoret. Comput. Sci. 79 (1991) 25–35.
A. Bertoni, M. Goldwurm, and N. Sabadini, The complexity of computing the number of strings of given length in context-free languages,Theoret. Comput. Sci. 86 (1991), 325–342.
M. Bogni, Algoritmi per il problema del valore di serie formali a variabili non commutative, Degree Thesis in Mathematics, Dip. Scienze dell'Informazione, Universitá di Milano, June 1991.
S. A. Cook, A taxonomy of problems with fast parallel algorithms,Inform, and Control 64 (1985), 2–22.
J. Earley, An efficient context-free parsing algorithm,Comm. ACM 13(2) (1970), 94–102.
S. Eilenberg,Automata, Languages and Machines, Vol. A, Academic Press, New York, 1974.
P. Flajolet, Analytic models and ambiguity of context-free languages,Theoret. Comput. Sci. 49 (1987), 283–309.
A. V. Goldberg and M. Sipser, Compression and ranking,SUM J. Comput. 20(3) (1991), 524–536.
M. Harrison,Introduction to Formal Language Theory, Addison-Wesley, Reading MA, 1978.
L. Hemachandra, On ranking,Proc. 2nd Conf. on Structure in Complexity Theory, 1987, pp. 103–117.
T. N. Hibbard and J. Ullian. The independence of inherent ambiguity from complementedness among context-free languages,J. Assoc. Comput. Mach. 13(4) (1966), 588–593.
D. T. Huynh, The complexity of ranking simple languages,Math. Systems Theory 23 (1990), 1–20.
D. T. Huynh, Effective entropies and data compression,Inform, and Comput. 90 (1991), 67–85.
A. Salomaa and M. Soittola,Automata Theoretic Aspects of Formal Power Series, Springer-Verlag, Berlin, 1978.
D. F. Stanat, A homomorphism theorem for weighted context-free grammar,J. Comput. System Sci. 6 (1972), 217–232.
L. G. Valiant, The complexity of enumeration and reliability problems,SLAM J. Comput. 8 (1979), 410–420.
V. Vinaj, Counting auxiliary pushdown automata and semi-unbounded arithmetic circuits,Proc. 6th Conf. on Structure in Complexity Theory, 1991, pp. 270–284.
Author information
Authors and Affiliations
Additional information
A preliminary version of this work was accepted for presentation at the 17th Symposium on Mathematical Foundations of Computer Science (MFCS'92), Prague, August 24–28, 1992. This research was supported by ESPRIT Working Group ASMICS (CEC Contract No. 3166), PRC Mathématiques et Informatique, MURST Project 40% “Algoritmi, modelli di calcolo e strutture informative.”
Rights and permissions
About this article
Cite this article
Choffrut, C., Goldwurm, M. Rational transductions and complexity of counting problems. Math. Systems Theory 28, 437–450 (1995). https://doi.org/10.1007/BF01185866
Received:
Revised:
Accepted:
Issue Date:
DOI: https://doi.org/10.1007/BF01185866