edited by
520 views

1 Answer

0 votes
0 votes
-5 line l=2 to n.  / /chain length

So,for l=2 the 6th line for loop will run from i=1 to n-l+1 and for each i and j value of this for loop the 9th line  for loop will run from

K=i to j-1

9th line for loop is nested under 6th line for loop and 6th line for loop is nested under 5th line for loop

5--for(l=2 to n)

6--{for(I=1 to n-l+1)

     //

9{for(k=i to j-1)

     //

}

}

Related questions

2 votes
2 votes
2 answers
3
0 votes
0 votes
1 answer
4
Rohan Mundhey asked Nov 11, 2016
1,578 views
Matrix multiplication is associative and matrix chain multiplication uses following matricesA1 is 30×35A2 is 35×15A3 is 15×5A4 is 5×10A5 is 10×20A6 is 20×25Find the...