搜索资源列表
Tug og war.rar
- Tug of War A tug of war is to be arranged at the local office picnic. For the tug of war, the picnickers must be divided into two teams. Each person must be on one team or the other; the number of people on the two teams must not differ by more than
training
- 某企业将挑选一批新员工进行培训,遵循以下规则: 将所有员工排成1个圈,从12点位置开始编号为1,逆时钟方向编号到N,第N号员工在第1号的左手边 两位培训官开始选择员工,培训官甲从1号开始逆时钟方向数,数到第k号员工停下;培训官乙从N号开始顺时钟方向数,数到第m号员工停下 被选中的第k号和第m号员工不是同一人,两人同时送往制造培训 被选中的第k号和第m号员工是同一人,将一人送往检测培训 接着继续往下数,培训官甲同样数到k就停止,培训官乙同样数到m就停止,重复上述的选择 输入
first
- 二维傅里叶变换,对图像进行二维傅里叶变换处理-Two-Dimensional Fast Fourier Transform The purpose of this project is to develop a 2-D FFT program "package" that will be used in several other projects that follow. Your implementation must have the capabilitie
find_the_marble
- 利用动态规划算法解决猜测弹珠位置的问题Alice and Bob are playing a game. This game is played with several identical pots and one marble.-Alice and Bob are playing a game. This game is played with several identical pots and one marble. When the game starts, Alice puts th
LRgrammar
- 在本章中主要介绍如何判断LR文法,详细介绍计算机在分析LR的思想,以及相关的FIRST,FOLLOW,SELECT的分析方法,并附加了解释各种FIRST,FOLLOW,SELECT的例子,简单易懂-In this chapter describes how to determine the main LR grammar, detailed computer analysis of the idea of LR, as well as FIRST, FOLLOW, SELECT method,
bank
- 假设某银行有四个窗口对外接待客户,从银行开门起就不断的有客户进入银行。由于每个窗口在某时刻只能接待一个客户,因此在客户众多时需按先后顺序排队,设计一个程序,遵循先到者先办理的原则,模拟银行办理业务的效率最高,客户耗时最少的情形。-Suppose there are four windows of a bank receiving external customers, starting from the bank have continued to open the door into the
tingchechang
- 设停车场是一个可以停放n辆汽车的狭长通道,且只有一个大门可以供车辆进出。车辆按到达停车场时间的早晚依次从停车场最里向大门口处停放(最先到达的第一辆车放在停车场的最里面)。如果停车场已放满n辆车,则后来的车只能在停车场大门外的便道上等待,一旦停车场内有车开走,则排在便道上的第一辆车就进入停车场。停车场内如有某辆车要开走,在它之后进入停车场的车都必须先退出停车场为它让路,待其开出停车场后,这些车辆再依原来的次序进场。-Parking lots is a vehicle that can accomm
tree
- 二叉树的创建、先序遍历、中序遍历、后续遍历、叶子数、节点数等的统计-Binary tree creation, the first order traversal, inorder traversal, the follow-up traversal, leaf number, number of nodes and other statistics
Follow-upbinarytreetraversal
- 上帝王牌:给出先序遍历和中序遍历,求后续遍历,要求: 函数头如下: bool getPostOrder(const char* perOrder, const char* inOrder, char* postOrder) 返回值是一个布尔 代表是否有这样的二叉树 用法: char* perorder = "abdgcefh" char* inorder = "dgbaechf" 或者 char* inorder = "abcde" char post
Prediction_program
- 对于任意输入的一个LL(1)文法,构造预测分析程序,输出输入串的自动匹配过程。首先实现集合FIRST(X)构造算法和集合FOLLOW(A)构造算法,再实现预测分析表构造算法。再构造预测分析程序,输出字符串的自动匹配过程。-For any input of a LL (1) grammar, structure prediction analysis program, import and export series of automatic matching process. First of
test
- 两个长度不定的升序链表,两个链表中数据有可能重复,先找到混合的第n个数然后输出后续m个 (可重复),时间复杂度为n。 -Two variable-length list in ascending order, the two data are likely to repeat the list, first find the number of mixed and then output the first follow-up n m a (repeatable), the time com
grammar
- SLR语法分析器,自动生成。生成项目集,求First集,求Follow集,生成goto表和action表。-SLR parser, automatically generated. Build the project set, First set of requirements, seeking Follow sets, action table and goto table generation.
syntax
- LL(1)文法的实现。具体设计要求如下: 1. 可以使用任何语言来完成,例如:Java、C、C++。 2. 文法采用常用的方式进行描述,例如:S→aA。 3. 以文件方式读取文法。 4. 分别求出每一个非终结符FIRST 集FOLLOW集和SELECT集。 5. 画出预测分析表。 6. 判定读入的文法是否是LL(1)文法。 7. 给定的任意符号串判定是否是文法中的句子,将分析过程用计算机打印出来。 8. 查出文法中是否含有左递归或左公因子。若有则消除左公因子和左递
car
- 设有一个可以停放n辆汽车的狭长停车场,它只有一个大门可以供车辆进出。车辆到达停车场时间的早晚依次从停车场最里面向大门口处停放(最先到达的第一辆车放在停车场最里面)。如果停车场已放满n辆车,则后来的车辆只能停在停车场大门外的便道上等待,一旦停车场里有车开走,则排在便道上的第一辆车就进入停车场。若停车场内有某辆车要开走,在它之后进入停车场的车都必须先退出停车场,为它让路,待其开出停车场后,这些车再依原来的次序进场。每辆车离开停车场 时,都应根据其在停车场的逗留时间交费。如果停留在便道上的车未进停车场
CPPK-means
- K均值聚类首先需要确定聚成几类,然后按照迭代的方法,计算类的重心,然后按照向量和类重心的聚类重新分类,反复重复,直到分类稳定或者重心稳定。-K means clustering first need to identify clustered into several categories, and then follow the iterative method to calculate the focus of the class, and then follow the center of
5091209073_2
- 编写一个程序要求用户输入一段文字,然后按照每个单词的开头字母对这段文字分类统计单词的数量并排序输出。(sjtu 二专 作业2)-Write a program that requires the user to input a paragraph of text, and then follow the first letter of each word on the statistics of this text and sort out the number of words. (Sjtu
Arithmetic
- 四则运算主要是用字符串形式接收一个带括号的四则运算表达式,然后按照四则运算优先级的算法先括号,后乘方,乘除,加减这样的顺序将这个算式解出。-Arithmetic is mainly used to receive a string of four operations with the expression in parentheses, and then follow the four operations in parentheses first priority of the algori
tree
- 实现二叉树的建立,以及先序,后续,中序的递归和非递归遍历-The establishment of a binary tree, and the first order, follow-up, in order recursive and non recursive traversal
maintenance-of-of-binary-tree-VC
- 实现二叉排序树维护子系统实现,实现查找、插入、删除、修改操作。首先要建立一棵二叉排序树,建立树根,然后按照中序遍历依次建立二叉排序树。运用switch的四个case实现各个操作,每个case中调用相应的子程序。子程序是选择要进行的操作:查找、插入、删除、修改。-Binary sort tree maintenance subsystem to achieve, to achieve the find, insert, delete, and modify operations. First ne
Kmeans
- 在不同环境下,同一段基因编译出不同的RNA基因编译结果不同,变异导致蛋白质不正确表达,出现病症不规则问题,实用性问题-After the scan has been made, the analysis will follow. The dimensions of the array cause the first problem. The individual spots on the array are so microscopically small, that one single du
