8 #ifndef PAAL_MAXIMUM_COVERAGE_HPP
9 #define PAAL_MAXIMUM_COVERAGE_HPP
36 template<
typename SetRange,
class GetElementsOfSet,
class OutputIterator,
class GetElementIndex,
40 GetElementsOfSet set_to_elements,
41 OutputIterator result,
42 GetElementIndex get_el_index,
43 unsigned int number_of_sets_to_select,
44 GetWeightOfElement get_weight_of_element = GetWeightOfElement{}
53 number_of_sets_to_select,
54 get_weight_of_element,
auto budgeted_maximum_coverage(SetRange &&sets, GetCostOfSet set_to_cost, GetElementsOfSet set_to_elements, OutputIterator result, ElementIndex get_el_index, Budget budget, GetWeightOfElement element_to_weight=GetWeightOfElement(), const unsigned int initial_set_size=3)
detail
auto maximum_coverage(SetRange &&sets, GetElementsOfSet set_to_elements, OutputIterator result, GetElementIndex get_el_index, unsigned int number_of_sets_to_select, GetWeightOfElement get_weight_of_element=GetWeightOfElement{})
this is solve Set Cover problem and return set cover cost example:
This file contains set of simple useful functors or functor adapters.