上下文无关文法(Context-Free Grammar, CFG)是一个4元组G=(V, T, S, P),其中,V和T是不相交的有限集,S∈V,P是一组有限的产生式规则集,形如A→α,其中A∈V,且α∈(V∪T)*。V的元素称为非终结符,T的元素称为终结符,S是一个特殊的非终结符,称为文法开始符。 设G=(V, T, S, P)是一个CFG,则G产生的语言是所有可由G产生的字符串组成的集合,即L(G)={x∈T* | Sx}。一个语言L是上下文无关语言(Context-Free Language, CFL),当且仅当存在一个CFG G,使得L=L(G)。 *⇒ 例如,设文法G:S→AB A→aA|a B→bB|b 则L(G)={a^nb^m | n,m>=1} 其中非终结符都是大写字母,开始符都是S,终结符都是小写字母。
标签: Context-Free Grammar CFG
上传时间: 2013-12-10
上传用户:gaojiao1999
uC/OS是一种体积小巧而实用的实时操作系统,由于其代码的开放性,近年来普遍受到人们的关注,许多人开始从事这一操作系统的学习及应用工作,但由于其文档较少,特别是关于安装和使用方面的指导性文章不够充足,使很多初学者,特别是刚刚接触嵌入式操作系统的朋友们不知道如何进行系统的安装及调试,为此我结合自己使用的切身体会,谈一谈它的安装及调试问题,希望对大家能起到一定的帮助作用。
上传时间: 2013-12-28
上传用户:fxf126@126.com
一个很好的文件分割器,下载后无需安装即可使用
标签: 分割器
上传时间: 2013-12-13
上传用户:气温达上千万的
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
在线考试系统: 1、为了保证示例代码正确运行,读者需要自己下载和安装Dundas作图插件DCWCE50VS7Eval.exe。 下载地址如下: http://www.dundas.com/ 该软件需要注册才能长期正常使用的软件,请大家支持正版软件的使用。 2、插件安装与使用 1、安装该插件。 2、使用Microsoft Visual Studio.NET 2003打开第4章学生在线考试系统的TestOnline项目。 3、打开Analysis.aspx窗体。 4、单击“视图”|“工具箱”,在工具箱中单击“Web窗体”工具组。 5、在该工作中单击鼠标右键,在弹出的菜单中选择“添加/移除项”命令 。 6、在打开的“自定义工具箱”对话框的.NET Frameword组件中选择Chart选项,单击“确定”。 7、安装完毕,Chart控件出现在web窗体工具中。
上传时间: 2014-10-28
上传用户:fredguo
网络抓包工具ethereal的电子书《Ethereal Packet Sniffing》,详细介绍了该软件的安装、使用及抓包分析
标签: ethereal Ethereal Sniffing Packet
上传时间: 2016-01-30
上传用户:erkuizhang
红旗Linux的入门教程,详细的解说了从安装到使用的方法
上传时间: 2013-12-16
上传用户:zhouchang199
《ns与网络模拟》的电子版,详细介绍了ns-2的安装和使用。
上传时间: 2016-02-06
上传用户:youlongjian0
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
标签: converts Toolbox complex logical
上传时间: 2016-02-12
上传用户:a673761058
从电脑软硬件基础入手,快速掌握电脑的基础知识,windows的安装,使用及维护。
上传时间: 2016-02-27
上传用户:lijianyu172