- 2
- 0
- 约3.21千字
- 约 17页
- 2017-03-07 发布于上海
- 举报
Lecture 11 ContextFree Grammar讲座11上下文无关文法
Lecture 11 Context-Free Grammar Definition A context-free grammar (CFG) G is a quadruple (V, Σ, R, S) where V: a set of non-terminal symbols Σ: a set of terminals (V ∩ Σ = ?) R: a set of rules (R: V → (V U Σ)*) S: a start symbol. Example V = {q, f,} Σ = {0, 1} R = {q → 11q, q → 00f, f → 11f, f → ε } S = q (R= {q → 11q | 00f, f → 11f | ε }) How do we use rules? If A → B, then xAy xBy and we say that xAy derivates xBy. If s ··· t, then we write s * t. A string x in Σ* is generated by G=(V,Σ,R,S) if S * x. L(G) = { x in Σ* | S * x}. Example G = ({S},
您可能关注的文档
- Law and Chaos chemweb法律和混乱 chemweb.ucc.ie.ppt
- Latter Day Believers truthseekers一天believers truthseekers latter.ppt
- Lattices and Cryptography Brown University格与密码学布朗大学.ppt
- Law of Gravitation万有引力定律.ppt
- Law of Diminishing Return kmhs收益递减规律kmhs.typepad.ppt
- Lattice Representation of Data DIMACS数据摘要格表示.ppt
- LAW, STATE, LOCAL GOVERNMENT法律国家和地方政府.ppt
- LATEX ALLERGY Baltimore, Maryland乳胶过敏巴尔的摩马里兰州.ppt
- Lawn and Turfgrass Establishment and Maintenance草坪与草坪草的建立和维护.ppt
- Law of the Land WhyTry法律对土地whytry.ppt
- Lecture 1 Preliminaries cgi讲座1预赛 CGI.csc.liv.ac.uk.ppt
- Lecture 12 Coin Flipping by Telephone Howard University讲座12硬币翻转通过电话霍华德大学.pptx
- Lecture 12 Heteroskedasticity wps讲座12异方差 WPS.aw.ppt
- Lecture 12 Gymnosperms and Angiosperms TypePad裸子植物和被子植物 TypePad阅读12.ppt
- Lecture 1 – Putting Safety Into Perspective讲座1将安全纳入观点.ppt
- Lecture 11 Ecosystem dynamics University of Tasmania讲座11生态系统动力学塔斯马尼亚大学.pptx
- Lecture 14 John Keats2 hours 卓越课程中心3讲座14济慈2小时卓越课程中心.ppt
- Lecture 14 Factorial ANOVA Practice Trinity College, 讲座14因子方差分析实践三位一体学院.ppt
- Lecture 14 Goodness of Fit and Chi Square讲座14善良的拟合和卡方.pptx
- Lecture 16 cs阅读16 CS.uwaterloo.pptx
原创力文档

文档评论(0)