Publication | Open Access
The intrinsically exponential complexity of the circularity problem for attribute grammars
119
Citations
13
References
1975
Year
Context-free GrammarsEngineeringComputational ComplexitySoftware AnalysisFormal VerificationSyntaxComputational LinguisticsGrammarDescriptional ComplexityLanguage StudiesProgramming Language TheoryAbstract ComplexityGrammatical FormalismComputer ScienceGrammar InductionAutomated ReasoningProgram AnalysisFormal MethodsTime ComplexityCircularity ProblemExponential ComplexityUnification GrammarAttribute GrammarsLinguisticsComputational Semantics
Attribute grammars are an extension of context-free grammars devised by Knuth as a mechanism for including the semantics of a context-free language with the syntax of the language. The circularity problem for a grammar is to determine whether the semantics for all possible sentences (programs) in fact will be well defined. It is proved that this problem is, in general, computationally intractable. Specifically, it is shown that any deterministic algorithm which solves the problem must for infinitely many cases use an exponential amount of time. An improved version of Knuth's circularity testing algorithm is also given, which actually solves the problem within exponential time.
| Year | Citations | |
|---|---|---|
Page 1
Page 1