Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Big Data Studies 2. Questions about MapReduce framework. a. Facebook updates the common friends of you and response to hundreds of millions ofrequests every day.

Big Data Studies

2. Questions about MapReduce framework.

a. Facebook updates the common friends of you and response to hundreds of millions ofrequests every day. The friendship information is stored as a pair (Person, [List of friends]) for every user in the social network. Write a MapReduce program to return a dictionary of common friends ofthe form ((User i, User j), [List of Common friends of i and j]) for all pairs of i and j who are friends. The order of i and j you returned should be the same as the lexico graphical order of their names. You need to give the pseudocode of a main function, and both Map() and Reduce()function. Specify the key/value pair and their semantics (what are they referring to?)

b. Top10 keywords. Search engine companies like Google maintains hot webpages in a set R for keyword search. Each record r from set R is an article, stored as a sequence of keywords. Write a MapReduce programto reportthe top 10 most frequent keywords appeared in the webpages in R. (hint: you may need two rounds of MR process). Give the pseudocode of your MR program.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Continuing Debate Over Depreciation Capital And Income

Authors: Richard P. Brief

1st Edition

0415707889, 9780415707886

Students also viewed these Databases questions