Description
All the assignments must be submitted through Blackboard, in a single pdf format. Rename your file as “CPTS415_”+your last name+”_i.pdf”, for your i-th homework.
-
[Parallel Data Models] (30)
-
-
What is speedup and scaleup? Give three reasons why we cannot do better than linear speedup.
-
-
-
Assume a program P running on a single-processor system takes time T to complete. 40% of P can only be executed sequentially on a single processor, and the rest is “embarrassingly parallel” in that it can be easily divided into smaller tasks executing concurrently across multiple processors. What are the best time costs to execute P using 2, 4, 8 machines (expressed by T)? What are the speed-ups respectively? What are the optimal speed-ups given an infinite number of machines?
-
-
-
Describe and compare the pros and cons of the three architecture for parallel systems.
-
-
[MapReduce] (40) This set of questions test the understanding and application of MapReduce framework.
-
-
(20) Facebook updates the “common friends” of you and response to hundreds of millions of requests 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 of the form ((User i, User j), [List of Common Friends of User i and User 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 lexicographical order of their names. You need to give the pseudo-code of 1 main function, and 1 Map() and 1 Reduce() function. Specify the key/value pair and their semantics (what are they referring to?).
-
-
-
-
-
(20) Top-10 Keywords. Search engine companies like Google maintains hot webpages in a set for keyword search. Each record ∈ is an article, stored as a sequence of keywords. Write a MapReduce program to report the top 10 most frequent keywords appeared in the webpages in . Give the pseudo-code of your MR program.
-
-
Hit: You may need two rounds of MR processes for (b)
-
[Apache Spark] (30) This set of questions relate to Apache Spark
-
-
Explain the definition of RDD and how the lineage retrieval works
-
-
-
List the reasons why Spark can be faster than MapReduce.
-
-
-
Explain the definitions of narrow dependencies and wide dependencies. In addition, explain how Spark determines the boundary of each stage in a DAG and why put operators into stages will improve the performance.
-