码迷,mamicode.com
首页 >  
搜索关键字:24 point game    ( 12592个结果
百度地图是用过程笔记
记忆力不行,做过好多东西,下次用的时候还会忘记,于是就记录一些,为了以后更快的入手:1.marker的点击事件中获取marker的信息 在函数中this就代表当前的markerthis.getPosition()就获取到了marker的位置,不能用e.point 这个是点击的位置。
分类:其他好文   时间:2014-05-26 15:14:03    阅读次数:195
Mahout 模糊kmeans
FCM 算法用一个Job寻找cluster的中心点。在map的初始化节点,加载初始化(或上一轮迭代的结果)中心点。在map中计算point 和每一个簇的亲和度。在combiner计算同一个cluster的参数,该过程只能计算同一cluster的局部信息。在reduce中首先计算同一个cluster的全局参数,然后计算该cluster是否收敛,输出cluster。...
分类:其他好文   时间:2014-05-26 04:12:39    阅读次数:302
HDU4033:Regular Polygon(二分+余弦定理)
Problem Description In a 2_D plane, there is a point strictly in a regular polygon with N sides. If you are given the distances between it and N vertexes of the regular polygon, can you calculate t...
分类:其他好文   时间:2014-05-26 03:50:40    阅读次数:252
UVA 10843 - Anne's game(Cayley定理)
UVA 10843 - Anne's game 题目链接 题意:题意说得挺绕的,其实本质上就是求n个点,可以接连出多少种不同的生成树 思路:这是Caylay定理,网上能找到证明,结果为nn?2,然后利用快速幂去求解。 代码: #include #include const int long long MOD = 2000000011; int t; long long n;...
分类:其他好文   时间:2014-05-26 03:36:35    阅读次数:278
C++ 操作符函数
Point.h /*  * Point.h  *  *  Created on: 2014年5月22日  *      Author: John  */ #include using namespace std; #ifndef POINT_H_ #define POINT_H_ class Point { private: int x; int y; ...
分类:编程语言   时间:2014-05-26 03:19:07    阅读次数:399
结构体与字符串之间的转换
UIKIT_EXTERN NSString *NSStringFromCGPoint(CGPoint point);UIKIT_EXTERN NSString *NSStringFromCGSize(CGSize size);UIKIT_EXTERN NSString *NSStringFromCG...
分类:其他好文   时间:2014-05-26 02:44:06    阅读次数:209
线段交点模版
http://acm.hdu.edu.cn/showproblem.php?pid=1086跨立实验算法#include#include#include#includeusing namespace std;struct Point{ double x,y;} ;struct Line{ ...
分类:其他好文   时间:2014-05-26 02:10:52    阅读次数:224
LeetCode: Jump Game [054]
【题目】 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. Determine if you are able to reach the last index. For example:...
分类:其他好文   时间:2014-05-24 20:44:39    阅读次数:221
Leetcode的bug测试用例 ?? jump game
之所以说leetcode的测试用例有问题,是因为我刚开始理解错了题意,写下了如下的错误的代码。但是却AC了。 错误代码为: bool canJump(int A[], int n) { if(n == 0) return true; int sum = 0; //记录当前的最远距离 int i = 0; ...
分类:其他好文   时间:2014-05-24 19:45:57    阅读次数:1081
代码不仅仅考虑性能
今天阅读opencv2.0手册的时候,看到一句话,很有感触:Unless you are targeting embedded platforms, there’s no point to using the old methods(unless you’re a masochist program...
分类:其他好文   时间:2014-05-24 09:51:04    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!