Assignment Part I
Assignment Part I
8. a. Find the maximum sub-array sum by Naive approach where the array
is given by user.
b. Find the maximum sub-array sum by Divide And Conquer (DAC) ap-
proach where the array is given by user.
1
c. Find the maximum sub-array sum by an approach in upper bound of
input size n where the array is given by user.
************
2. Find the maximum number of completed jobs over a set of jobs are given
with start and f inish time by Dynamic Programming and Greedy method.
4. You are given a rod of length n, also prices of length 1 to (n 1) are given
(For example: rod of length 1 cost is Rs. 2/-, rod of length 2 cost is Rs.
7/- and so on). Use Dynamic Programming to calculate optimal cutting
of rod such that prof it is maximized.
2
the same relative order, but not necessarily contiguous.
For example: LCS for input Sequences ABCDGH and AEDFHR is
ADH of length 3. LCS for input Sequences AGGTAB and GXTX-
AYB is GTAB of length 4.
************
************