Work Efficient Parallel Scan Assignment
Jump to navigation
Jump to search
Contents
Background
Exclusive (Blelloch)
Scan Primitives for Vector Computers
Prefix Sums and Their Applications
Inclusive
Code To Implement
You may choose to implement either Inclusive or Exclusive Blelloch Scan. This is an in-place mutating scan algorithm, which means you can mutate the original data array.
Inclusive Scan or Blelloch Exclusive Scan
class: | WorkEfficientParallelMutatingSumScanner.java | |
methods: | IsInclusive | |
package: | scan.challenge | |
source folder: | student/src/main/java |
method: public boolean isInclusive()
(sequential implementation only)
- Here you can indicate whether you will implement inclusive or exclusive scan.
class: | WorkEfficientParallelMutatingSumScanner.java | |
methods: | sumScan | |
package: | scan.challenge | |
source folder: | student/src/main/java |
method: void sumScan(int[] data)
(parallel implementation required)
Testing Your Solution
class: | _WorkEfficientScanTestSuite.java | |
package: | scan.challenge | |
source folder: | testing/src/test/java |