1 / 136
文档名称:

Module 4 - MapReduce Theory and Algorithms.ppt

格式:ppt   页数:136
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

Module 4 - MapReduce Theory and Algorithms.ppt

上传人:管理资源吧 2011/9/2 文件大小:0 KB

下载得到文件列表

Module 4 - MapReduce Theory and Algorithms.ppt

文档介绍

文档介绍:Google puting Faculty Training Workshop
Module IV: MapReduce Theory, Implementation, and Algorithms
This presentation includes content © University of Washington and/or Google, Inc.
Redistributed under the mons Attribution license.
All other contents:
© Spinnaker Labs, Inc.
Overview
Functional Programming Recap
MapReduce Theory & Implementation
MapReduce Algorithms
© Spinnaker Labs, Inc.
Functional Programming Review
Functional operations do not modify data structures: They always create new ones
Original data still exists in unmodified form
Data flows are implicit in program design
Order of operations does not matter
© Spinnaker Labs, Inc.
Functional Programming Review
fun foo(l: int list) =
sum(l) + mul(l) + length(l)
Order of sum() and mul(), etc does not matter – they do not modify l
© Spinnaker Labs, Inc.
Functional Updates Do Not Modify Structures
fun append(x, lst) =
let lst' = reverse lst in
reverse ( x :: lst' )
The append() function above reverses a list, adds a new element to the front, and returns all of that, reversed, which appends an item.
But it never modifies lst!
© Spinnaker Labs, Inc.
Functions Can Be Used As Arguments
fun DoDouble(f, x) = f (f x)
It does not matter what f does to its argument; DoDouble() will do it twice.
What is the type of this function?
© Spinnaker Labs, Inc.
Map
map f lst: (’a->’b) -> (’a list) -> (’b list)
Creates a new list by applying f to each element of the input list; returns output in order.
© Spinnaker Labs, Inc.
Fold
fold f x0 lst: ('a*'b->'b)->'b->('a list)->'b
Moves across a list, applying f to each element plus an accumulator. f returns the next accumulator value, which bined with the next element of the list
© Spinnaker Labs, Inc.
fold left vs. fold right
Order of list elements can be significant
Fold left moves left-to-right across the list
Fold right moves from right-to-left
SML Implementation:
fun foldl f a [] = a
| foldl f a (x::xs) = foldl f (f(x, a)) xs
fun fo

最近更新

2024年温州科技职业学院单招职业适应性测试题.. 41页

2024年湖北省荆门市单招职业适应性考试模拟测.. 40页

2024年湖北黄冈应急管理职业技术学院单招综合.. 40页

2024年湖南信息职业技术学院单招职业适应性考.. 40页

2024年湖南汽车工程职业学院单招职业倾向性测.. 41页

2024年湖南电气职业技术学院单招职业适应性考.. 42页

2024年湘西民族职业技术学院单招职业适应性测.. 41页

2024年潞安职业技术学院单招职业技能测试模拟.. 39页

2024年烟台城市科技职业学院单招职业适应性考.. 39页

2024年甘肃省平凉地区单招职业适应性测试模拟.. 39页

2024年甘肃警察职业学院单招职业技能测试题库.. 42页

2024年白银矿冶职业技术学院单招职业技能考试.. 41页

2024年益阳职业技术学院单招职业适应性考试模.. 42页

2024年石家庄医学高等专科学校单招职业倾向性.. 40页

2024年石家庄科技信息职业学院单招职业技能测.. 41页

2024年石家庄铁路职业技术学院单招职业适应性.. 40页

2024年福州工商学院单招职业技能考试模拟测试.. 40页

2024年福建卫生职业技术学院单招职业适应性考.. 38页

2024年福建理工大学单招职业适应性测试模拟测.. 38页

2024年福建省福州市单招职业倾向性测试模拟测.. 41页

2024年秦皇岛职业技术学院单招职业倾向性考试.. 40页

2024年苏州健雄职业技术学院单招职业技能测试.. 39页

2024年苏州工艺美术职业技术学院单招职业适应.. 41页

2024年荆州理工职业学院单招职业技能测试模拟.. 41页

2024年菏泽职业学院单招综合素质考试题库必考.. 40页

2025年医院感染管理质量控制评价内容及考核标.. 2页

2024年常州机电职业技术学院单招职业适应性测.. 78页

食品安全自查、从业人员健康管理、进货查验记.. 9页

康复医院设置标准1 14页

民间非盈利组织会计制度 7页