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

Function Documentation

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

the places cuts in an order of least total cost

Pre:

the cuts strictly increasing and inside ( 0 , length )

Post:

a permutation of cuts of cost stringBreakingCost() (an audit)