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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions