Program Listing for File ShortestJobFirst.h

↰ Return to documentation for file (ADS/optimization/ShortestJobFirst.h)

/*--------------------------------------------------------------------------*/
/*------------------------ File ShortestJobFirst.h -------------------------*/
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/*----------------------------- DEFINITIONS --------------------------------*/
/*--------------------------------------------------------------------------*/

#ifndef __ADS_ShortestJobFirst
 #define __ADS_ShortestJobFirst
                      /* self-identification: #endif constant */

/*--------------------------------------------------------------------------*/
/*------------------------------ INCLUDES ----------------------------------*/
/*--------------------------------------------------------------------------*/

#include <algorithm>
#include "ADS/Contract.h"

#include <algorithm>
#include <cstddef>
#include <numeric>
#include <vector>

/*--------------------------------------------------------------------------*/
/*--------------------------- NAMESPACE ------------------------------------*/
/*--------------------------------------------------------------------------*/

namespace ADS {

template< class T >
std::vector< std::size_t > shortestJobFirst( const std::vector< T > & t );

template< class T >
T totalCompletion( const std::vector< T > & t ,
                   const std::vector< std::size_t > & A );

template< class T , class W >
std::vector< std::size_t > smithOrder( const std::vector< T > & t ,
                                       const std::vector< W > & w );

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

/*--------------------------------------------------------------------------*/

}  // end( namespace ADS )

/*--------------------------------------------------------------------------*/
/*-------------------------- IMPLEMENTATION --------------------------------*/
/*--------------------------------------------------------------------------*/

#include "ADS/optimization/impl/ShortestJobFirst.tpp"

/*--------------------------------------------------------------------------*/

#endif  /* ShortestJobFirst.h included */

/*--------------------------------------------------------------------------*/
/*---------------------- End File ShortestJobFirst.h -----------------------*/
/*--------------------------------------------------------------------------*/