Fuzzy Iterative Averaging Assignment

From CSE231 Wiki
Jump to: navigation, search

Previous Studio

Iterative_Averaging

(Optional) Code to Implement

FuzzyPhased

class: FuzzyPhasedParallelIterativeAverager.java Java.png
methods: iterativelyAverage
package: iterativeaveraging.fuzzy.challenge
source folder: src/main/java

method: public double[] iterativelyAverage(double[] originalArray, int iterationCount) Parallel.svg (parallel implementation required)

Which indices must be complete before neighboring tasks can proceed? Which indices have more flexibility?

create phaser
register phaser for each task
parallel loop
    sequential loop
        shared work
        arrive on phaser
        local work
        await advance (must specify the phase) on phaser

FuzzyPointToPointPhased

class: FuzzyPointToPointPhasedParallelIterativeAverager.java Java.png
methods: iterativelyAverage
package: iterativeaveraging.fuzzy.challenge
source folder: src/main/java

method: public double[] iterativelyAverage(double[] originalArray, int iterationCount) Parallel.svg (parallel implementation required)

Testing Your Solution

Correctness

class: FuzzyIterativeAveragerTestSuite.java Junit.png
package: iterativeaveraging.fuzzy.challenge
source folder: src/test/java

Performance

class: IterativeAveragingTiming.java Noun Project stopwatch icon 386232 cc.svg
package: iterativeaveraging.timing
source folder: src/performance/java