码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
高效的非极大值抑制
http://blog.sina.com.cn/s/blog_679e1329010141x3.html本文参考论文 ICPR2006-《Efficient Non-Maximum Suppression》一、简介非极大值抑制(NMS)可以看做是局部最大值的搜索问题,NMS是许多计算机视觉算法的部分...
分类:其他好文   时间:2015-03-09 20:36:10    阅读次数:191
Twitter OA prepare: Anagram is A Palindrome
Algorithm:Count the number of occurrence of each character.Only one character with odd occurrence is allowed since in a palindrome maximum number of c...
分类:其他好文   时间:2015-03-09 12:38:44    阅读次数:145
c语言中的#ifdef和#ifndef
#include "stdio.h"#include "conio.h"#define MAX#define MAXIMUM(x,y) (x>y)?x:y#define MINIMUM(x,y) (x>y)?y:xvoid main(){int a=10,b=20;#ifdef MAXprintf(...
分类:编程语言   时间:2015-03-08 21:32:45    阅读次数:195
最大子矩阵
例题:timus1146. Maximum Sum最大子矩阵可转化为最打子序列问题,最长子序列可以这样做:设a[N],则a[N]的最大子序列有两种可能(1)一直连续到a[i]。(2)从a[i]开始 。(如果不包括a[i]则之前已经算好,不用管)。则可以利用这个循环来求最大子序列int maxl(in...
分类:其他好文   时间:2015-03-08 21:31:17    阅读次数:128
LeetCode 笔记26 Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:其他好文   时间:2015-03-08 21:30:59    阅读次数:155
【推理,贪心】UVa 1319 - Maximum
看到了大神的代码。理解了好久。。。真是差距。题意:给出m, p, a, b,然后xi满足已下两个公式, 求xp1+xp2+...+xpm的最大值。1、-1/sqrt(a) 0)2、x1+x2+...+xm = b*sqrt(a);注意:p为偶数。解题思路:因为p为偶数,所以sqrt(a)和-1/sq...
分类:其他好文   时间:2015-03-08 21:29:30    阅读次数:164
Maximum Subarray -- leetcode
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,?1,2,1,?5,4], the contiguous subarray [4,?1,2,1] ha...
分类:其他好文   时间:2015-03-08 11:49:56    阅读次数:140
LeetCode --- 53. Maximum Subarray
题目链接:Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,?1,2,1,?5,4], the contiguous s...
分类:其他好文   时间:2015-03-07 11:38:51    阅读次数:198
LeetCode Jump Game II
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal i...
分类:其他好文   时间:2015-03-07 01:03:47    阅读次数:155
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...
分类:其他好文   时间:2015-03-06 18:53:01    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!