搜索资源列表
BDFS
- 用邻接表表示无向图的深度优先搜索遍历 有助于大家理解图的优先遍历问题-adjoining table with no plans to the depth-first search traverse help you understand the plans of the priority issues Traversing
c小应用
- 题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去掉不满足条件的排列。 2.程序源代码:-topic : 1,2,3,4 figures, the number can be formed with each other with no repeat of the triple-digit figures? How many are? 1. Program Analysis : c
求解约瑟夫问题
- 求解约瑟夫问题。设有n个人围成一个圆圈坐下,对所有围从的人从某个位置开始编号为1,2,3,……,n,从编号为1的人开始报数1,报数依交进行,报数n的人即出列,下一个人从1开始报数,再报数m的人便是第二个出列的人如此重复下去,直到最后一个人出列为止,于是便得到一个出列的顺序,这称之为约瑟夫(Josephu)问题。-solving problems. N individuals have formed a circle to sit down, all right Wai from the star
最短距离问题
- 求解网络中的最短路径。假设某个计算机网络有n个站点,依次编号为1,2,…,n;有的站点之间有直接的线路连接(即这两个站点之间没有其它站点),有的站点之间没有直接的线路连接。如果用三元组(i,j,f)来表示该网络中的站点I和站点j之间有直接的线路连接且它们之间的距离为f 当已知该网络各站点之间的直接连接情况由m个三元组(i1,j1,f1),(i2,j2,f2),…,(im,jm,fm)确定时,要求计算出对于网络中任意一个站点g(1≤g≤n)到其余各站点的最短距离。-the shortest pat
(1)
- 1、 用随机数生成的方式(要求用户输入随机数)产生一个迷宫:“1”表示墙,“0”表示路,最后的路径用“8”表示,若没有路径则打印报文,若有路径则打印出路径。 2、 通过堆栈及判断实现迷宫的自动寻找路径功能 -1, the random number generator of (requiring user input random number) produces a maze : "a" Wall said, "0" Lu said, the f
SortTest
- 说明: 这一段在复习数据结构和算法,有一些零星笔记,在Others这个归类下,欢迎指正。 对于排序算法,想做一个动态演示的东东,因此今天使用VB.net大概实现了一个,界面如下,代码有2个版本,一个可以指示当前循环的位置(但设计感觉不好,也找不到更好的办法),一个没有。 -Note : This section of the review of data structure and algorithm, a few scattered notes, in the classified
图论
- BFS、DFS、有向图、无向图中的各种算法的实现,可以自动生成图形。-BFS, DFS, to the map, no map to the realization of the algorithm can be automatically generated graphics.
FixMath
- 这是我本人编写的一个32位定点小数运算的函数库。对于没有浮点运算器的场合,可以提供进行小数运算的一种途径-This is my prepared in a 32-bit fixed point decimal computing functions. For no floating point unit occasions, it can provide for fractional arithmetic, as a way to
教学计划编制问题
- 大学的每个专业都要编制教学计划。假设任何专业都有固定的学习年限,每学年含两学期,每学期的时间长度和学分上限都相等。每个专业开设的课程都是确定的,而且课程的开设时间的安排必须满足先修关系。每个课程的先修关系都是确定的,可以有任意多门,也可以没有。每一门课程恰好一个学期。试在这样的情况下设置一个教学计划编制程序。 基本要求: (1):输入参数:学期总数,一学期的学分上限,每门课的课程号,学分,直接先修关系的课程号。 (2):课程号尽可能的集中在前几个学期中。 (3):若无解,
真正能跑的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)
thin-image
- 这是关于细化算法的一个源码,我在国外网站下载的,没有密码就可以解压,愿和大家一起共享!-This is a refinement of the algorithm source code, my foreign websites, and no password can be extracted, and is willing to share with everyone!
letoucaipiao
- 一些关于乐透彩票的基本算法,后面的程序都是用VB编的,同大家都用这VB吧!有兴趣的朋友可以来看看,讨论一下!没有这方面兴趣的朋友,我想也可以看看的,这里面有许多的算法真得很实用。-some lottery tickets on the basic algorithm, as the procedures are using VB series, we have used with this VB! Interested friends can come to see, discuss! No s
Simulate_Allocate_Memory_Implement_by_C
- 模拟内存分配的c语言实现 六、 实验目的 了解用户程序分配内存以及回收所用内存的过程,加深对操作系统存储管理机制的理解。 七、 实验内容 采用首次适应法、最佳适应法或最差适应法,编写一内存分配和回收模拟程序。 (提示:“内存空闲区”数组的设置原理类似于实验一。动态地随机产生新的“内存分配”或“内存回收”请求,再按照你选定的分配算法修改这个数组。由于这个实验的重点在于内存分配,所以不考虑与某内存区相关的进程情况。) -simulation memory allocation
duopidao
- 模拟多批道处理程序C# 操作系统课程设计,这个把握不大,没有好的测试例子。自己看吧。 转载请注明出自www.shootsoft.net-simulated multiple processing Road # C courses on operating system design, not grasp this, there is no good test case. Ion battery. Please specify reproduced from www.shoot
accept
- 数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in
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的公共子序列
shorttest_path_program
- 有N个城市,编号为0、1…N-1,每个城市之间的路径长度保存在二位数组a中,如a[i][j]表示城市i与城市j的路径长度。求某个城市到其余城市的最短路径。-cities are N, No. 0,1 ... N-1, every city path length between the two kept in a group median, if a [i] [j] i said cities and urban j length of the path. For a city to the o
libnxml-no-curl-2007-07-01ok
- libnxml-no-curl-简化版2007-07-01,一个别很不错的XML生成和解析程序。
NO-LIMIT
- 这是一个不错的二叉树 里面含有层次遍历,先序遍历 中序遍历 后序遍历等算法,很值得我们参考学习交流 NO limit 老王-This is a good binary tree which contains a level traversal, preorder traversal preorder traversal preorder traversal algorithms, it is worthy of our reference learning exchanges NO limi
a path with a distance of K and no loop
- 求无向图任意两个顶点是否存在距离为k且不含回路的路径(Whether any two vertex of an undirected graph has a path with a distance of K and no loop)
