码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
Java for LeetCode 152 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],t...
分类:编程语言   时间:2015-06-05 13:35:21    阅读次数:133
NMS:Non-maximum Suppression学习笔记
非极大值抑制可看成一种局部极大值搜索,这里的局部极大值要比他的邻域值都要大。这里的邻域表示有两个参数:维度和n-邻域。维度有1-D,2-D,3-D...;至于n值根据具体情况设置。举个例子:一维的情况,某个像素点左右各n个邻域点(加上该像素点,邻域区域共有2n+1个像素);二维的情况以当前像素为中心...
分类:其他好文   时间:2015-06-05 10:10:04    阅读次数:166
Java for LeetCode 149 Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.解题思路:本题主要需要考虑到斜线的情况,可以分别计算出过points[i]直线最多含几个点,然后算出最...
分类:编程语言   时间:2015-06-05 00:34:41    阅读次数:138
Maximum Subsequence Sum (25)
升级版的最大子列和问题没什么好说的#include using namespace std;int main(){ int n; cin >> n; int *a = (int*)malloc(n*sizeof(int)); for (int i = 0; i > a[i];...
分类:其他好文   时间:2015-06-04 22:38:40    阅读次数:191
【Distinct Subsequences】cpp
题目:Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the o...
分类:其他好文   时间:2015-06-04 21:03:00    阅读次数:130
Codeforces 484B Maximum Value(排序+二分)
题目链接: http://codeforces.com/problemset/problem/484/B题意: 求a[i]%a[j] (a[i]>a[j])的余数的最大值分析: 要求余数的最大值非常明显a[i]越接近a[j]的倍数则余数越大 ,因此我们将全部的元素从大到小排序 ;然后...
分类:编程语言   时间:2015-06-04 20:53:47    阅读次数:166
tcp一些要点
三次握手建立1、客户端向服务端发送syn。2、服务端向客户端回复syn+ack。3、客户端向服务端确认ack。建立链接的阶段, 客户端/服务端会确认mss(maximum segment size)。客户端发送mssA,服务器响应mssB。二者之间小的那个作为MSS。建立的过程一边确认RTT。四次挥...
分类:其他好文   时间:2015-06-03 23:14:23    阅读次数:234
尺取法 POJ 3601 Subsequence
题目传送门 1 /* 2 题意:求连续子序列的和不小于s的长度的最小值 3 尺取法:对数组保存一组下标(起点,终点),使用两端点得到答案 4 1. 记录前i项的总和,求[i, p)长度的最小值,用二分找到sum[p] - s[i] >= s的p 5 2...
分类:其他好文   时间:2015-06-03 21:26:58    阅读次数:161
NYOJ 36 最长公共子序列 (还是dp)
这个好多算法书上都有,不仅限于《算法导论》 时间限制:3000 ms  |  内存限制:65535 KB 难度:3 描述 咱们就不拐弯抹角了,如题,需要你做的就是写一个程序,得出最长公共子序列。 tip:最长公共子序列也称作最长公共子串(不要求连续),英文缩写为LCS(Longest Common Subsequence)。其定义是,一个序列 S ...
分类:其他好文   时间:2015-06-03 15:54:35    阅读次数:124
查看程序占用tomcat内存情况
最近,公司线上tomcat经常无缘无辜宕机,总结了一下定位问题的方法,仅供参考: 报错信息: Maximum number of threads (200) created for connector with address null and port 9443 # There is insufficient memory for the Java Runtime Environment t...
分类:其他好文   时间:2015-06-03 13:47:45    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!