Question No: 02 Desc04733 a subjective question, hence you have to write your answer in the Text-Field given below. 7308
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question No: 02 Desc04733 a subjective question, hence you have to write your answer in the Text-Field given below. 7308
Question No: 02 Desc04733 a subjective question, hence you have to write your answer in the Text-Field given below. 7308 Consider the checkout counter at a large supermarket chain. For each item sold, it generates a record of the form [Productld, Supplier, Price]. Here, Productid is the unique identifier of a product, Supplier is the supplier name of the product and Price is the sale price for the item. Assume that the supermarket chain has accumulated many terabytes of data over a period of several months. The CEO wants a list of suppliers, listing for each supplier the average sale price of items provided by the supplier. How would you organize the computation using the Map-Reduce computation model? Write the pseudocode for the map and reduce stages. [4 marks]