- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Analyzing Ambiguity of ContextFree Grammars
September 26, 2004 [ xsugar ] - Reversible Stylesheets Analyzing Ambiguity of Context-Free Grammars BRICS, Department of Computer Science University of Aarhus, Denmark // Abstract // Outline Introduction Vertical / Horizontal Ambiguity Characterization of Ambiguity (Over-)Approximation Approximation (AMN) Examples and Assessment Related Work Conclusion // Context-Free Grammar N finite set of nonterminals ? finite set of terminals s ? N start nonterminal ? : N ? P(E*) production function, E = N ? ? // CFG Decision Problems Decidable: Membership: ? ? L(GCFG) ! Emptiness: L(GCFG) = ? ! Intersection (w/ REG): L(GCFG) ? L(RREG) = ? ! … Undecidable: Intersection (w/ CFG): L(GCFG) ? L(G’CFG) = ? ? … // Ambiguity: Undecidable! Undecidable! However… // “Side-Stepping Undecidability” Unsafe approximation: Safe approximation: // Motivation Use safe (over-)approximation: “Yes!” ? “G guaranteed unambiguous”!!! Safely use any GLR parser on G Because: we never get two parses at runtime! Hence: dynamic parse ambiguity ? static parse ambiguity // Motivation (cont’d) Undecidability means: “there’ll always be a slack”: However, still useful! Possible interpretations of “No?”: Treat as error (reject grammar): “Please redesign your grammar” (as in LR(k)) Treat as warning: “Here are some potential problems” // Vertical Unambiguity “Vertical unambiguity”: Example: // Horizontal Unambiguity “Horizontal unambiguity”: where: Example: // Characterization of Ambiguity Theorem 1: Lemma 1a: (“?”) Lemma 1b: (“?”) // Proof (Lemma 1a): “?” Lemma 1a: …contrapositively: Proof: Assume G ambiguous (i.e. ? 2 der. trees for ?) Show: by induction in max height of the 2 derivation trees // Proof (Lemma 1a): “?” (Base) Base case (height ? 1): The ambiguity means that: However, this means that ? = t0 t1 ... t|?|-1 = ?(i.e. the two trees must be the same); and so the result holds vacuously // Proof (
您可能关注的文档
- (有例子)关系数据模式的规范化理论.ppt
- (曹燕)复积分的各种计算方法.doc
- (初稿)三重积分计算方法小结.doc
- (郑俊杰)专业英语 课件.ppt
- +基于肤色的人脸检测.pdf
- (论文中英文摘要格式).doc
- A Bayesian Approach to Joint Feature Selection and Classifier Design.pdf
- .翻译的技巧.ppt
- A Comparative Analysis of Behavioral Models for RF Power Amplifiers.pdf
- .NSF Design, Service and Manufacturing Grantees Research ..doc
- Android手机平台下开发旅游景点位置查询应用程序.pdf
- Android手机平台下Google天气预报客户端的开发.pdf
- ansys学习教程单元操作.ppt
- API经济与管理趋势与发展方向.pdf
- Application of Noise Path Target Setting Using the Technique of Transfer Path Analysis.pdf
- Applications of Minkowski Functionals to the Statistical Analysis of Dark Matter Models.pdf
- ANSYS传热分析实例汇总.doc
- AP工作原理介绍.pdf
- APVSSL加速技术应用指导书.doc
- ArcGISEngine中矢量数据叠加分析的实现及应用_黄雪莲.pdf
最近下载
- 企业拓展训练培训服务方案.docx VIP
- 抗风湿药的分类与临床应用.pptx VIP
- 四上企业统计培训课件.pptx VIP
- 四上企业入库培训课件.pptx VIP
- 7郭永康+光在晶体和液晶中传播-4.ppt VIP
- 7郭永康光在晶体和液晶中传播2.ppt VIP
- 西门子SINUMERIK 802S base line SINUMERIK 802C base line简明操作与编程(中文).pdf
- 2024-2025统编版六年级上册道德与法治期末试题汇编:连线题(含答案).pdf VIP
- 李镇西《做最好的家长》读书交流.pptx VIP
- (必威体育精装版)江苏省七年级下学期第一次月考英语试卷.pdf VIP
文档评论(0)