COMSATS UNIVERSITY ISLAMABAD
Lahore Campus
Department of Computer Science
■ Assignment#02
Credit
Course Title: Parallel and Distributed Computing Course Code: CSC334 3(2,1)
Hours:
Course Instructor: Muntha Amjad Program Name: BCS
Semester: Batch: Section: Date: 27-3-2025
Deadline: 6th April, 2025 Maximum Marks: 20
Student’s Name: Reg. No.
Question#01: CLO: <2> Apply principles and concepts of parallel and
distributed computing to solve computational problems; Bloom Taxonomy
Level: <Applying>
(A) A company needs to process large datasets in real-time (e.g., weather forecasting,
financial analysis). Which parallel programming model would you recommend
and why?
(B) A large text file (e.g a book) contains millions of words, and you need to count
how many times each word appears.
Determine whether this problem is parallelizable. Justify your answer.
Describe a suitable partitioning strategy (domain decomposition vs.
functional decomposition).
Implement a parallel solution using OpenMP.
Explain the synchronization challenges when multiple threads update a shared
word frequency table.
Suggest a solution to deal with synchronization challenges or any other
overheads.
(C) A computational task has 90% parallel execution and 10% serial execution. The
goal is to achieve a speedup of 8x. Find the minimum number of processors
(N) required.