Skip to Main Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner to intermediate content levelBeginner to intermediate
830 pages
15h 21m
Chinese
GoTop Information, Inc.
Content preview from Mathematica 錦囊妙計
16.13 以 Map-Reduce 技巧處理大量檔案
|
669
討論說明
如果你想練習本文所述的
map-reduce
架構範例,請使用
Dictionary.m
MapReduce.m
套件,這些套件的程式碼內容以解說為主,請於範例中載
件, 使
DistributeDenitions
map
reduce
parse
等函數。[Page-673]
mapReduce.nb
檔案中提供一些使用範例。
如果你沒有
map-reduce
程式架構的設計經驗,在動手做之前最好先參考「延伸資訊」所
列的資訊,由 Google 研究員所撰寫的原創論文提供了快速入門的概述,並舉出比字數
計算更進階的應用。關於
map-reduce
架構,首先應了解的是,它只有在須處理的檔案數
量及平行運算核心數量都很大的情況下才是一個有效率的方法。須處理的資料量遠高於
單一計算核心所能提供的記憶體,是使用此架構的最佳情況,此時須分配至許多遠端核
心進行處理。為了證明這一點,以下考慮須進行字數計算的檔案數量不多的情況。
ch16.indd 669 2014/4/2 下午 04:11:18
670
|
第十六章
map-reduce
架構的實作比其他平行處理的方式稍微複雜,實作上的低階
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ubuntu for Non-Geeks, 4th Edition

Ubuntu for Non-Geeks, 4th Edition

Rickford Grant, Phil Bull

Publisher Resources

ISBN: 9789863470106