码迷,mamicode.com
首页 >  
搜索关键字:amp    ( 86777个结果
Mahout学习
Mahout小案例学习,实现k-means算法。环境:OS:Centos 6.5 x64 & Soft:Hadoop 1.2.1 & Mahout 0.91、下载测试数据[huser@master hadoop]$ wget http://archive.ics.uci.edu/ml/databas...
分类:其他好文   时间:2014-05-04 12:34:58    阅读次数:340
数学公式再次测试
\begin{align*}\sum_{n=0}^{\infty}\frac{(n!)^{2}2^{n+1}}{(2n+1)!}&=\sum_{n=0}^{\infty}\int_{0}^{1}t^{n}(1-t)^{n}2^{n+1}dt\\&=2\int_{0}^{1}\sum_{0}^{\in...
分类:其他好文   时间:2014-05-04 12:28:56    阅读次数:284
线段数 --- (单点更新、求逆序对)
Minimum Inversion Number Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description The inversion number of a given number seque...
分类:其他好文   时间:2014-05-04 12:27:07    阅读次数:349
快速排序&基数排序
//快速排序#includevoid QuickSort(int R[],int low,int high){ int i=low,j=high; int pivot; if(lowpivot) j--; R[i]=R[j]; ...
分类:其他好文   时间:2014-05-03 23:18:57    阅读次数:322
hdu 1087 最大上升子序列和
题意:求最大上升子序列和#includeusing namespace std;int main(){ int n,a[1001],b[1001],max; while(cin>>n&&n!=0) { for(int i=1;i>a[i]; b[1]=a...
分类:其他好文   时间:2014-05-03 22:29:38    阅读次数:282
unicode string和ansi string的转换函数及获取程序运行路径的代码
#pragma once#include namespace stds { class tool { public: std::string ws2s(const std::wstring& ws) { std::string curLocale = setlocale(LC_ALL...
分类:其他好文   时间:2014-05-03 22:25:17    阅读次数:318
pig 调试(explain&illerstrate)
pig 调试(explain&illerstrate)...
分类:其他好文   时间:2014-05-03 21:58:37    阅读次数:284
boost::serialization(2)序列化基类
在派生类中序列化一个基类 假如有一个基类如下: class student_info { public: student_info() {} virtual ~student_info() {} student_info(const std::string& sn, const std::string& snm, const std::string& sg) : name_(sn),...
分类:其他好文   时间:2014-05-03 21:41:12    阅读次数:356
分解整数
分解整数 Description 作为Acmer的你现在接到任务,需要将整数n写成n=x1+x2+…..xk这种形式,其中xi(i>=1&&i 5=1+1+1+1+1,5=1+1+3,5=1+3+1,5=3+1+1,5=5这5中形式,求出n有多少种分解方法 Input 有多组输入,输入以文件结尾,每组输入一个整数n Output 输出分解方案的种数 Sample...
分类:其他好文   时间:2014-05-03 21:24:07    阅读次数:404
cf244D. Match & Catch 字符串hash (模板)或 后缀数组。。。
D. Match & Catch 可以用各种方法做,字符串hash,后缀数组,dp,拓展kmp,字典树。。。 字符串hash(模板) http://blog.csdn.net/gdujian0119/article/details/6777239 BKDR Hash Function : // BKDR Hash Function unsigned int BKDRHash(c...
分类:其他好文   时间:2014-05-03 21:20:47    阅读次数:282
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!