Template Function ADS::weightedCompletion

Function Documentation

template<class T, class W>
auto ADS::weightedCompletion(const std::vector<T> &t, const std::vector<W> &w, const std::vector<std::size_t> &A)

the sum of w_i C_i in the order A, C_i the time of completion of i

Pre:

|t| = |w| and the places of A are places of t