I was solving the matrix chain problem and I've encountered a dead end.
I have the values of p0,p1,p2,p3,p4,p5 as 4,10,3,12,20,7 respectively
now I want to mark that p0 and p1 combine together to form a matrix of [4][10] size. Similarly p1 and p2 combine to form a matrix of [10][3] size.
please help me in python language