Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Open access

On exponential-time completeness of the circularity problem for attribute grammars

Published: 01 January 2004 Publication History

Abstract

Attribute grammars (AGs) are a formal technique for defining semantics of programming languages. Existing complexity proofs on the circularity problem of AGs are based on automata theory, such as writing pushdown acceptor and alternating Turing machines. They reduced the acceptance problems of above automata, which are exponential-time (EXPTIME) complete, to the AG circularity problem. These proofs thus show that the circularity problem is EXPTIME-hard, at least as hard as the most difficult problems in EXPTIME. However, none has shown that the problem is EXPTIME-complete. This paper presents an alternating Turing machine for the circularity problem. The alternating Turing machine requires polynomial space. Thus, the circularity problem is in EXPTIME and is then EXPTIME-complete.

References

[1]
Chandra, A. K., Kozen, D. C., and Stockmeyer, L. J. 1981. Alternation. J. ACM 28, 1 (Jan.), 114--133.
[2]
Deransart, P., Jourdan, M., and Lorho, B. 1984. Speeding up circularity tests for attribute grammars. Acta Informatica 21, 375--391.
[3]
DILL, J. M. 1989. A counterexample for 'A simpler construction for showing the intrinsically exponential complexity of the circularity problem for attribute grammars.' J. ACM 36, 1 (Jan.), 92--96.
[4]
Gray, R. W., Heuring, V. P., Levi, S. P., Sloane, A. W., and Waite, W. M. 1992. Eli: A complete, flexible compiler construction system. Commun. ACM 35, 2 (Feb.), 121--131.
[5]
Jazayeri, M., Ogden, W. F., and Rounds, W. C. 1975. The intrinsically exponential complexity of the circularity problem for attribute grammars. Commun. ACM 18, 12 (Dec.), 697--706.
[6]
JAzayeri, M. 1981. A simpler construction for showing the intrinsically exponential complexity of the circularity problem for attribute grammars. J. ACM 28, 4 (Oct.), 715--720.
[7]
Jones, N. D. 1980. Circularity testing of attribute grammars requires exponential time: A simpler proof. Tech. rep. DAIMI PB-107. Computer Science Department, Aarhus University, Aarhus, Denmark.
[8]
Knuth, D. E. 1968. Semantics of context-free languages. Math. Syst. Theory 2, 2, 127--145. Correction: Knuth, D. E. 1971. Math. Syst, Theory 5, 1, 95--96.
[9]
Räihä, K.-J., and Saarinen, M. 1982. Testing attribute grammars for circularity. Acta Informatica 17, 185--192.
[10]
Reps, T., and Teitelbaum, T. 1989. The Synthesizer Generator: A System for Constructing Language-Based Editors. Springer-Verlag, New York, NY.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Transactions on Programming Languages and Systems
ACM Transactions on Programming Languages and Systems  Volume 26, Issue 1
January 2004
220 pages
ISSN:0164-0925
EISSN:1558-4593
DOI:10.1145/963778
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 January 2004
Published in TOPLAS Volume 26, Issue 1

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Attribute grammars
  2. EXPTIME-complete
  3. alternating Turing machines
  4. circularity problem

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)27
  • Downloads (Last 6 weeks)5
Reflects downloads up to 16 Oct 2024

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media