subject

4. (25 points) consider the following procedure that performs multiplication of two upper triangular matrices a[1: : n][1: : n] and b[1: : n][1: : n]. matrix multiply(a[1: : n][1: : n], b[1: : n][1: : n]) cost times 1. for i 1 to n c1 2. for j i to n c2 3. ci j 0 c3 4. for k i to j c4 5. ci j ci j +aik bk j c5 6. return c c6 as the product c[1: : n][1: : n] is also upper triangular, we assume that we do not have to be concerned with the strictly lower triangular entries of the matrix. (a) fill in for each line of instruction, the number of times the instruction is executed. (b) derive the expression for the running time of matrix multiply in terms of n and ci. what is the complexity of the algorithm using the big-o notation?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 10:50
Your friend kayla is starting her own business and asks you whether she should set it up as a p2p network or as a client-server network. list three questions you might ask to kayla decide which network to use and how her answers to those questions would affect your recommendation.
Answers: 2
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Which spreadsheet operation does a look function perform?
Answers: 1
You know the right answer?
4. (25 points) consider the following procedure that performs multiplication of two upper triangular...
Questions
question
English, 02.08.2021 23:40
Questions on the website: 13722363