Lower Bounds and Reductions Between Grammar Problems

IF 2.5 2区 计算机科学 Q2 COMPUTER SCIENCE, HARDWARE & ARCHITECTURE Journal of the ACM Pub Date : 1978-01-01 DOI:10.1145/322047.322051
H. Hunt, T. G. Szymanski
{"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
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
语法问题的下界和约简
许多解析技术都是通过在做出解析决策时允许的上下文数量来参数化的(例如LR(k)、LL(k)和SLR(k)层次结构)。最著名的测试这些类的隶属度的算法,当测试是确定性地进行时,是指数地依赖于k,而当测试是非确定性地进行时,是多项式地依赖于k。本文表明,任何统一算法的确定性复杂性,例如,LR(k)测试,当且仅当P = NP时,是k的多项式函数。然后提供一个下界的增长率对k各种类之间的关系,结果表明,测试所需的时间会(k)财产~年代一个下界测试所需的时间加入的任何子集LR (k)文法,包括所有的LL (k)文法这些结果表明,复杂的你(我)测试是一个下界的复杂性测试成员m语法最后,最有用的类给出了一个多项式时间算法,用于确定LR(k)语法是否存在一个k',其语法是否为LL(k')。Slmdar结果显示了SLR(k)和强LL(k)层次结构
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Journal of the ACM
Journal of the ACM 工程技术-计算机:理论方法
CiteScore
7.50
自引率
0.00%
发文量
51
审稿时长
3 months
期刊介绍: 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
期刊最新文献
Query lower bounds for log-concave sampling Transaction Fee Mechanism Design Sparse Higher Order Čech Filtrations Killing a Vortex Separations in Proof Complexity and TFNP
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1