Question

Let X be a kn × n matrix and Y by an n × kn matrix, for some integer k. (a) Describe an algorithm that computes the product XY using Strassens algorithm as a subroutine, i.e., use it as a black-box without modi- fying it. Only describe your algorithm in words; pseudo-code is not required. Justify your answer, i.e., argue that your algorithrn does compute XY correctly. Establish its running time.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)

Consider X as matrices A1 . A-, Аз, Ai and B as [B_1,B_2,B_3,...,B_k]^T

Now multiplication would be among these N matrices and each n*n small matrix can be multiplied using Strassen's algorithm.

result would be [A1*B1 + A2*B2 + A3*B3 .... Ak*Bk]

So K matrix multiplication and sum of k matrices.

Time for Strassen's =O(n2.8)

So multiplying k such algorithm = mathcal{O}(kn^{2.8})

Now summation will take

summation will take mathcal{O}(kn^{2})

So total time = mathcal{O}(kn^{2.8})

Add a comment
Know the answer?
Add Answer to:
Let X be a kn × n matrix and Y by an n × kn matrix,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Let A be an array containing n numbers (positive and negative). Develop a divide and conquer algo...

    need help in this algorithm question Let A be an array containing n numbers (positive and negative). Develop a divide and conquer algorithm that finds the two indices 1 sisjsn such that A[k] (the sum of the elements from i to j) is maximized. For example, in the array A [10,-5,-6,5, 7,-2,4, -11], the sub-array A[4:6] has the sum 5+ 7-2+4-14 and no other sub-array contains elements that sum to a value greater than 14, so for this input the...

  • problem 2 can use Det-Selection(A, p, q, r) as a sub-routine (i.e, you don't need to...

    problem 2 can use Det-Selection(A, p, q, r) as a sub-routine (i.e, you don't need to write its pseudo-code). To sort an array A, you will then call Det-QuickSort(A, 1, n). You also need to provide the worst case time complexity analysis of your algorithm. 2. (20 points) Given a set of n distinct numbers, we wish to find the k largest in sorted order using a comparison-based algorithm. Give an algorithm that implements each of the following methods, and...

  • 9. (2 pts per part) Let A be an m x n matrix, where m >...

    9. (2 pts per part) Let A be an m x n matrix, where m > n, and suppose that the rank of A is n (i.e., A has full column rank). Briefly justify your answers to each question below. a. Which two of the following statements are true? i. There are no vectors in Nul(A). ii. There is no basis for Nul(A). iii. dim(Nul(A)) = 0 iv. dim(Nul(A)) = m – n b. Are the columns of A a...

  • 3b) [4 pts]+ As in the Little SearchEngine assignment, consider a hash table that stores frequencies...

    3b) [4 pts]+ As in the Little SearchEngine assignment, consider a hash table that stores frequencies (number of occurrences) of words in a set of documents. Words are the keys, and for each word, the associated value is an array list of (document name, frequency) pairs, in descending order of frequencies. Now suppose you are given a list of 50 words. You are asked to find all documents in the hash table in which one or more of these words...

  • i need help with a mips program to to covert roman numerals to real numbers Lab 4: Roman Numeral Conversion Part A: Due...

    i need help with a mips program to to covert roman numerals to real numbers Lab 4: Roman Numeral Conversion Part A: Due Sunday, 19 May 2019, 11:59 PM Due Friday, 24 May 2019, 11:59 PM Part B: Minimum Submission Requirements Ensure that your Lab4 folder contains the following files (note the capitalization convention): o Diagram.pdf o Lab4. asm O README.txt Commit and push your repository Lab Objective In this lab, you will develop a more detailed understanding of how...

  • CMPS 12B Introduction to Data Structures Programming Assignment 2 In this project, you will write...

    can i get some help with this program CMPS 12B Introduction to Data Structures Programming Assignment 2 In this project, you will write a Java program that uses recursion to find all solutions to the n-Queens problem, for 1 Sns 15. (Students who took CMPS 12A from me worked on an iterative, non-recursive approach to this same problem. You can see it at https://classes.soe.ucsc.edu/cmps012a/Spring l8/pa5.pdf.) Begin by reading the Wikipcdia article on the Eight Queens puzzle at: http://en.wikipedia.org/wiki/Eight queens_puzzle In...

  • A new version of the operating system is being planned for installation into your department’s production...

    A new version of the operating system is being planned for installation into your department’s production environment. What sort of testing would you recommend is done before your department goes live with the new version? Identify each type of testing and describe what is tested. Explain the rationale for performing each type of testing. [ your answer goes here ] Would the amount of testing and types of testing to be done be different if you were installing a security...

  • 1 Overview The goal of this assignment is to help you understand caches better. You are...

    1 Overview The goal of this assignment is to help you understand caches better. You are required to write a cache simulator using the C programming language. The programs have to run on iLab machines. We are providing real program memory traces as input to your cache simulator. The format and structure of the memory traces are described below. We will not give you improperly formatted files. You can assume all your input files will be in proper format as...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT