Spring 2024 - CS621 - 2
Spring 2024 - CS621 - 2
Assignment # 02 Deadline
st
1 July 2024
Spring 2024
Please carefully read the following instructions before attempting the assignment.
You should consult the recommended books to clarify your concepts as handouts are not sufficient.
You are supposed to submit your assignment in Doc or Docx format.
Any other formats like scanned images, PDF, ZIP, RAR, PPT, BMP, etc. will not be accepted.
Learning Objectives:
The objective of this assignment is to:
Basic understanding of decomposition of computation to be executed in parallel.
Learn and practice dividing a computation into sub-units/tasks.
NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding
or internet malfunctioning etc.). Hence refrain from uploading assignments in the last hour of the deadline. It is
recommended to upload the solution at least two days before its closing date.
If you people find any mistake or confusion in the assignment (Question statement), please consult with your
instructor before the deadline. After the deadline, no queries will be entertained in this regard.
Decomposition is the process of breaking a computation into smaller parts so that some or all of them can be executed in
parallel. Decomposition can be illustrated in the form of a directed graph with nodes corresponding to tasks and edges
indicating that the result of one task is required for processing the next. Such a graph is called a task dependency graph.
Table 01 shows a university database query that needs to filter student records based on the following criteria:
Department (Computer Science OR Mathematics), Enrollment Year (2021 OR 2023), and CGPA (Below 4.0 OR Above 3.5
OR Above 3.0). Every row in the table is a record that has all the details about a specific student. Consider the
computations performed in processing the following query:
Department= (“Computer Science OR Mathematics”) AND Enrollment Year= (“2021” OR “2023”) AND CGPA = (“Below
4.0” OR “Above 3.5” OR “Above 3.0”).