current position:Home>Python calculates the triple accumulation sum of arrays

Python calculates the triple accumulation sum of arrays

2022-02-03 01:22:49 CSDN Q & A

Please have a look , Encountered a triple cumulative summation problem , The formula to be calculated is as follows :

img

Calculation cost:

img

Need to return to get the smallest cost.
Please tell me about how to realize this calculation ? No idea , There's no way to start , I've been staring at it for two days, that is to say .




Refer to the answer 1:

I don't understand , S Is it a matrix ? How is it defined ?




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030122478842.html

Random recommended