Page 1 of 1

Consider the following greedy approach to the matrix-chain multiplication problem: Whenever there are at least 3 matrice

Posted: Mon Jul 11, 2022 9:50 am
by answerhappygod
Consider the following greedy approach to the matrix-chainmultiplication problem: Whenever there are at least 3 matrices (𝐴𝑖... 𝐴𝑗, 𝑗 βˆ’ 𝑖 β‰₯ 2) remaining, always split the chain at π‘˜: (𝐴𝑖 ...π΄π‘˜)(π΄π‘˜+1 ... 𝐴𝑗), such that π‘π‘˜ is the smallest number among {𝑝𝑖,... , π‘π‘—βˆ’1}. Prove that this greedy approach doesn’t always giveoptimal solution.
Please answer correctly. If you don't know, leave it forothers to solve. Incorrect answers will definitely bedownvoted.