in Algorithms
1,487 views
2 votes
2 votes
Is there any shortcut or Trick to get min number of multiplication faster? I mean if we could know the right split.
in Algorithms
1.5k views

1 comment

No there is no shortcut possible in general. There may be specific shortcuts but not worth learning.If there was indeed one ,dynamic programming would not be required and the shortcut would have been used.Better practice the conditions its pretty easy itself .
0
0

2 Answers

2 votes
2 votes
Yes there is  with this formula :(2n)!/((n+1)! * n!)

n=no of matrices-1

1 comment

It doesn't give optimal parenthesis it will just give the ways of paranthesing
2
2
0 votes
0 votes

Yes 

We used a formula to find how many different way to multiply a matrix

1 comment

He is asking for a shortcut to find the optimum split in short time and not the total number of splits possible. Yours formula is for total number of parathesis possible.
0
0