Find solutions for your homeworkFind solutions for your homeworkengineeringcomputer sciencecomputer science questions and answersconsider the following function for computing the product of an array of n integers. we have unrolled the loop by a factor of 3. int aprod(int a[], int n) { int i, x, y, z; int r = 1; for (i = 0; i < n-2; i+= 3) { x = a[i]; y = a[i+1]; z = a[i+2]; r = r * x * y * z; // product computation } for (; i < n; i++)Question: Consider The Following Function For Computing The Product Of An Array Of N Integers. We Have Unrolled The Loop By A Factor Of 3. Int Aprod(Int A[], Int N) { Int I, X, Y, Z; Int R = 1; For (I = 0; I &Lt; N-2; I+= 3) { X = A[I]; Y = A[I+1]; Z = A[I+2]; R = R * X * Y * Z; // Product Computation } For (; I &Lt; N; I++)This problem has been solved!You'll get a detailed solution from a subject matter expert that helps you learn core concepts.See AnswerConsider the following function for computing the productof an array of n integers. We have unrolled the loop by a factor of 3.int aprod(int a[], int n){int i, x, y, z;int r = 1;for (i = 0; i < n-2; i+= 3) {x = a[i]; y = a[i+1]; z = a[i+2];r = r * x * y * z; // Product computation}for (; i < n; i++)r *= a[i];return r;}For the line labeled Product computation, we can use parentheses to create 5 different associations of the computation, as follows:r = ((r * x) * y) * z; // A1r = (r * (x * y)) * z; // A2r = r * ((x * y) * z); // A3r = r * (x * (y * z)); // A4r = (r * x) * (y * z); // A5We express the performance of the function in terms of the number of cycles per element (CPE). As described in the book, this measure assumes the run time, measured in clock cycles, for an array of length n is a function of the form Cn + K, where C is the CPE.We measured the 5 versions of the function on an Intel Pentium III. On this machine the integer multiplication operation has a latency of 4 cycles and an issue time of 1 cycle.The following table shows some values of the CPE, and other values missing. The measured CPE values are those that were actually observed. "Theoretical CPE" means that performance that would be achieved if the only limiting factor were the latency and issue time of the integer multiplier.Version Measured CPE Theoretical CPEA1 4.00 (1)______________A2 2.67 (2)______________A3 (3)_____________ 4/3=1.33A4 1.67 (4)______________A5 (5)_____________ 8/3=2.67Fill in each input box at the bottom with your answer to each blank in the table. The number in parentheses before each blank indicates its corresponding input box number.