Work Efficient Parallel Scan Assignment

From CSE231 Wiki
Revision as of 16:24, 13 March 2023 by Cosgroved (talk | contribs) (Created page with "=Background= [https://en.wikipedia.org/wiki/Prefix_sum Prefix Sum] ===Exclusive (Blelloch)=== [https://en.wikipedia.org/wiki/Prefix_sum#Algorithm_2:_Work-efficient Blelloch A...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Background

Prefix Sum

Exclusive (Blelloch)

Blelloch Algorithm

Scan Primitives for Vector Computers

Prefix Sums and Their Applications

Inclusive

Prefix sum 16.svg

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 Java.png
methods: IsInclusive
package: scan.challenge
source folder: student/src/main/java

method: public boolean isInclusive() Sequential.svg (sequential implementation only)

Here you can indicate whether you will implement inclusive or exclusive scan.
class: WorkEfficientParallelMutatingSumScanner.java Java.png
methods: sumScan
package: scan.challenge
source folder: student/src/main/java

method: void sumScan(int[] data) Parallel.svg (parallel implementation required)

Testing Your Solution

class: _WorkEfficientScanTestSuite.java Junit.png
package: scan.challenge
source folder: testing/src/test/java