Skip to main content

The complexity of computing maximal word functions

  • Commanications
  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 529))

Abstract

Maximal word functions occur in data retrival applications and have connections with ranking problems i.e. with problems related to data compression. Compute the maximal word function of a string x with respect to a language L ⊑ Σ* consists in determining the lexicographically greatest word belonging to L, which is smaller than or equal to x.

In this paper we investigate the complexity of computing maximal word functions, estabilishing sharp boundaries between classes of languages for which the maximal word function can be efficiently computed and classes of languages for which such a problem seems to be difficult to solve. For example, we will show that the maximal word function for the class of context free languages is in AC2 while for the class of languages accepted by 2-way pushdown automata the maximal word function can be efficiently (polynomially) computed if and only if P = NP. We will also show connections with ranking, detector and constructor functions as introduced in [14]. This paper is a continuation of the study enterprised by many authors ([6], [10], [13] and [14]) with the intention of identifying properties others than membership which are easily computable for certain class of languages.

Extended Abstract

Supported in part by MURST 40%

Supported in part by the ESPRIT Basic Research Action No. 3166: “Algebraic and Syntactic Methods in Computer Science (ASMICS).”

This is a preview of subscription content, log in via an institution.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. A. V. Aho, J.D. Ullman, The Theory of Parsing, Translation and Compiling, Volume I: Parsing, Prentice-Hall, 1972.

    Google Scholar 

  2. E. Allender, Invertible functions, Ph.D thesis, Georgia Institute of Technology, 1985.

    Google Scholar 

  3. C. Álvarez and B. Jenner, “Logarithmic space counting classes,” Proc. Structure Conference: 154–168, 1990.

    Google Scholar 

  4. J. Balcázar, J. Díaz and J. Gabarró, Structural Complexity I, Springer Verlag, New York, 1987.

    Google Scholar 

  5. A. Bertoni, D. Bruschi and M. Goldwurm, “Ranking and formal power series,” TCS 79: 25–35, 1991.

    Google Scholar 

  6. A. Bertoni, M. Goldwurm and N. Sabadini, “The complexity of computing the number of strings of given length in context free languages,” to appear in TCS.

    Google Scholar 

  7. P. Bonizzoni and D. Bruschi, Manuscript.

    Google Scholar 

  8. S. Cook, “Characterization of pushdown machines in terms of time-bounded computers,” JACM 18: 4–18, 1971.

    Google Scholar 

  9. S. Cook, “A Taxonomy of Problems which have a Fast Parallel Algorithm,” Inf. and Comp. 64: 2–22, 1985.

    Google Scholar 

  10. A. Goldberg and M. Sipser, “Compression and ranking,” Proc. 17-th STOC: 59–68, 1985.

    Google Scholar 

  11. L. Hemachandra, “On ranking”, Proc. Structure Conference: 103–117, 1987.

    Google Scholar 

  12. J. Hopcroft and J. Ullman, Introduction to automata theory, languages and computations, Addison-Wesley, 1979.

    Google Scholar 

  13. D. Huynh, “The complexity of ranking,” Proc. Structure Conference: 204–212, 1988.

    Google Scholar 

  14. D. Huynh, “Efficient detectors and constructors for simple languages,” Tech. Rep. UTCDS-26-90, pp. 20.

    Google Scholar 

  15. M. Jerrum, G. Valiant and V. Vazirani, “Random generation of combinatorial structures from a uniform distribution,” TCS 43: 169–188, 1986.

    Google Scholar 

  16. M. Krentel, “The complexity of optimization problems,”, JCSS 36: 490–509, 1988.

    Google Scholar 

  17. G.L. Miller, V. Ramachandran, E. Kaltofen, “Efficient Parallel Evaluation of Straight-Line Code and Arithmetic Circuits,” SIAM J 17: 687–695, 1988.

    Google Scholar 

  18. L. Sanchis and M. Fulk, “On the efficient generation of languages instances,” SIAM J 19(2): 281–295, 1990.

    Google Scholar 

  19. L. Stockmeyer, U. Vishkin, “Simulation of parallel random access machines by circuits,” SIAM J 13: 409–422, 1984.

    Google Scholar 

  20. L. Valiant, “The complexity of enumeration and reliability problems,” SIAM J 8: 410–412, 1979.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

L. Budach

Rights and permissions

Reprints and permissions

Copyright information

© 1991 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Bruschi, D., Pighizzini, G. (1991). The complexity of computing maximal word functions. In: Budach, L. (eds) Fundamentals of Computation Theory. FCT 1991. Lecture Notes in Computer Science, vol 529. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-54458-5_60

Download citation

  • DOI: https://doi.org/10.1007/3-540-54458-5_60

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-54458-6

  • Online ISBN: 978-3-540-38391-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics