2.27. The square of a matrix A is its product with itself, AA. (a) Show that...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2.27. The square of a matrix A is its product with itself, AA. (a) Show that five multiplications are sufficient to compute the square of a 2 2 matrix. (b) What is wrong with the following algorithm for computing the square of an n n matrix? "Use a divide-and-conquer approach as in Strassen's algorithm, except that in- stead of getting 7 subproblems of size n/2, we now get 5 subproblems of size n/2 thanks to part (a). Using the same analysis as in Strassen's algorithm, we can conclude that the algorithm runs in time O(nlog25)." (c) In fact, squaring matrices is no easier than matrix multiplication. In this part, you will show that if n x n matrices can be squared in time S(n) = O(nc), then any two n x n matrices can be multiplied in time O(nc). i. Given two n x n matrices A and B, show that the matrix AB + BA can be computed in time 3S(n) + O(n). ii. Given two n x n matrices X and Y, define the 2n x 2n matrices A and B as follows: X 0 A = [ and B = 0 0 0 Y 0 0 [ 8 X ]. What is AB + BA, in terms of X and Y? iii. Using (i) and (ii), argue that the product XY can be computed in time 3S(2n) + O(n). Conclude that matrix multiplication takes time O(n). 2.27. The square of a matrix A is its product with itself, AA. (a) Show that five multiplications are sufficient to compute the square of a 2 2 matrix. (b) What is wrong with the following algorithm for computing the square of an n n matrix? "Use a divide-and-conquer approach as in Strassen's algorithm, except that in- stead of getting 7 subproblems of size n/2, we now get 5 subproblems of size n/2 thanks to part (a). Using the same analysis as in Strassen's algorithm, we can conclude that the algorithm runs in time O(nlog25)." (c) In fact, squaring matrices is no easier than matrix multiplication. In this part, you will show that if n x n matrices can be squared in time S(n) = O(nc), then any two n x n matrices can be multiplied in time O(nc). i. Given two n x n matrices A and B, show that the matrix AB + BA can be computed in time 3S(n) + O(n). ii. Given two n x n matrices X and Y, define the 2n x 2n matrices A and B as follows: X 0 A = [ and B = 0 0 0 Y 0 0 [ 8 X ]. What is AB + BA, in terms of X and Y? iii. Using (i) and (ii), argue that the product XY can be computed in time 3S(2n) + O(n). Conclude that matrix multiplication takes time O(n).
Expert Answer:
Related Book For
Data Analysis and Decision Making
ISBN: 978-0538476126
4th edition
Authors: Christian Albright, Wayne Winston, Christopher Zappe
Posted Date:
Students also viewed these programming questions
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
Python and most Python libraries are free to download or use, though many users use Python through a paid service. Paid services help IT organizations manage the risks associated with the use of...
-
Which statement is correct? A) Tax credits reduce tax liability on a dollar-for-dollarbasis. B) Tax deductions reduce tax liability on a dollar-for-dollarbasis. C) The benefit of a tax credit depends...
-
Which of the processes described in this chapter use only one die? What are the advantages of using only one die?
-
As explained in the previous problem, the ammonia absorption cycle is very similar to the setup sketched in Problem 9.110. Assume the heat engine has an efficiency of 30% and the COP of the...
-
Teddys daily budget constraint is shown in the following chart. Teddys employer pays him a base wage rate plus overtime if he works more than the standard hours. What is Teddys daily nonlabor income?...
-
A condensed balance sheet for Sharp Tax Inc. as of December 31, 2008, follows. Capital stock authorized consists of 750 shares of 8%, $100 par, cumulative preferred stock and 15,000 shares of $50 par...
-
Instructions: Place the six steps of the accounting cycle in the correct order. Rank the options below. Prepare financial statements.Prepare financial statements. open choices for ranking No answer...
-
Identify the relevant costs associated with each of Nancy's three options. Total average monthly cost for new used and leased.
-
Design the circuit specified by Table 4-14 and use the sequence from Problem 4-31 (either yours or the one posted on the text website) to perform an automatic logic simulation- based verification of...
-
Design the address control logic described by Table 10-5 by using AND gates, OR gates, and inverters. Table 10-5 Address Control MZ Inputs MZ MI 11 01 X 11 01 X 11 01 X 11 01 X OX 01 X XO 01 X X XX...
-
Repeat Problem 4-20 for the sequence 01111110 that is used in a different communication network protocol. Problem 4-20: A Universal Serial Bus (USB) communication link requires a circuit that...
-
Repeat Problem 3-59 by using three-input, one-output circuits, one for each of the four bits. The four circuits are connected together in cascade by carrylike signals. One of the inputs to each cell...
-
Think of an organisational situation with which you are familiar. This may be one in which you are currently employed or one that you have worked for previously, or another organisation known to you....
-
Select the organization: Coca Cola Bottling Company, and write a paper in which you need to address the following: Apply the following analysis tools to the firm/industry: 1. Remote Analysis, 2....
-
Convert the numeral to a HinduArabic numeral. A94 12
-
Holts method assumes an additive trend. For example, a trend of five means that the level will increase by five units per period. Suppose that there is actually a multiplicative trend. For example,...
-
The Pierce Company manufactures drill bits. The production of the drill bits occurs in lots of 1000 units. Due to the intense competition in the industry and the correspondingly low prices, Pierce...
-
The file S12_72.xlsx contains data on a motel chains revenue and advertising. a. Use these data and multiple regression to make predictions of the motel chains revenues during the next four quarters....
-
In the section of his 2007 letter to the shareholders of Berkshire Hathaway titled Fanciful FiguresHow Public Companies Juice Earnings, Warren Buffett referred to the investment return assumption...
-
Based on 2012 revenues, the six largest providers of oilfield services are: 1. Schlumberger Ltd. (NYSE: SLB) Revenues: $42.1 billion Net income: $5.5 billion 2. Halliburton (NYSE: HAL) Revenues:...
-
On 21 September 2000, Intel Corporation (NASDAQ -GS: INTC)3 issued a press release containing information about its expected revenue growth for the third quarter of 2000. The announced growth fell...
Study smarter with the SolutionInn App