1.

The dynamic programming implementation of the maximum sum rectangle problem uses which of the following algorithm?(a) Hirschberg’s algorithm(b) Needleman-Wunsch algorithm(c) Kadane’s algorithm(d) Wagner Fischer algorithmI have been asked this question at a job interview.Question is taken from Maximum Sum Rectangle in a 2D Matrix topic in portion Dynamic Programming of Data Structures & Algorithms II

Answer»

The correct option is (c) KADANE’s ALGORITHM

The explanation is: The dynamic PROGRAMMING implementation of the MAXIMUM sum rectangle problem uses Kadane’s algorithm.



Discussion

No Comment Found

Related InterviewSolutions