搜索资源列表
最大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
k均值聚类算法分析
- k均值聚类算法分析,采用C++编程技术,提供代码可重用机制 -k-means clustering algorithm analysis, the use of C programming, code reuse mechanism
k
- 求第k个最小值问题,中间用半快速排序,教师布置的作业
最大k乘积问题
- /*最大k乘积问题 问题描述: 设I是一个n位十进制整数。如果将I划分为k段,则可得到k个整数。这k个整数的乘积称为I的一个k乘积 。 试设计一个算法,对于给定的I和k,求出I的最大k乘积(n<=10)。 示例:输入为 : 4 3 结果:1234 */-/ k * Product of the biggest problems Descr iption : I set up is a n-bit decimal integer. If I will be divided into k, k
有向树K中值问题
- 给定一棵有向树T,树T中每个顶点u都有一个权w(u),树的每条边(u,v)也都有一个非负边长d(u,v)。有向树T的每个顶点u可以看做客户,其服务需求量为w(u)。每条边(u,v)的边长d(u,v)可以看做是运输费用。如果在顶点u处未设置服务机构,则将顶点u处的服务需求沿有向树的边(u,v)转移到顶点v处服务机构,则需付出的服务转移费用为w(u)*d(u,v)。树根处已设置了服务机构,现在要在树T中增设k处服务机构,使得整棵树T的服务转移费用最小。该算法对于给定的有向树T,计算在树T中增设k处服
K均值聚类
- 对图像进行K均值聚类的程序
求二叉树前序遍历序列中第k个结点的值
- 求二叉树前序遍历序列中第k个结点的值 c语言程序,已测试
UpperNum.rar
- 给定一个数组A,里面只出现0-9这10个数字,但不一定全部出现,然后给定一个K的值,求A中大于K的整数当中最小的一个,并输出。例如A={0,1}, k =12,则结果为100. vc++ 2005环境,Given an array A, which only the 10 digits 0-9, but not necessarily all appear, and then given a value of K, and K is greater than A, the smallest in
用分治法求第k小元素
- 用分治法求第k小元素 输入:程序从标准输入读入数据,第一行是一个整数n (1=<n<=100000)表示元素的个数,接下来的n行中每行有一个整数。最后一行是k,就是我们要找的第k小元素。 输出:针对每一组输入,输出一个结果,每个结果占一行。 例如: 输入 5↵ 123↵ 12↵ 1↵ 3↵ 4↵ 4↵ 输出: 12 ,Separation method using the first k elements in small
F-K
- 二维F-K偏移,声波波动方程程序,偏移归位算法。-Two-dimensional FK migration, acoustic wave equation program, offset algorithm
the-num-k-element
- 寻找中项和第k小元素 通过使用线性时间分析的数学方法 从而找到第k小元素 而不用排序以后再找-you can find the middle element and the num k element in a array which is not originally sorted
K_Medoids
- K-medoids算法的实现,c++实现-K-medoids cluster algorithm
K
- 最大K乘积问题。这个一个可以实现的代码。大家看看,参考一下。-The biggest problem of K product. This one can achieve code. Let us look at the reference.
report+of+Algorithm
- 算法设计的实验报告 包括Bottom-Up Merge Sorting算法、插入排序算法Heaps的创建堆、堆排序算法、按秩合并算法以及带路径压缩算法、实现查找第K小元素算法、实现快速排序算法、实现平面内最接近点对算法、实现最长公共子序列算法、实现矩阵链相乘算法、实现0/1背包问题算法、实现Dijistra’s算法、Prim算法、Kruskal算法、文件压缩算法-Experimental Algorithm Design Report including Bottom-Up Merge So
k_mean
- K_mean K均值算法 C语言-K_mean K means algorithm C language
K-Fibonacci
- 本程序演示的是一个K阶斐波那契序列实例,在程序运行中输入斐波那契的阶数为4,在序列中允许的最大数为3.-This procedure is a demonstration of the K-order Fibonacci sequence example, type in the program to run the order Fibonacci number 4, sequence at the maximum allowable number of 3.
K-mean
- K平均聚类法,比较好用,又需要的赶紧下吧-K-clustering method to compare easy to use, but also hastened to the needs of the next bar
caicai-K-conbine
- 此篇代码的功能是关于K路文件的归并,用于数据结构,算法等设计-Cipian functionality of the code files on K road merging, for data structures, algorithm design
JOSEPHUS
- 著名的约瑟夫环问题,采用链表数据结构 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 例如:n = 9, k = 1, m = 5 【解答】 出局人的顺序为5, 1, 7, 4, 3, 6, 9, 2, 8。-well-known Josephus Problem,using link list method
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)