码迷,mamicode.com
首页 >  
搜索关键字:clustering algorithm    ( 12082个结果)
tree
几种树:(1)平衡树:package com.jp.algorithm.tree;import java.util.Iterator;import java.util.NoSuchElementException;/** * 平衡二叉树 * * 定义:首先它是一种特殊的二叉排序树,其次它的左子树和....
分类:其他好文   时间:2014-06-28 17:14:17    阅读次数:156
【leetcode】Search a 2D Matrix
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:其他好文   时间:2014-06-28 15:14:05    阅读次数:194
PatentTips - Adaptive algorithm for selecting a virtualization algorithm in virtual machine environments
BACKGROUNDA Virtual Machine (VM) is an efficient, isolated duplicate of a real computer system. More than one VM may be provided concurrently by a sin...
分类:其他好文   时间:2014-06-28 14:27:00    阅读次数:433
Leetcode: Single Number II
Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime co...
分类:其他好文   时间:2014-06-28 13:44:09    阅读次数:188
LeetCode:Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k) extra space? ...
分类:其他好文   时间:2014-06-22 21:31:26    阅读次数:214
打印数字回环
题目要求: Input a value n, then print out a N×N matrix.     Example 1: Input 2, then 1 2 4 3     Example2: Input 4, then 1  2  3  4 12 13 14 5 11 16 15 6 10 9  8  7 Please write a program to...
分类:其他好文   时间:2014-06-22 00:38:02    阅读次数:409
要继续看Python写算法的内容请到那里去
因为在这里发文章的时候,莫名其妙的出现发布出去的问题,客服告知是因为链接或者敏感词。 能不能告诉我哪里出了问题?我可以修改,以便再发。 但是,没有人告诉我,只是告诉我不能发。 另外,能不能公布一下敏感词?以后我在遣词造句的时候,才可以避免。 但是,没有看到敏感词列表。 以后我的文章将发布在https://www.github.com/qiwsir/algorithm里面,有兴趣的可以到那...
分类:编程语言   时间:2014-06-21 23:08:09    阅读次数:211
最短路径问题的Dijkstra算法
问题 最短路径问题的Dijkstra算法 是由荷兰计算机科学家艾兹赫尔·戴克斯特拉提出。迪科斯彻算法使用了广度优先搜索解决非负权有向图的单源最短路径问题,算法最终得到一个最短路径树>    。该算法常用于路由算法或者作为其他图算法的一个子模块。   这个算法的python实现途径很多,网上能够发现不少。这里推荐一个我在网上看到的,本来打算自己写,看了这个,决定自己不写了,因为他的已经太...
分类:其他好文   时间:2014-06-21 20:58:46    阅读次数:183
RabbitMQ in Action(5): Clustering and dealing with failure
Batteries included: RabbitMQ clustering The clustering built in to RabbitMQ was designed with two goals in mind: allowing consumers and producers to k...
分类:其他好文   时间:2014-06-21 16:31:16    阅读次数:276
BitMap排序-大数据量节省空间
package com.jp.algorithm.sort;/** * 假设我们要对0-7内的5个元素(4,7,2,5,3)排序(这里假设这些元素没有重复)。那么我们就可以采用Bit-map的方法来达到排序的目的。要表示8个数 * ,我们就只需要8个Bit(1Bytes),首先我们开辟1Byte的空...
分类:其他好文   时间:2014-06-21 16:20:21    阅读次数:352
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!