Computation graphs

1)Show the execution of the following code as if it was compiled with 4 way unrolling in the form of a computational graph.int loop1(int *a, int x, int n){int y = x*x;int i;for (i = 0; i x = y * a[i];return x*y;} 2Show the execution of the following code as if it was compiled with 4 way unrolling in the form of a computational graph. int loop2(int *a, int x, int n){int y = x*x;int i;for (i = 0; i x = x * a[i];return x*y;} 3Show both of the following functions as a computational graph. int aprod1(int a[], int n){int i, x = 1, y = 2, z = 3;int r = 1;for (i = 0; i {r = (r * x) * (y * z); // Product computation}return r;} int aprod2(int a[], int n){int i, x = 1, y = 2, z = 3;int r = 1;for (i = 0; i {r = r * (x * y * z); // Product computation}return r;} However much you want to charge. . .

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]