资源列表
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
Twoforktrees
- 二叉树操作,掌握指针变量的含义,二叉树的结构特征,以及各种存储结构的特点及使用范围;指针类型描述、访问和处理二叉树的运算。程序1: 按先序次序输入二叉树中结点的值(一个字符),`0`表示空树,生成二叉树的二叉链表存储结构, a为指向根结点的指针。然后按中序顺序遍历二叉树。算法思想:先访问左子树,再访问根结点,最后访问右子树。-binary tree operation, grasp the meaning indicator variables, binary tree structure, a
Cheby15R0
- 计算切比雪夫多15孔定向耦合器小孔尺寸,精度较高,可方便的移植-Calculation of Chebyshev hole directional coupler 15 more holes size, high accuracy, can be easily transplanted
KMPandmax_match
- 1,KMP:实现了在一个字符串中查找字串的高效算法,复杂度为O(m+n) 2,max_match:求两个字符串的最大匹配字串 在vc6.0中调试通过,可以使用-1, KMP: realized in a string to find String efficient algorithm complexity is O (m+ n) 2, max_match: seeking two strings maximum matching string in the vc6.0 debug en
best_service
- 针对最佳服务次序问题,设置更有效的排序算法,来实现最佳服务次序问题。-Order problem for the best service, set more effective sorting algorithm to achieve the best service order issues.
radixsort
- 内排序,数据结构的一种排序方式,内排序的过程是一个逐步扩大记录的有序序列的过程-Of sorting, a sort of data structure, and gradually expand the orderly sequence length record
phone-num
- 通过电话号码的训练 尽量掌握单链表的有关运用-Training as much as possible by phone number linked to the use of a single master
duilie
- 可以输出队列中的当前元素,还可以对队列判空,进行入队和出队-Can output the current element in the queue, can also be sentenced to empty the queue, enqueue and dequeue
Matrix
- 稀疏矩阵的行数、列数和非零元素的个数 将稀疏矩阵 a转置,结果在稀疏矩阵 b中-The number of rows of sparse matrix, the number of columns and the number of nonzero elements of sparse matrix a transposition, results in the sparse matrix b
optionchoose
- 在开发子函数时,matlab存在正则方法和非正则方法,正则方法非常适合一个子函数功能的不断扩展与完善,此函数为辅助函数,增加子函数的可读性 例如一个函数drawfun(x,y,z,5,6),5表示用第5种方法插值,6表示markersize为6,它显然没有drawfun(x,y,z, kriging , markersize ,6)好看懂与理解。 kriging 如何就是5可以用optionchoose(varargin{4},{ linear , spline , inverse , re
mochila
- Problema da Mochila (NP-Completo)
The-application-stack
- 栈的运用,构建空顺序栈,取栈顶元素,入栈,出栈,栈顶元素与当前运算符优先级比较,判断是否为运算符-The use of the stack, in order to build an empty stack, take the top element, stack, stack, stack element with the current operator precedence compared to determine whether the operator