- Implement matrix multiplication for your sparse matrix class from the last assignment. It should be possible to multiple matrices in different formats (natively, not by converting to another format first). You should include a test scripts, as in previous assignments and
make test
should run appropriate tests. Perform experiments with various combinations to see what pairs of formats are the most efficient and report on your results. - Define a linear array of size
n
with a bus to be a linear array augmented with a single global bus. Every processor is connected to the bus and in one unit of time, one processor can write to the bus and all other processors can read from it. This allows broadcasting in unit time, but only of one data word per time step.- State an efficient algorithm to sum
n
values, initially distributed one per processor, on such an architecture. What is the parallel cost of the algorithm? Compare to the case of finding the sum ofn
values on a regular linear array without a bus. - Can the parallel cost of the algorithm be improved by increasing the amount of data initially allocated to each processor?
- State an efficient algorithm to sum
- Miller and Boxer, Chapter 5, Problem 1.
- Miller and Boxer, Chapter 5, Problem 2.
- The file
tree.py
contains a classTree
, which draws randomly generated trees in Python using theturtle
package. Implement a non-recursive version of thedraw
functrion that precisely replicates it's behavior.
LehighISECourses/ISE407-Assignment-3
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published