Template Function ADS::stringBreakingCost(const std::vector<I>&, std::type_identity_t<I>)

Function Documentation

template<class I>
I ADS::stringBreakingCost(const std::vector<I> &cuts, std::type_identity_t<I> length)

the least total cost of the cuts of a string of the given length at the places cuts

Pre:

the cuts strictly increasing and inside ( 0 , length )