Difference between revisions of "Map-Reduce Examples"

From dftwiki3
Jump to: navigation, search
Line 59: Line 59:
 
           sum += count
 
           sum += count
 
       else:
 
       else:
           print( "%s\t%d" % ( word, sum ) )
+
           print( "%s\t%d" % ( lastWord, sum ) )
 
           sum = count
 
           sum = count
 
           lastWord = word
 
           lastWord = word

Revision as of 09:21, 11 April 2017

--D. Thiebaut (talk) 09:28, 11 April 2017 (EDT)



This page contains various problems and their solution implemented using the Map-Reduce programming model.




...