THE SECANT METHODIn numerical analysis, the secant method is a root-finding algorithm that uses a succession of roots of secant lines to better approx...
分类:
其他好文 时间:
2015-07-16 15:45:41
阅读次数:
146
http://wiki.ros.org/ROS/EnvironmentVariables
ROS/ EnvironmentVariables
在ROS中,可以设置很多环境变量。最需要理解的是ROS_MASTER_URI,ROS_ROOT和ROS_PACKAGE_PATH,因为他们频繁的在系统和文件中被用到。
环境变量在ROS中有多重角色:
1 寻找packages(Finding...
分类:
其他好文 时间:
2015-07-13 14:17:02
阅读次数:
8298
题意 已知LCM(a, b, c) = L 和 a、b、L 求最小的满足等式的c.
把数展开为素因子积的形式后
GCD(a,b)就是a,b的公共素因子取在a、b中的较小指数
LCM(a,b)就是a,b的所有素因子取在a、b中的较大指数
令m = LCM(a,b) 那么问题转化为了求最小的c满足 LCM(m, c) = L
那么最小的c就是L中不在m中的素因子和L...
分类:
其他好文 时间:
2015-07-12 11:11:45
阅读次数:
200
hdu 1231, maximum consecutive sum of integers, finding the boundaries, possibly all negative, C++...
分类:
编程语言 时间:
2015-07-12 09:38:28
阅读次数:
137
2014年05月26日薄荷开源网,mintos,网如其名,自然最关注的还是 Linux Mint 这个 DistroWatch 排名第一的 Linux 发行版。奈何此前的Linux Mint 17 Cinnamon RC 版仍旧存在与 fcitx 冲突的问题,导致在 Nemo 文件管理器中使用 fc...
分类:
系统相关 时间:
2015-07-10 20:48:16
阅读次数:
202
Description There are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out...
分类:
其他好文 时间:
2015-07-04 16:40:17
阅读次数:
96
Data mining is the process of finding patterns in a given data set. These patterns can often provide meaningful and insightful data to whoever is inte...
分类:
其他好文 时间:
2015-06-26 17:52:38
阅读次数:
129
题意:
平面上有n个点,现在要求一个面积最小的矩形能完全覆盖其中的m个点(边界不算)。
分析:
求满足某个性质的最小区间的问题尺取法比二分还要高效,这题可以在x上暴力枚举,在y上用尺取法(在x,y上都用尺取法是不对的)。
代码:
//poj 3681
//sep9
#include
#include
using namespace std;
int n,m,ans;
struct P...
分类:
其他好文 时间:
2015-06-25 17:34:58
阅读次数:
122
题目:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@总时间限制:1000ms内存限制:65536kB描述Finding buried treasures is simple: all you need is a map! The pirate...
分类:
其他好文 时间:
2015-06-24 23:53:53
阅读次数:
138
这里,我介绍一下O(n)回文串处理的一种方法。Manacher算法.原文地址:http://zhuhongcheng.wordpress.com/2009/08/02/a-simple-linear-time-algorithm-for-finding-longest-palindrome-sub....
分类:
编程语言 时间:
2015-06-20 13:08:23
阅读次数:
192