{"title":"Lower Bounds and Reductions Between Grammar Problems","authors":"H. Hunt, T. G. Szymanski","doi":"10.1145/322047.322051","DOIUrl":null,"url":null,"abstract":"AESTRA~ r Many parsing techniques are parameterlzed by the amount of context allowed in making parsmg decisions (e g the LR(k), LL(k), and SLR(k) hierarchies). The best-known algorithms for testing membership in these classes depend exponentially on k when the test is performed determinlsttcally, and polynomlally on k when the test IS done nondetermmistically This paper shows that the deterministic complexity of any uniform algorithm for, say, LR(k) testing is a polynommi function of k if and only if P = NP. We then provide a lower bound on the growth rate with respect to k As to the relationships between the various classes, it is shown that the time needed for testing the LL(k) property ~s a lower bound on the time needed for testing membership in any subset of the LR(k) grammars that includes all the LL(k) grammars These results suggest that the complexity of LL(I) testing is a lower bound on the complexity of testing membership m most useful classes of grammars Finally, some relative decision problems are mvesUgated, that is, problems of testing whether a given member of some class is also a member of some other specified class A polynomial time algorithm ts given for determining for an LR(k) grammar whether there exists a k' for which the grammar is LL(k'). Slmdar results are shown for the SLR(k) and strong LL(k) hierarchies","PeriodicalId":50022,"journal":{"name":"Journal of the ACM","volume":"20 1","pages":"32-51"},"PeriodicalIF":2.5000,"publicationDate":"1978-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"9","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of the ACM","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1145/322047.322051","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
引用次数: 9
Abstract
AESTRA~ r Many parsing techniques are parameterlzed by the amount of context allowed in making parsmg decisions (e g the LR(k), LL(k), and SLR(k) hierarchies). The best-known algorithms for testing membership in these classes depend exponentially on k when the test is performed determinlsttcally, and polynomlally on k when the test IS done nondetermmistically This paper shows that the deterministic complexity of any uniform algorithm for, say, LR(k) testing is a polynommi function of k if and only if P = NP. We then provide a lower bound on the growth rate with respect to k As to the relationships between the various classes, it is shown that the time needed for testing the LL(k) property ~s a lower bound on the time needed for testing membership in any subset of the LR(k) grammars that includes all the LL(k) grammars These results suggest that the complexity of LL(I) testing is a lower bound on the complexity of testing membership m most useful classes of grammars Finally, some relative decision problems are mvesUgated, that is, problems of testing whether a given member of some class is also a member of some other specified class A polynomial time algorithm ts given for determining for an LR(k) grammar whether there exists a k' for which the grammar is LL(k'). Slmdar results are shown for the SLR(k) and strong LL(k) hierarchies
期刊介绍:
The best indicator of the scope of the journal is provided by the areas covered by its Editorial Board. These areas change from time to time, as the field evolves. The following areas are currently covered by a member of the Editorial Board: Algorithms and Combinatorial Optimization; Algorithms and Data Structures; Algorithms, Combinatorial Optimization, and Games; Artificial Intelligence; Complexity Theory; Computational Biology; Computational Geometry; Computer Graphics and Computer Vision; Computer-Aided Verification; Cryptography and Security; Cyber-Physical, Embedded, and Real-Time Systems; Database Systems and Theory; Distributed Computing; Economics and Computation; Information Theory; Logic and Computation; Logic, Algorithms, and Complexity; Machine Learning and Computational Learning Theory; Networking; Parallel Computing and Architecture; Programming Languages; Quantum Computing; Randomized Algorithms and Probabilistic Analysis of Algorithms; Scientific Computing and High Performance Computing; Software Engineering; Web Algorithms and Data Mining