This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes I tried run this double recurrences unsuccessfully, can you help run it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "I tried run this double recurrences unsuccessfully, can you help run it" Watch "I tried run this double recurrences unsuccessfully, can you help run it" New topic
Author

I tried run this double recurrences unsuccessfully, can you help run it

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
I tried run this double recurrences unsuccessfully, can you help run it?
ch15.2 - Dynamic Programming - Matrix multiplication Parenthesize
in Introduction to Algorithms,
* Second edition, by Thomas H. Cormen, Charles E. Leiserson, Ronald
* L. Rivest, and Clifford Stein.



Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Leonidas Savvides wrote:I tried run this double recurrences unsuccessfully, can you help run it?

ItDoesntWorkIsUseless. So what do you expect, and what does it do instead? Remember, not everybody has that book, so you'll need to tell us.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
solved by

given matrices A1A2A3A4A5A6 with dim series 5,10,3,12,5,50,6 , find propel parenthesize pattern for min scalar multiplications....but do not do the multiplication...

result:

((A[1]A[2])((A[3]A[4])(A[5]A[6])))
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I tried run this double recurrences unsuccessfully, can you help run it
 
Similar Threads
My head is about to explode!
There is no main method in class: Times - How do I resolve it?
Loops
Fybunic series