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?

  1. A.

    O(n3)

  2. B.

    O(n2)

  3. C.

    O(2n)

  4. D.

    O(n)

Attempted by 113 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…