Download the Python matrix template class from https://moodle2.units.it/mod/resource/view.php?id=213844 and:
- implement the strassen matrix mult function to multiply two 2n 2n matrices by using the Strassens algorithm;
- generalize strassen matrix mult to deal with any kind of matrix pair that can be multiplied (possibly also non-square matrices) and prove that the asymptotic complexity does not change;
- improve the implementation of the function by reducing the number of auxiliary matrices and test the effects on the execution time;
- answer to the following question: how much is the minimum auxiliary space required to evaluate the Strassens algorithm? Motivate the answer.
Reviews
There are no reviews yet.