As the calculation of elements is independent of one another - leads to an embarrassingly parallel solution. Arrays elements are evenly distributed so that each process owns a portion of the array (subarray). It can be solved in less time with multiple compute resources than with a single compute resource.
=== The Monte Carlo Simulation (PI Calculation) ===
Subject: The Monte Carlo Simulation (PI Calculation)
Got the code from here:
=== Zhijian ===