By rick
via blog.xebia.com
Published: Jul 04 2009 / 09:27
How do you now design a MapReduce algorithm that will give the desired answer? The key lies in finding a function that will produce the same key for all words that are anagrams. Applying this in the map phase will use the power of the MapReduce framework to deliver all words that are anagrams to the same reducer.
Add your comment