码迷,mamicode.com
首页 >  
搜索关键字:map reduce    ( 27804个结果
python map函数
#!/usr/bin/pythondefadd100(x):returnx+100hh=[11,22,33]printmap(add100,hh)
分类:编程语言   时间:2014-08-15 14:51:29    阅读次数:250
查找目录下匹配.py或者.txt的文件
#!/usr/bin/pythondefendWith(s,*endstring_1):#*代表允许传输多个参数,名称统一为endstring为元祖,**为字典array=map(s.endswith,endstring_1)#map(调用的函数名称,给这个函数传的参数)ifTrueinarray:returnTrueelse:returnFalseif__name__==‘__main__‘:importoss=os.listd..
分类:其他好文   时间:2014-08-15 14:49:29    阅读次数:162
inifile 一个轻量级的INI文件解析库
inifile 一个轻量级的INI文件解析库:ini文件是一种常见的配置文件。它以简单的文字与简单的结构组成.INI文件会以不同的扩展名,如".ini.",".cfg".INI文件由3个重要的部分组成:参数(parameters),段(sections)和注释(comments).IniFile库既包含了INI文件的解析,也能够修改并保存INI文件。解析过程中如果INI文件中没有指定段名,则会指定一个空字符串作为段名,段采用map保存,而段中的参数则采用vector保存,因此支持参数名重复。IniFile除...
分类:其他好文   时间:2014-08-15 14:46:08    阅读次数:238
Mapreduce 小例子
mapreduce 测试小例子...
分类:其他好文   时间:2014-08-15 14:43:29    阅读次数:164
HDU4939:Stupid Tower Defense(DP)
Problem Description FSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by building traps to slow them down and towers whic...
分类:其他好文   时间:2014-08-15 14:42:48    阅读次数:188
HDU4941:Magical Forest(map)
Problem Description There is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a lot of energy, Each fruit has its location(Xi, Yi) and the ...
分类:其他好文   时间:2014-08-15 14:42:38    阅读次数:308
POJ 3481 Double Queue(STL)
题意  模拟银行的排队系统  有三种操作  1-添加优先级为p 编号为k的人到队列  2-服务当前优先级最大的   3-服务当前优先级最小的  0-退出系统 可以用stl中的map   因为map本身就根据key的值排了序   对应2,3  我们只需要输出最大或最小就行了并从map中删除该键值 #include #include using namespace std; map a; int ...
分类:其他好文   时间:2014-08-15 14:40:09    阅读次数:289
uva 10004 - Bicoloring
BicoloringIn 1976 the ``Four Color Map Theorem" was proven with the assistance of a computer. This theorem states that every map can be colored using....
分类:其他好文   时间:2014-08-15 14:23:23    阅读次数:195
It Is Essential To Use Cellophane Bags To Protect These
Like most moms today are trying to reduce the amount of sugar and processed foods your child is in contact with the challenge is to come up with gadge...
分类:其他好文   时间:2014-08-15 12:35:48    阅读次数:253
ChainMapper/ChainReducer 的实现原理
ChainMapper/ChainReducer 主要为了解决线性链式Mapper 而提出的。也就是说,在Map 或者Reduce 阶段存在多个Mapper,这些Mapper 像Linux 管道一样,前一个Mapper的输出结果直接重定向到下一个Mapper 的输入,形成一个流水线,形式类似于[MA...
分类:移动开发   时间:2014-08-15 12:20:18    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!