- Consider The Checkout Counter At A Large Supermarket Chain For Each Item Sold It Generates A Record Of The Form Produ 1 (38.1 KiB) Viewed 16 times
Consider the checkout counter at a large supermarket chain. For each item sold, it generates a record of the form [Produ
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Consider the checkout counter at a large supermarket chain. For each item sold, it generates a record of the form [Produ
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]