Question: Consider the algorithms (methods) prefixAverage1 and prefixAverage2 for calculating prefix averages. The source code is given here. Implement both the algorithms and perform an experiment

Consider the algorithms (methods) prefixAverage1 and prefixAverage2 for calculating prefix averages. The source code is given here. Implement both the algorithms and perform an experiment analysis of their running times under different input sizes. Visualize the running times on a chart, where x-axis represents different input sizes and y-axis represents running times of the algorithms.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
