Fuzzy Iterative Averaging Assignment
Contents
Previous Studio
(Optional) Code to Implement
PointToPointPhased
class: | PointToPointPhasedParallelIterativeAverager.java | |
methods: | iterativelyAverage | |
package: | iterativeaveraging.challenge | |
source folder: | student/src/main/java |
FuzzyPhased
class: | FuzzyPhasedParallelIterativeAverager.java | |
methods: | iterativelyAverage | |
package: | iterativeaveraging.fuzzy.challenge | |
source folder: | student/src/main/java |
method: public double[] iterativelyAverage(double[] originalArray, int iterationCount)
(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 | |
methods: | iterativelyAverage | |
package: | iterativeaveraging.fuzzy.challenge | |
source folder: | student/src/main/java |
method: public double[] iterativelyAverage(double[] originalArray, int iterationCount)
(parallel implementation required)
Testing Your Solution
Correctness
class: | FuzzyIterativeAveragerTestSuite.java | |
package: | iterativeaveraging.fuzzy.challenge | |
source folder: | testing/src/test/java |
class: | FuzzyPointToPointIterativeAveragerTestSuite.java | |
package: | iterativeaveraging.fuzzy.challenge | |
source folder: | testing/src/test/java |
Performance
class: | IterativeAveragingTiming.java | |
package: | iterativeaveraging.timing | |
source folder: | src/main/java |