Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Perform matrix multiplication using numerical data types. Implement the three specified algorithms in C + + , aiming for the highest efficiency possible. Test your
Perform matrix multiplication using numerical data types. Implement the three specified algorithms in C aiming for the highest efficiency possible.
Test your algorithms thoroughly with matrix sizes n x n where n is a power of eg up to the largest size your computer can handle The input sizes will be powers of up to k where k is the maximum size your computer can manage without running out of memory.
Task : Complexity Analysis
Analyze the theoretical worstcase complexity for each algorithm.
Describe the worstcase input for each algorithm.
Task : Design
Provide pseudocode or flowcharts for each algorithm.
Task : Testing Cases
Design at least testing cases to verify the correctness of each algorithm.
Provide the expected output for each testing case.
Task : Design testing strategy for the programs.
Hint: Keep in mind that running the same data set for the Matrix Multiplication program multiple times can yield varying run times due to different computer workloads at different moments. Therefore, it's beneficial to execute each data set multiple times and compute the average run time for an accurate performance assessment. Calculate the average run time of each input data set after conducting the experiment over m trials, excluding the best and worst run times from the results
Answer these two questions:
How do you generate and structure the randomly generated inputs?
Determine the number of trials m needed for performance evaluation, and exclude the best and worst run times to calculate the average runtime.
Task : Implementation IMPORTANT
Based on the designs provided in Task implement the following in C:
Classical matrix multiplication
Divideandconquer matrix multiplication
Strassens matrix multiplication
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started