I'm just not getting something here, and I have no idea where I'm lost, and I don't know what questions to ask. I'm getting a bit frustrated, so please, take it easy on me.

I have an algorithm that spits out the most efficient way to multiply 4 matrices.

For instance, if I want to multiply A1, A2, A3, A4, it will tell me to multiply them in the order A1(A2A3(A4)) - A2xA3 = B. BxA4 = C, A1xC = D.

It also gives me 2 matrices, 1 filled with 0's, 1's, 2's, and 3's, the other filled with numbers that can get I don't know how big, and 0's.

I think this is where my problem is. I don't know what these matrices are for, but I think it has to do with something similar to what's on top of page 19 of a page I found online:

http://www.cs.sunysb.edu/~jgao/CSE54...d-mount-DP.pdf

The reason I need to know what these matrices are for, is so I can write an algorithm that actually multiplies these together. If you think I should go over to a math forum, I will.

If you can offer any help, I would greatly appreciate it, thanks.