码迷,mamicode.com
首页 >  
搜索关键字:clustering algorithm    ( 12082个结果)
[LeetCode] Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-07-07 08:19:36    阅读次数:151
Leetcode Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:其他好文   时间:2014-07-05 19:10:48    阅读次数:219
Leetcode First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:其他好文   时间:2014-07-05 18:37:04    阅读次数:188
DFA最小化 -- Hopcroft算法 Python实现
问了 30 个技术群,也问了无数的前辈,真是各种不礼貌,吃了无数闭门羹,还是自己看着有点眉目了 还有 wiki 的伪代码看了总觉得奇怪,于是看了同一页面其他语言翻译过来的伪代码, 发现葡萄牙语和俄罗斯语那里的 if 判断都还缺少一个条件 国内的资料比较少,这几份学习资料不错,比我稀里糊涂的思路要好,分享下: http://www.liafa.univ-paris-diderot.f...
分类:编程语言   时间:2014-07-05 10:40:37    阅读次数:331
检测乳腺癌细胞中的有丝分裂(2)
Mitosis Detection in Breast Cancer Histology Images with Deep Neural Networks...
分类:其他好文   时间:2014-07-05 10:35:21    阅读次数:418
Python中的二叉树查找算法模块
问题 Python中的二叉树查找算法模块 思路说明 二叉树查找算法,在开发实践中,会经常用到。按照惯例,对于这么一个常用的东西,Python一定会提供轮子的。是的,python就是这样,一定会让开发者省心,降低开发者的工作压力。 python中的二叉树模块内容: BinaryTree:非平衡二叉树 AVLTree:平衡的AVL树 RBTree:平衡的红黑树 ...
分类:编程语言   时间:2014-07-04 07:47:15    阅读次数:287
检测乳腺癌细胞中的有丝分裂(1)
ICPR和MICCAI最近几年挺关注乳腺癌细胞中的有丝分裂的检测,我也来研究研究,虽然不知道最后自己能搞成什么样。 今天看了这篇文章《Automated Mitosis Detection based on eXclusive Independent Component Analysis》,发表在Pattern Recognition (ICPR), 2012 21st Internatio...
分类:其他好文   时间:2014-07-03 17:43:17    阅读次数:265
【剑指offer】q34:丑数
题目要求第n个丑数,所以对于中间结果不需要保存。 def Humble(index): curHum = 1 M2 = 2; M3 = 3; M5 = 5 while index > 1: curHum = min(min(M2, M3), M5) while M2 <= curHum: M2 *= 2 while M3 <= curHum: M3 *= 3 w...
分类:其他好文   时间:2014-07-03 17:29:40    阅读次数:214
【剑指offer】Q40:数组中出现一次的数字
按着书里面讲述的方法,根据某一位来将整个数组拆分成两个部分,取每一部分中出现一次的数。书中的处理略显复杂,这里简化下分类的方法。 def once(array): reOR = 0 for x in array: reOR ^= x bit1 = firstBit1(reOR) first = 0 second = 0 for x in array: if x & ...
分类:其他好文   时间:2014-07-03 13:50:52    阅读次数:181
蛮力字符串匹配算法
Algorithm: BruteForceStringMatch(T[0..n-1],P[0..m-1]) //该算法实现了蛮力字符串匹配 //输入:一个n个字段的数组T[0..n-1]代表一个文本 //一个m个字段的数组P[0..m-1]代表一个模式 //输出,如果查找成功的话,返回文本的第一个匹配字串中第一个字符的位置,否则返回-1 for i j while j j if...
分类:其他好文   时间:2014-07-03 13:36:24    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!