Parallel Online Exact Summation of Floating-point Numbers by Applying MapReduce of Java8

Naoshi Sakamoto · International Journal of Software Innovation · 2017

Java8 introduced the notion of streams that is a new data structure and supports multi-core processors. When the sum method is called for a stream of floating-point numbers, the summation is calculated at high-speed by applying MapReduce, which distributes computations to cores. However, since floating-point calculation causes an error, simple adaptation of this method cannot determine the result uniquely. Then, in this study, the authors develop a summation program that can be applied to a stream with MapReduce. Their method can calculate at high-speed with keeping correctly rounded.

Read the paper · More papers on PaperTik