搜索资源列表
公共子序列
- 本算法实现的是对两个单字符串的扫描,找出其最长公共子序列。-the algorithm to achieve the two-string scan, identify its longest public sequences.
fina_ver
- 用迷宫算法实现聚点的统计,这里只是简单扫描每个像素的四个方向,当然,可以很容易修改源码,实现八个方向的扫描,至于聚点嘛,就是被数码0包围的数码1组成的块,这种算法在元件识别方面可以应用。-maze algorithm used accumulation of statistics, here simply scanning each pixel of the four directions, of course, you can easily modify the source codes to
Calculate000
- 可以识别输入的算术表达式并计算机结果,支持+、-、*、/四则运算及嵌套的(),比如4*3+5*((16+8)/2-5)。 利用后缀表达式计算。-can identify imported computer arithmetic expression and the results support ,-,*, / 4 Operational and nested (), such as 3 5 4 * * ((16 8) / 2-5). The use of the suffix formul
KeyPath
- 数据结构中关键路径算法的实现与应用。介绍求关键路经的算法,对于给出的事件结点网络,要求求出从起点到终点的所有路径,经分析、比较后找出长读最大的路径,从而得出求关键路径的算法。-data structure Critical Path algorithm implementation and application. Introduced for passing key algorithm is given for the incident node network requirements de
++cifafenxicompiler
- 编译原理的实验--设计一个词法分析器,可以识别C中的关键字和各种符号-compiler principle experiments -- design a lexical analyzer can identify C keywords and various symbols
treeoperate
- 树的各种基本操作都包括了,四种遍历,查找节点等-tree basic operations are included, four traversal, identify nodes
LCS_Dynamic_Programming
- LCS(最长公共子序列)问题可以简单地描述如下: 一个给定序列的子序列是在该序列中删去若干元素后得到的序列。给定两个序列X和Y,当另一序列Z既是X的子序列又是Y的子序列时,称Z是序列X和Y的公共子序列。例如,若X={A,B,C,B,D,B,A},Y={B,D,C,A,B,A},则序列{B,C,A}是X和Y的一个公共子序列,但它不是X和Y的一个最长公共子序列。序列{B,C,B,A}也是X和Y的一个公共子序列,它的长度为4,而且它是X和Y的一个最长公共子序列,因为X和Y没有长度大于4的公共子序列
PackageProblem
- 实现背包问题 package problem 1. 问题描述 假设有一个能装入总体积为T的背包和n件体积分别为w1 , w2 , … , wn 的物品,能否从n件物品中挑选若干件恰好装满背包,即使w1 +w2 + … + wn=T,要求找出所有满足上述条件的解。例如:当T=10,各件物品的体积{1,8,4,3,5,2}时,可找到下列4组解: (1,4,3,2)、(1,4,5)、(8,2)、(3,5,2)。 2. 基本要求 读入T、n、w1 , w2 , … , wn
LRU2
- LRU对列队的实现,就是实现找出最近最少用的元素的算法.-LRU lined up to the realization that to achieve at least recently used to identify the elements of the algorithm.
01package
- 背包问题优先队列分枝限界算法 所谓的背包问题,可以描述如下:一个小偷打劫一个保险箱,发现柜子里有N类不同大小与价值的物品,但小偷只有一个容积为M的背包来装东西,背包问题就是要找出一个小偷选择所偷物品的组合,以使偷走的物品总价值最大。这个问题的求解有很多种方法,本程序使用分枝限界法求解。-knapsack problem Branch and Bound priority queue algorithm called knapsack problem can be described as f
onebittrie
- 单比特树查找算法,是用于路由查找的,内含有路由查找相关资料-Monobit tree-search algorithm is used to identify the routing, which contain routing information Search
31yn
- 设计一个O(n2)时间的算法,找出由n个数组成的序列的最长单调递增子序列。-design an O (n2) time algorithm to identify by the number n of the longest sequence monotonically increasing sequences.
Delphi_1016
- 《Delphi算法与数据结构》源码 Delphi开发人员Julian Bucknall从实用角度为广大程序员提供了有关使用算法和数据结构的一个详尽的介绍。Bucknall先从算法性能的讨论开始,涵盖了诸如数组、链表和二叉树等内容。这本书强调了查找算法(如顺序和二分查找),另外也重点介绍了排序算法(包括冒泡排序、插入排序、希尔排序、快速排序和堆排序),此外还提供了有关的优化技术。不仅如此,作者还介绍了散列和散列表、优先队列、状态机和正则表达式以及诸如哈夫曼和LZ77等数据压缩技术。 随附光
Expression-D.S.Report2
- 数据结构课程设计报告,算术表达式求值,自动辨别算符优先级,括号,将char型转换成int计算,再将结果显示,具有精美用户界面-data structure curriculum design, arithmetic expression evaluates automatically identify operator precedence, in brackets, char to int conversion type, the result shows that the user inte
sushudui
- 编制函数prime,用来判断整数n是否为素数:bool prime(int n); 而后编制主函数,任意输入一个大于4的偶数n,找出满足n=i+j的所有数对,其中要求i与j均为素数(通过调用prime来判断素数)。如偶数18可以分解为11+7以及13+5;而偶数80可以分解为:43+37、61+19、67+13、73+7。-establishment prime function, used to judge whether the integer n is prime : bool prime
HeapSort
- 实现heap排序的算法,首先把Heap建立起来,然后通过对Heap的根节点来找出当前最小的节点,依次就可以实现排序了。-achieve heap sorting algorithm to first establish Run, then Run right through the current nodes to identify the smallest nodes can be followed to achieve the ranking.
AOE-net
- 该程序能实现的功能,若活动图有回路则无法计算出关键路径,即解决了判断工程的可行性问题。通过对工程活动的输入,可以建立任意的AOE网进行判断。对于输入的网,可以计算出每个活动的最早开始时间,最迟开始时间和全工程可以完成的最早时间,并找出关键路径和关键活动。-the program can achieve the functional, if a circuit map activities can not be calculated critical path, that is a judgmen
ZYSBB
- 数据结构之重言式辨别 数据结构之重言式辨别数据结构之重言式辨别-Data structure to identify data tautology tautology structure to identify the data structure to identify the tautology
jiandanxuanze
- 基本思想: 设所排序序列的记录个数为n。i取1,2,…,n-1,从所有n-i+1个记录(R,R[i+1],…,R[n]中找出排序码最小的记录,与第i个记录交换。执行n-1趟 后就完成了记录序列的排序。 -The basic idea: set up the sort of record sequence number for n. i get 1,2, ..., n-1, from all n-i+ 1 record (R, R [i+ 1], ..., R [n] in orde
StatisticsNumber
- 读入一个西文文本文件,找出文件中的不同字符,对各个不同字符的出现次数进行统计并输出。注意需要重新设定文本路径-Read the text into a text file with the West to identify the different characters in the document, and the emergence of the different number of characters and output statistics. Attention to the