??xml version="1.0" encoding="utf-8" standalone="yes"?>性久久久久久久久久久久,色狠狠久久av五月综合,日韩三级.comhttp://www.aygfsteel.com/zhaochengming/category/39604.html 知止而后有定Q定而后能静Q静而后能安Q安而后能虑Q虑而后能得。物有本末,事有l始。知所先后Q则q道矣?/description>zh-cnWed, 24 Mar 2010 21:39:58 GMTWed, 24 Mar 2010 21:39:58 GMT60(#BYYL-3-99) NFA构造DFA的子集算?/title><link>http://www.aygfsteel.com/zhaochengming/archive/2010/03/21/316084.html</link><dc:creator>helloworld2008</dc:creator><author>helloworld2008</author><pubDate>Sun, 21 Mar 2010 08:17:00 GMT</pubDate><guid>http://www.aygfsteel.com/zhaochengming/archive/2010/03/21/316084.html</guid><wfw:comment>http://www.aygfsteel.com/zhaochengming/comments/316084.html</wfw:comment><comments>http://www.aygfsteel.com/zhaochengming/archive/2010/03/21/316084.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zhaochengming/comments/commentRss/316084.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zhaochengming/services/trackbacks/316084.html</trackback:ping><description><![CDATA[<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: center"><font face="宋体" size="6"><span style="font-size: 21px;"><strong> <div id="wmqeeuq" class="Section0" style="layout-grid:15.6000pt;"> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:center; "><span style="mso-spacerun:'yes'; font-weight:bold; font-size:16.0000pt; font-family:'宋体'; ">NFA<font face="宋体">构造DFA的子集算?/font></span><span style="mso-spacerun:'yes'; font-weight:bold; font-size:16.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:0.0500pt; text-indent:21.0000pt; margin-bottom:0pt; margin-top:0pt; "><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'Wingdings'; ">n </span><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">输入Q一个NFA </span><span style="mso-spacerun:'yes'; color:rgb(0,0,255); font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">N</span><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:0.0500pt; text-indent:21.0000pt; margin-bottom:0pt; margin-top:0pt; "><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'Wingdings'; ">n </span><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">输出Q一个DFA </span><span style="mso-spacerun:'yes'; color:rgb(0,0,255); font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">D</span><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:0.0500pt; text-indent:21.0000pt; margin-bottom:0pt; margin-top:0pt; "><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'Wingdings'; ">n </span><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">ҎQؓD构造一个{换表Dtran。D的每一个状态是一lNFA状态的集合。以下是一些构造需要用到的函数?/span><span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <table style="border-collapse: collapse; "> <tbody> <tr> <td width="190" valign="top" style="width: 142.6pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffff99; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:center; "><span style="mso-spacerun:'yes'; font-weight:bold; font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">操作</font></span><span style="font-weight:bold; font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> <td width="378" valign="top" style="width: 283.5pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffff99; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:center; "><span style="mso-spacerun:'yes'; font-weight:bold; font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">描述</font></span><span style="font-weight:bold; font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> </tr> <tr> <td width="190" valign="top" style="width: 142.6pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #99cc00; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">ε</span><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">-closure(s)</span><span style="font-weight:bold; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> <td width="378" valign="top" style="width: 283.5pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #99cc00; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">能够从NFA的状态s开始只通过</font></span><span style="font-weight:normal; font-size:10.5000pt; font-family:'宋体'; ">ε</span><span style="mso-spacerun:'yes'; font-weight:normal; font-size:10.5000pt; font-family:'宋体'; ">转换到达的NFA状态集?/span><span style="font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> </tr> <tr> <td width="190" valign="top" style="width: 142.6pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ff99cc; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">ε</span><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">-closure(T)</span><span style="font-weight:bold; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> <td width="378" valign="top" style="width: 283.5pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ff99cc; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="color:rgb(128,0,0); font-size:22.0000pt; font-family:'宋体'; ">U</span><span style="mso-spacerun:'yes'; color:rgb(0,51,0); font-size:22.0000pt; font-family:'宋体'; vertical-align:sub; ">sє</span><span style="color:rgb(0,51,0); font-size:15.0000pt; font-family:'宋体'; vertical-align:sub; ">T</span><span style="mso-spacerun:'yes'; color:rgb(0,0,255); font-weight:bold; font-size:22.0000pt; font-family:'宋体'; ">ε-closure(s)</span><span style="font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> </tr> <tr> <td width="190" valign="top" style="width: 142.6pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffcc00; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">move(T,a)</span><span style="font-weight:bold; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> <td width="378" valign="top" style="width: 283.5pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffcc00; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">能够从T中某个状态S出发通过标号为a的{换到辄NFA状态的集合</font></span><span style="font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> </tr> </tbody> </table> <p class="p0" style="margin-left:21.0500pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-weight:bold; font-size:14.0000pt; font-family:'Wingdings'; ">Ø </span><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">构造D的状态集合DStates和D的{换函数Dtran</span><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <table style="border-collapse: collapse; "> <tbody> <tr> <td width="568" valign="top" style="width: 426.1pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ccffcc; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">一开?</font></span><span style="mso-spacerun:'yes'; color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">ε-closure(s)</span><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">是DStates中的唯一状态,且没有被标记;</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; ">while (DStates<font face="宋体">中存在未被标识的状态T) {</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:21.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">标识T;</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:21.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; ">for(<font face="宋体">每个输入W号a) {</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:42.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; ">U = </span><span style="mso-spacerun:'yes'; color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">ε-closure(</span><span style="mso-spacerun:'yes'; color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">move(T,a)</span><span style="color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">)</span><span style="color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">;</span><span style="color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:42.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-weight:normal; font-size:10.5000pt; font-family:'宋体'; ">if(U不再DStats? U加入DStatesQ且没有标识;</span><span style="color:rgb(0,0,128); font-weight:normal; font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:42.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-weight:normal; font-size:10.5000pt; font-family:'宋体'; ">Dtran[T,a] = U;</span><span style="color:rgb(0,0,128); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:21.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; ">}</span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; ">}</span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> </tr> </tbody> </table> <p class="p0" style="margin-left:42.0000pt; text-indent:-21.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-size:14.0000pt; font-family:'Wingdings'; ">Ø </span><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-size:14.0000pt; font-family:'宋体'; ">计算</span><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">ε-closure(T)的算?/span><span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <table style="border-collapse: collapse; "> <tbody> <tr> <td width="568" valign="top" style="width: 426.1pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ccffcc; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">T的所有状态压入堆栈中;</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">?/font></span><span style="mso-spacerun:'yes'; color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">ε-closure(</span><span style="color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">T</span><span style="color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">)</span><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">的内容初始化为T;</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; ">while (<font face="宋体">堆栈非空) {</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:21.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">栈元素t弹出;</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:21.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; ">for(<font face="宋体">每个满如下条g的uQ从t出发有一个标号ؓ</font></span><span style="color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">ε</span><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">的{换到辄态u)</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:42.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; ">if(u<font face="宋体">不再</font></span><span style="mso-spacerun:'yes'; color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">ε-closure(</span><span style="color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">T</span><span style="color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">)</span><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">?{</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:63.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">u加入?/font></span><span style="mso-spacerun:'yes'; color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">ε-closure(</span><span style="color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">T</span><span style="color:rgb(153,51,0); font-weight:bold; font-size:10.5000pt; font-family:'宋体'; ">)</span><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">?</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:63.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">u压入栈中;</font></span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:42.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; ">}</span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; ">}</span><span style="color:rgb(0,0,128); font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> </tr> </tbody> </table> <p class="p0" style="margin-left:42.0000pt; text-indent:-21.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Wingdings'; ">Ø </span><span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'宋体'; "><font face="宋体">附模拟一个NFA</font></span><span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> <table style="border-collapse: collapse; "> <tbody> <tr> <td width="568" valign="top" style="width: 426.1pt; padding-top: 0pt; padding-right: 5.4pt; padding-bottom: 0pt; padding-left: 5.4pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ccffcc; background-position: initial initial; background-repeat: initial initial; "> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; ">S = </span><span style="mso-spacerun:'yes'; color:rgb(153,51,0); font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">ε-closure(s</span><span style="color:rgb(153,51,0); font-weight:bold; font-size:14.0000pt; font-family:'宋体'; vertical-align:sub; ">0</span><span style="mso-spacerun:'yes'; color:rgb(153,51,0); font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">);</span><span style="color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; ">c = nextChar();</span><span style="color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; ">while(c != eof) {</span><span style="color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:21.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; ">S = </span><span style="mso-spacerun:'yes'; color:rgb(153,51,0); font-weight:bold; font-size:14.0000pt; font-family:'宋体'; ">ε-closure(move(S,c))</span><span style="color:rgb(153,51,0); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; ">;</span><span style="color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-left:21.0000pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; ">c = nextChar();</span><span style="color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; ">}</span><span style="color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; ">if(S ∩ F != ø) return true;</span><span style="color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; "><o:p></o:p></span></p> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-weight:normal; font-size:14.0000pt; font-family:'宋体'; ">else return false;</span><span style="font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> </td> </tr> </tbody> </table> <p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-align:justify; "><span style="mso-spacerun:'yes'; color:rgb(51,51,153); font-weight:normal; font-size:10.5000pt; font-family:'宋体'; "><o:p></o:p></span></p> </div> </strong></span></font><br /> </p> <img src ="http://www.aygfsteel.com/zhaochengming/aggbug/316084.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zhaochengming/" target="_blank">helloworld2008</a> 2010-03-21 16:17 <a href="http://www.aygfsteel.com/zhaochengming/archive/2010/03/21/316084.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>文法的化与改?/title><link>http://www.aygfsteel.com/zhaochengming/archive/2009/07/06/285613.html</link><dc:creator>helloworld2008</dc:creator><author>helloworld2008</author><pubDate>Sun, 05 Jul 2009 16:45:00 GMT</pubDate><guid>http://www.aygfsteel.com/zhaochengming/archive/2009/07/06/285613.html</guid><wfw:comment>http://www.aygfsteel.com/zhaochengming/comments/285613.html</wfw:comment><comments>http://www.aygfsteel.com/zhaochengming/archive/2009/07/06/285613.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zhaochengming/comments/commentRss/285613.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zhaochengming/services/trackbacks/285613.html</trackback:ping><description><![CDATA[<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">文法的化与改?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; color: rgb(0,0,255); font-family: '宋体'; mso-spacerun: 'yes'">1、无用符号及无用产生式的删除 </span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">无用W号Q设有一文法G[S]= QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QPQSQ,说G中的一个符号X∈V是有用的是指X臛_出现在一个句子的推导q程中,xI</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">存在αQ?#946;∈V*Q有S=*>αXβ </span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">存在ω∈V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">* Q?#945;Xβ=*>ω</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">否则X为无用符?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">设有文法G[S]= QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QPQSQ,首先用算?.1攚w该文法的到G1[S]= QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QP</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QSQ,使得对于每一个X∈V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">Q都?#969;∈V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">*QX=*>ω</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; color: rgb(255,0,0); font-family: '宋体'; mso-spacerun: 'yes'">法1Q?nbsp;</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">(1) </span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">分别|V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QP</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">?#934;?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">(2) </span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">对P中每一个生式A→δQ若δ∈V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">*Q则A攑օV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">中?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">(3) </span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">对P中每一个生式A→X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">2</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">……X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">Q若每一个X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> 都属于V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">或V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">Q则A攑օV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">中?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">(4) </span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">重复③直至V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">不增大?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">(5) </span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">对于P中的每一个生式B→Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">2</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">……Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">n</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Q若B及每一个Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Q都属于V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">∪V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">  Q则B→Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">2</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">……Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">n</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">Q放入P</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">中?nbsp;</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">其次Q对以给文法G[S]Q若执行法2.2可得C{h文法G’=QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’Q?nbsp;V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’ QP’QSQ得对MX∈V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’∪ V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’都存?#945;Q?#946;∈QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’∪ V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’Q有S=*>αXβ. </span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; color: rgb(255,0,0); font-family: '宋体'; mso-spacerun: 'yes'">法2:</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">1.分别|V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’?nbsp;V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’、P’?#966;</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">2.S 攑օV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’中?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">3.对于G中Q何型如A→α</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">|……|α</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">m</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">的生式Q若A∈V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’则将α</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">……α</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">m</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> 中的全部非终l符攑օV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’中,l结W放入V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’中?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">4.重复③直至V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’?nbsp;V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’不增大ؓ止?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">5.P中左右部仅含V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’∪ V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">’中符L所有生式攑օP’ 中?nbsp;</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> </span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; color: rgb(0,0,255); font-family: '宋体'; mso-spacerun: 'yes'">2?#949;—生式的消?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">有的分析Ҏ要求文法中不能含?#949;—生式Q因此需要改造文法之不?#949;—生式?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">如果语言不含?#949;句子Q则可有办法消除文法中的全部ε—生式Q否则不可能全部消除Q但我们希望只有在空句子的推g用到ε—生式Q其他语句的推导q程中不会?#949;—生式。故对含有空句子的文法,我们希望只有文法开始符S→εq样一个生式q且S不出现在其它M产生式的右部?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; color: rgb(255,0,0); font-family: '宋体'; mso-spacerun: 'yes'">法3Q?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">扑և所有能导出ε的非l结W?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">1.构造W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">={A|产生式A→ε∈P}</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">2.构造集合序列W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K+1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">= W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">∪{B|B→β∈PQ且β∈W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QK≥1}</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">  W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K+1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">是一个有限集Q设最后的W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K+1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">为W?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">当S∈WӞε∈LQG[S]Q?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">设有一文法G[S]= QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QPQSQ,?#949;不属于该文法所描述的语aӞ可构造文法:</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">G’=QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QP’QSQ,使得LQG’Q?LQGQ,G’不含?#949;产生式:</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; color: rgb(255,0,0); font-family: '宋体'; mso-spacerun: 'yes'">法4:</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">1.利用WV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> 分ؓ两个子集W及V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> -W?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">2.设A→X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">2</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">……X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">∈PQ按下面规则所有型如A→Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">2</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">……Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> 的生式攑օP’中,对于一?≤i≤kQ?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">  aQ若X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> 不属于WQ则取Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> = X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> </span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-indent: 21pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">bQ若X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> ∈WQ则分别取Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> 为X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">?#949;Q但是若所有X</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">均属于WQ却不能把所有Y</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> 取ؓε?nbsp;</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">设有一文法G[S]= QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QPQSQ,?#949;属于该文法所描述的语aӞ可构造文法:</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">G1=QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QP</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QS’Q,使得LQG</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">Q?LQGQ,P</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">中除S’→ε外不再含有其?#949;产生式,q且S’不出现在M产生式的双?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; color: rgb(255,0,0); font-family: '宋体'; mso-spacerun: 'yes'">法5Q?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">若S不出现在M产生式的右部Q则可直接用法2.4消除ε产生式,再加入S→εQ否则:</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">  1Q引入新的非l结WS’Q?nbsp;V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">= V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> ∪{ S’}</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">  2Q构造P’ =P∪{ S’→α| S→α∈P}</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">  3Q对文法G1=QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">1 QV</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">T</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> QP</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QS’Q,执行法4Q再加入S’→ε?nbsp;</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; color: rgb(0,0,255); font-family: '宋体'; mso-spacerun: 'yes'">3、单产生式的消除</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">A→BQA,B∈V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> 此类产生式被UCؓ单生式?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">假定文法中不含有ε产生式?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">法6Q?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">设V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> ={ A</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> ...... A</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> } Ҏ一个A</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Q?≤i≤nQ构造集合序?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">( A</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">Q?{A</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">}Q?nbsp;</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K+1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QA</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Q? W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QA</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Q?#8746;{D|C→D∈PQC∈W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">K</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QA</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Q,D∈V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> }</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">K≥1Q该集合序列存在一个jQ有</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">j</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QA</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Q? W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">j+1</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QA</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Q?.....</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">令WQiQ? W</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">j</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">QA</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> Q?/span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">WQiQ?{B| A</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> =>BQB∈V</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">N</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> }</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"><o:p></o:p></span></p> <p class="p0" style="margin-top: 0pt; margin-bottom: 0pt"><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">构造P’={ A</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; font-family: '宋体'; mso-spacerun: 'yes'">i</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'"> →α|B→α∈PQB∈WQiQ,α不是单个非终l符}</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">(</span><span style="font-weight: normal; font-size: 14pt; color: rgb(0,0,255); font-family: '宋体'; mso-spacerun: 'yes'">对于A</span><span style="font-weight: normal; font-size: 14pt; vertical-align: sub; color: rgb(0,0,255); font-family: '宋体'; mso-spacerun: 'yes'">1</span><span style="font-weight: normal; font-size: 14pt; color: rgb(0,0,255); font-family: '宋体'; mso-spacerun: 'yes'">到A<sub>n</sub>的U操作</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">),</span><span style="font-weight: normal; font-size: 14pt; font-family: '宋体'; mso-spacerun: 'yes'">此时P′中已不含M单生式?/span></p> <!--endfragment--> <img src ="http://www.aygfsteel.com/zhaochengming/aggbug/285613.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zhaochengming/" target="_blank">helloworld2008</a> 2009-07-06 00:45 <a href="http://www.aygfsteel.com/zhaochengming/archive/2009/07/06/285613.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>~译原理W二章中~转后~java?/title><link>http://www.aygfsteel.com/zhaochengming/archive/2009/05/15/270944.html</link><dc:creator>helloworld2008</dc:creator><author>helloworld2008</author><pubDate>Fri, 15 May 2009 14:20:00 GMT</pubDate><guid>http://www.aygfsteel.com/zhaochengming/archive/2009/05/15/270944.html</guid><wfw:comment>http://www.aygfsteel.com/zhaochengming/comments/270944.html</wfw:comment><comments>http://www.aygfsteel.com/zhaochengming/archive/2009/05/15/270944.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zhaochengming/comments/commentRss/270944.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zhaochengming/services/trackbacks/270944.html</trackback:ping><description><![CDATA[     摘要: 刚刚学习~译原理Q这是第二章的代码的改写Q源?http://www.aygfsteel.com/Files/zhaochengming/compiler%20section%202%20parse.rar 1.KeyWord.java 关键字对象类 package parse; public class KeyWord {  &n...  <a href='http://www.aygfsteel.com/zhaochengming/archive/2009/05/15/270944.html'>阅读全文</a><img src ="http://www.aygfsteel.com/zhaochengming/aggbug/270944.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zhaochengming/" target="_blank">helloworld2008</a> 2009-05-15 22:20 <a href="http://www.aygfsteel.com/zhaochengming/archive/2009/05/15/270944.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">绯</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ݳ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">֣</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ͷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">캵</a>| <a href="http://" target="_blank">Ӷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ԫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">齭</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank">״</a>| <a href="http://" target="_blank">ԭ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">غ</a>| <a href="http://" target="_blank">ҵ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>