M

Mr. Dubey • 52.49K Points
Coach

Q. Consider the brute force implementation in which we find all the possible ways of multiplying the given set of n matrices. What is the time complexity of this implementation?

(A) o(n!)
(B) o(n3)
(C) o(n2)
(D) exponential
Share

Explanation by: Mr. Dubey
 the time complexity of finding all the possible ways of multiplying a set of n matrices is given by (n-1)th catalan number which is exponential.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Loading Comments....

Question analytics