搜索资源列表
Boyer-Moore-Hospool
- 匹配算法,Boyer-Moore-Hospool匹配算法 这个算法在大文件中搜索小pattern有很高效率。 推荐用来代替strstr() 这个实现我没有测过,不过应该不会有大问题。 C++的代码,容易使用:) -matching algorithm, Boyer - Moore-Hospool matching algorithm The algorithm in document search small pattern has a high efficiency
贪婪算法解决背包
- 运用贪婪算法能够很好解决0/1背包问题,这是我编的一个小程序,运行过很好。-greedy algorithm can be used to solve a very good 0 / 1 knapsack problem, this is my part of a small program running very good.
最小m段和问题
- 这个是非常常用的一个数据结构与算法的例子在我们平时的时候都有写过这样的最小M段的程序-This is a very common data structure and algorithm in the example when we have peacetime wrote the smallest of the procedure M
最大k乘积问题
- 相信很多人都有对此算法有过详细的了解,确实这个算法最K乘积问题应用的还是很广泛的-believe that a lot of people have this algorithm in detail with the understanding that this is indeed the most K algorithm application of the product or issue a very broad
复件 轮渡问题
- 1. 汽车轮渡口,过江渡船每次能载10辆车过江,过江车辆分为客车类和货车类,上渡船有如下规定:同类车先到先上船,客车先于货车上渡船,且每上4辆客车,才允许上一辆货车。若等待客车不足4辆,则从货车代替,若无货车等待允许客车上船。试写一个算法模拟渡口管理。 算法设计: 1客车和货车均建立一个链式队列,初始均为空。以后来一辆车不是货车就是客车,因此可以说整个程序的事件驱动event就是这两个,客车表示1,货车表示0. 2轮船还没有到达时客车和货车均按次序排在
数据结构算法与应用-C++语言描述789章
- 这个是C++常用数据算法的第789章,前六章已经再前面传过了,后面还有几章.-this data is commonly used algorithm C of Chapter 789, the former VI has again came across the front and there are several chapters.
排序算法Flash演示
- 数据结构的排序算法大家都听说过吧,现在有它的源程序演示,你不想要吗?-data structure algorithm you have heard about it and have demonstrated its source, you do not want?
Suan24
- 大家都玩过的24点牌的算法,提供了详细的算法。大家可以使用-24 points license the algorithm to provide a detailed algorithm. We can use
链表之VB实现(类)
- 链表一般是用C或C++实现的,用VB的类模块实现,试过吗?没想到可以实现吧-C or C + +, VB class module, tried? Never mind can achieve it
排序二叉树的应用数据结构课程设计
- 排序二叉树的应用数据结构课程设计.自己用来交过学期的设计报告.用好了请评价.-sort of binary tree data structure course design. Their handed over a semester to design reports. Please use the commentary price.
真正能跑的DES
- 看了大家上传得很多得DES算法,试了试很多是有调试问题得.这里一个自己用过得,完全没有问题,可是看下.(谢谢)-read you upload a lot in DES algorithm, Bomb many are in debugging problems. here they used a lead, there is no problem, but a glance. (Thank you)
ferry
- 该算法模拟渡口管理。过江渡船每次能载10辆车过江,过江车辆分为客车类和货车类,上渡船有如下规定:同类车先到先上船,客车先于货车上渡船,且每上4辆客车,才允许上一辆货车。若等待客车不足4辆,则从货车代替,若无货车等待允许客车上船。-the algorithm simulation ferry management. Jiang Ferry each can carry 10 cars crossing the river, crossing the river into passenger veh
过河算法
- 过河算法属于面试经典算法,有很多人会被问到,羊虎人咋个过河才安全-algorithm belongs to the river interviews classic algorithm, a lot of people asked that the sheep were 17th Tiger river safe
Strassen_8
- Strassn关于两个矩阵相乘的算法,同过分治原理把两个n*n的矩阵阶各分解成四个n/2*n/2阶的矩阵,当分解出来的矩阵阶数等于2时,求借各个小矩阵,若阶数大与2,就递归的调用前面方法,直到分解成2*2的子矩阵为止。-Strassn on two matrix multiplication, the algorithm, with the governing principle over two n * n matrix of the band decomposed into 4 n / 2
stackqueue
- 数据结构栈和队列基本源代码,并包括银行模拟、中缀表达式计算、列车调度、农夫过河问题等经典数据结构算法。-Stack and queue data structure of the basic source code, and includes Bank of simulation, in the calculation is made up of expressions, the train scheduling, the farmer across the river, such as the
river
- 运筹学实验1 农夫过河 的C++程序 方便学习运筹思想和编程。-Operations Research Experiment 1 the farmer across the river to learn C++ program to facilitate logistics thinking and programming.
famercrossriver
- 农夫过河问题描述的是一个农夫带着一只狼、一只羊和一棵白菜,处于河的南岸,而他要将这些东西带到北岸。但是他面前只有一条小船,而每次他只能带一件东西过河,由于食物链的关系,他不能将狼和羊同时留下,也不能将羊和白菜同时留下,但可以将狼和白菜同时留下。编写一段代码,描述农夫所采用的过河方法。 -Problem descr iption farmer across the river is a farmer with a wolf, a sheep and a cabbage, in the sout
tree3
- 树结构及其应用,扩充二叉树与哈夫曼树 树结构的存储实现 树的周游与农夫过河问题 -tree structure!
内部排序问题
- 简单农夫过河问题,利用栈来解决农夫过河问题(Simple farmer crossing the river)
logic2abc
- 三个和尚三个鬼过河。小船最多两个乘坐,最少一个。任何时候,在两岸边如果鬼的数量多于和尚,那么和尚就吃掉鬼,任务失败。(Please help the 3 cannibals and 3 missionaries to move to the other side of the lake.notice that:when there is on one side more cannibals than missionaries,the eat them)