PDC Assignment 01 (Theory)
PDC Assignment 01 (Theory)
Lahore Campus
Department of Computer Science
■ Assignment#01
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: 6-3-2025
Time Allowed: Maximum Marks: 30
Student’s Name: Reg. No.
(A) Suppose you are developing a network intrusion detection system that analyzes vast
amounts of network traffic data in real-time.
Which parallel computing paradigm (SIMD, MIMD, etc.) would be most effective?
(B) Explain the role of Message Passing Interface (MPI) and OpenMP in parallel computing.
Compare their suitability for shared-memory vs. distributed-memory architectures.
(G) Modify the following code to remove dependencies using scalar expansion:
(I) Apply loop interchange technique on the following code to improve cache performance: