$25
Exercise 1: Multi-run script
Consider the program developed in Exercise 3 of Week 1.
(a) De ne the matrix dimension Nas an input value to be read from le.
(b) Write a python script that changes N between two values Nmin and Nmax, and launches the program. Store the results in di erent les depending on the multiplication method used.
(c) Plot (using gnuplot) the results for the di erent multiplication methods.
Exercise 2: Automated ts
Consider the program of the previous exercise.
(a) Fit the scaling of the time needed for di erent methods as a function of the input size. Considerthe biggest possible di erence between Nmin and Nmax.
(b) Save the gnuplot le you used in part (a) and exploit it to write a python script that performs automatically the previous ts.