Given an array p[] which represents the chain of matrices such that the ith…
Given an array p[] which represents the chain of matrices such that the ith matrix Ai is of dimension p[i-1] x p[i], what is the time complexity of the matrix chain multiplication problem if solved using dynamic programming?
- A.
O(n3)
- B.
O(n2)
- C.
O(2n)
- D.
O(n)
Attempted by 113 students.
Sign up free to check your answer
Sign up freeLoading lesson…

