Home / Engineering / Design and Analysis of Algorithms / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) Given a 2D matrix, find a submatrix that has the maximum sum. Which of the following methods can be used to solve this problem?

(A) brute force
(B) recursion
(C) dynamic programming
(D) brute force, recursion, dynamic programming
Correct answer : Option (D) - brute force, recursion, dynamic programming

Explanation:
 brute force, recursion and dynamic programming can be used to find the submatrix that has the maximum sum.

Share

Discusssion

Login to discuss.