搜索资源列表
5个c程序源代码
- 五个c源代码 矩阵的运算方法 邻接矩阵求解最短路径 全屏幕模拟时钟 先序遍历非递归算法 字符串查找-5 c source code matrix arithmetic method adjacency matrix for the Shortest Path full-screen analog clock preorder non - recursive algorithm to search string
treetable
- 用java写得一个treetable实现,可以携带用户自己的数据类。本例带有一个简单得使用例子: 1、导入到Eclipse,把package换成你自己得package 2、运行TreetableMain.java即可 这是本人参考sun公司给出得那个treetable例子写得。重大改进如下: 1、sun公司的例子可能是由于写得较早,里面重写了TreeModel和AbstractTableModel的很多方法。本人改进了它里面的TreeTableModel和TreeTable
电院五子棋(PLAEEI)
- 一款自主开发的五子棋程序,乃无禁手算法,为本人参加校挑战杯的作品,获三等奖。该程序棋力强劲,在QQ中的战绩目前为: 积分:43 赢:44 输:27 平:2 胜率:60% 曾和网上四五款无禁手的五子棋程序对弈,十盘中一般能胜七八盘!先手基本没负过! 采用了递归算法预测下一步,不过由于是为了应付学校的挑战杯,代码写的不是很规范,递归算法也不完美,之后由于学习时间很紧张,也没时间改进,今天把源代码公布出来,和大家一起学习探讨!大家可以自由使用我的代码,不过有点要求是,如果有人对程序中
求二叉树的高度、叶子节点数
- 求二叉树的高度和深度,求高度时采用递归算法,求深度时采用非递归算法。-for binary tree height and depth, used for highly recursive algorithm, seeking depth of the use of non - recursive algorithm.
K1
- hanoi塔经典问题,采用递归算法,值得研究研究-Hanoi tower classic, using recursive algorithm, it is worth studies
inter
- 用VC实现的简单大数的划分,采用递归算法实现-with VC simple majority of the division, using recursive algorithm
汉诺塔游戏代码 v1.0
- 一个不用多说的游戏,是用递归算法思想的游戏,汉诺塔游戏,鼠标就拖动就可以玩。-one of the game is the use of recursive algorithm thinking of the game, HANOR games, a mouse drag it on and play.
递归算法快速排序
- 分而治之方法还可以用于实现另一种完全不同的排序方法,这种排序法称为快速排序(quick sort)。在这种方法中, n 个元素被分成三段(组):左段l e f t,右段r i g h t和中段m i d d l e。中段仅包含一个元素。左段中各元素都小于等于中段元素,右段中各元素都大于等于中段元素。因此l e f t和r i g h t中的元素可以独立排序,并且不必对l e f t和r i g h t的排序结果进行合并。m i d d l e中的元素被称为支点( p i v o t )。图1 4
各种二叉树的数据结构
- 按先序扩展序列建立二叉树,先序、中序、后序遍历的递归算法,二叉树遍历的非递归算法,层次的非递归算法,求二叉树的深度。-sequence extended by the first sequence established binary tree, first sequence, sequence, after the preorder the recursive algorithm, the binary tree traversal non - recursive algorithm, the
二叉树jian
- 这个程序采用先序建立二叉树,并分别使用递归和非递归算法实现了对该二叉树的先中后序的遍历输出,并给出了一定的使用说明-this procedure was used in order to establish a binary tree respectively, and the use of recursive and non - recursive algorithm of this binary tree after the first sequence which Ergodic outp
骑士遍历问题
- 骑士遍历问题源代码,利用递归算法编程,我倒,这个还要说多详细?-Cleveland traverse the problem source code, the use of recursive algorithm programming, I do, we still have more details?
两种遍历图的方法
- 熟悉图的两种常用的存储结构,以及在这两种存储结构上的两种遍历图的方法,即深 度优先遍历和广度优先遍历。进一步掌握递归算法的设计方法。 -familiar with the plans of two commonly used storage structure, and the two storage structures on the two traverse map, that depth-first traversal and breadth priority traversal.
李森数据结构作业
- 文件夹中包括常用的数据结构的算法,包括二叉树的三种递归和非递归算法,染色问题,八皇后问题,深度广度遍历,约瑟夫环,数值转换,树的高度和叶子节点数,最小生成树 ,两点之间的所有路径-folder include common data structure of the algorithm, including the three binary tree recursive and non - recursive algorithm, Dyeing, 8 Queen, depth and bread
传教士与野人问题
- 传教士和野人问题是人工智能中的经典问题。本程序采用递归算法求解。定义一个函数,该函数返回一个解路径,路径可以用规则序列表示,也可以用状态序列表示。比如,用规则序列表示,可以表示为:(1 1)(1 0)。。。 表示:过去1个传教士,一个野人,回来一个传教士,。。。如果用状态序列表示,可以表示为:(3 3 1)(2 2 0)(3 2 )。。。 路径用一个链表表示,该函数返回该链表。在main中调用该函数,并打印输出该路径。-missionaries and Savage is a classic A
VB_hanoi
- 汉诺塔演示程序,VB书写,有一定的教学意义,可以作为递归算法的演示程序-HANOR demo program, VB writing, teaching a certain significance, recursive algorithm can be used as a demo program
10bullets90
- 十发子弹打中90环的解法,很多公司都采用这道题作为笔试题,在此提供了递归算法,大家可以共同研究一下-10 bullets hit the 90 Central solution, many companies have adopted Jesus as the T test, in a recursive algorithm, we can jointly study
myhannuota
- 用非递归算法写的汉诺塔程序,盘数可以改变,适合课件演示-non - recursive algorithm HANOR written procedures, bookkeeping can be changed, and courseware for demonstration
netsafe
- 爱因斯坦在20世纪初出的这个谜语。他说世界上有98%的人答不出来。某家公司在面试应聘者时借用了爱因斯坦的这个IQ题,考查应聘者的IQ,现在我们暂且不去讨论这个公司用这样的题目来考查应聘者的IQ有多“变态”,如果是你,拿到了这样的笔试题目,你能做得出来吗? 1、在一条街上,有5座房子,喷了5种颜色。 2、每个房里住着不同国籍的人 3、每个人喝不同的饮料,抽不同品牌的香烟,养不同的宠物 问题是:谁养鱼? 提示: 1、英国人住红色房子
CurvePainter
- n次贝塞尔曲线及三次b样条曲线的绘制,使用自己编写的curve类,实现曲线上点坐标的计算与绘制,曲线点坐标的计算使用递归算法。点击左键设定控制点,之后点击右件绘制曲线。-n Bessel curve and three b-spline curve mapping, prepared to use their own type of curve, curve coordinates of the point on the calculation and drawing, curve coordi
programing
- 三十六进制转换,没有进行递归算法,自己想的就写了.还有条码机的指令(ZEBRA)-36 base for the conversion, no recursive algorithm, we think it was made. There barcode machine directive (ZEBRA)