码迷,mamicode.com
首页 >  
搜索关键字:voting algorithm    ( 11828个结果
[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
《Algorithm in C》by Sedgewick 读书笔记
Update: July 4, 2014 Chap 5: At the beginning, he mentioned that: recursion is a divide-and-conquer method. Although many algorithms can be solved in ...
分类:其他好文   时间:2014-07-06 15:24:36    阅读次数:213
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
【剑指offer】:Q44:扑克牌的顺子
def IsContinuous(seq, num = 5): zeros = 0; d = 0 seq = sorted(seq) for i in range(num - 1): if seq[i] == 0: zeros += 1 continue if seq[i] == seq[i + 1]: return False d += seq[i + 1]...
分类:其他好文   时间:2014-07-04 07:11:20    阅读次数:171
检测乳腺癌细胞中的有丝分裂(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
蛮力字符串匹配算法
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
迷上了代码!