Question: We are interested in solving A x = b . In this assignment, you will compare the computing time of finding matrix inverses and finding
We are interested in solving In this assignment, you will compare the
computing time of finding matrix inverses and finding matrix factorizations for large
sparse matrices.
The following line of code produces a commonlyused tridiagonal matrix of size the
onedimensional discrete Laplacian:
eones ; Anspdiags :;
Part A: Complete the following, using the above line of code, to generate sparse
matrices.
For each that you are considering, generate a large sparse matrix and
measure the average computing time that Matlab's inv algorithm requires to find
the inverse of Be sure to specify how many executions of inv you are
averaging over to obtain the average time. In the computing time estimate, do not
include the cost of constructing
Plot the average computing time for a variety of to visualize the relationship
between and computing time. Choose appropriate scales for the axes in your plot.
Analyze the plot to determine how the time for computing inv varies with for
large Use bigOh notation to describe the relationship and explain your findings.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
