How to implement Strassen Matrix in C++?
I mean I want to figure out and implement the Strassen Matrix in C++, so please guide me.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prasham SabadraRank #116 · 19.3K reputationPosted Mar 9, 2015, 12:29 AM EDT
Please check following urls:
http://martin-thoma.com/strassen-algorithm-in-python-java-cpp/
http://www.sanfoundry.com/cpp-program-implement-strassens-algorithm/
Prasham SabadraRank #116 · 19.3K reputationPosted Mar 9, 2015, 9:12 PM EDT
Couldnt got your requirement. Please share some details.
Joe WilsonRank #631 · 3.8K reputationPosted Mar 9, 2015, 5:38 AM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Mar 10, 2015, 3:10 AM EDT
Suppose I have two numbers
first number: U which has n digits and m=n/2 and x and y has m digits
U=x*10^m+y
second one: Z which has n digits and m=n/2 and d and f has n digits
Z= d * 10^m + f
U*Z = d*x * 10^2*m +(x*f + y*d)* 10^m+ y*f
example: 567,832 =567*10^3+832
So i want to implement this process in c++ and find the time and space complexity of this implementation according to the code.
please help me.