Analysis And Design Of Algorithms (3150703)





X=abbacdcba
Y=bcdbbcaac

A1 [5 × 4], A2 [4 × 6], A3 [6 × 2], and A4 [2 × 7]. Also give the optimal parenthesization of matrices.



Profits: (P1,P2,P3,P4,P5,P6) = (20, 15, 10, 7, 5, 3)
Deadline: (d1,d2,d3,d4,d5,d6) =(3, 1, 1, 3, 1, 3)







1. T(n)= 9T(n/3)+n
2. T(n)= 3T(n/4)+nlogn.