Implementation of Strassen’s algorithm to multiply two square matrices code example
Example: Implementation of Strassen’s algorithm to multiply two square matrices
$ gcc strassen.c -o strassen
$ ./strassen
Enter the 4 elements of first matrix:
1 2
3 4
Enter the 4 elements of second matrix:
5 6
7 8
The first matrix is
1 2
3 4
The second matrix is
5 6
7 8
After multiplication using Strassen's algorithm
19 22
43 50