Question: Let x , y in Rm and let k be a positive integer. Describe an ecient algorithm to compute the matrix C = ( xyT
Let x y in Rm and let k be a positive
integer. Describe an ecient algorithm to compute the matrix C xyTk Note that
if you simply form xyT and take its kth power, the computational cost will be in the
order of k m since xyT is an m times m matrix. Your algorithm should avoid this m
computational complexity. What is the computational complexity of your algorithm?
Hint: The computational cost of A B for A B in Rmtimes n is mn of alpha A for alpha in R and
A in Rmtimes n is mn and of AB for A in Rmtimes n and B in Rntimes k is in the order of mnk
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
