搜索结果
找到约 657 项符合
depth-first 的查询结果
编译器/解释器 学编译原理时写的一个语法分析程序 一.[目的要求] ① 对输入文法
学编译原理时写的一个语法分析程序
一.[目的要求]
① 对输入文法,由程序自动构造FIRST FOLLOW集
② 对输入文法,由程序自动生成它的LL(1)分析表;
③ 对于给定的输入串,应能判断识别该串是否为给定文法的句型。
二.[题目分析]
该程序可分为如下几步:
(1)读入文法
(2)判断正误
(3)若无误,判断是否为LL(1) ...
数据结构 HDOJ ACM input:The input consists of T test cases. The number of test cases ) (T is given in the fi
HDOJ ACM
input:The input consists of T test cases. The number of test cases ) (T is given in the first line of the input. Each test case begins with a line containing an integer N , 1<=N<=200 , that represents the number of tables to move. Each of the following N lines contains two positive integers ...
数据结构 acm HDOJ 1051WoodenSticks Description: There is a pile of n wooden sticks. The length and weight o
acm HDOJ 1051WoodenSticks
Description:
There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. Th ...
其他书籍 Learning Kernel Classifiers: Theory and Algorithms, Introduction This chapter introduces the general
Learning Kernel Classifiers: Theory and Algorithms, Introduction This chapter introduces the general problem of machine learning and how it relates to statistical inference. 1.1 The Learning Problem and (Statistical) Inference It was only a few years after the introduction of the first computer that ...
其他 We propose a simple and effective method for detecting view- and scale-independent ridge-valley lin
We propose a simple and effective method for detecting view- and
scale-independent ridge-valley lines defined via first- and secondorder
curvature derivatives on shapes approximated by dense triangle
meshes.
Java编程 对于CPU线程调度的模拟
对于CPU线程调度的模拟,CPU threads control simulation,包括first come first serve算法和run rubbing等,同时输出线程开始,切换,结束等信息。
Java编程 1、锁定某个主题抓取; 2、能够产生日志文本文件
1、锁定某个主题抓取;
2、能够产生日志文本文件,格式为:时间戳(timestamp)、URL;
3、抓取某一URL时最多允许建立2个连接(注意:本地作网页解析的线程数则不限)
4、遵守文明蜘蛛规则:必须分析robots.txt文件和meta tag有无限制;一个线程抓完一个网页后要sleep 2秒钟;
5、能对HTML网页进行解析,提取出链接URL,能判 ...
Linux/Unix编程 This book is intended for embedded system programmers, consultants and students interested in real-t
This book is intended for embedded system programmers, consultants and students interested in real-time operating
systems. μC/OS-II is a high performance, deterministic real-time kernel and can be embedded in commercial products
(see Appendix F, Licensing). Instead of writing your own kernel, you s ...
编译器/解释器 输入已经消除左递归的以及提取公共左因子的LL(1)文法
输入已经消除左递归的以及提取公共左因子的LL(1)文法,再输入相应的表达式,若分析成功,则在递归输出过程中输出"acc",若不成功,则有相应的报错以及位置指名。注意,要把同一个非终结符的产生式分成单个输入。他会自动计算first,follow,预测分析表的构造,但并不输出。 ...