-
Notifications
You must be signed in to change notification settings - Fork 0
/
CDHS_GMH.h
50 lines (42 loc) · 1.38 KB
/
CDHS_GMH.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* File: CDHS_GMH.h
* Author: RM
*
* Created on 16. August 2013, 00:18
*/
#ifndef CDHS_GMH_H
#define CDHS_GMH_H
#include "Definitions.h"
#include "GroupMappingHeuristic.h"
class CDHS_GMH : public GroupMappingHeuristic
{
public:
CDHS_GMH(Graph& graph, unordered_set<uint>& influenceSet, vector<VertexGroup>& vertexGroups, GMHAlgorithm::PriceSettingMechanism offerMechanism);
CDHS_GMH(const CDHS_GMH& orig);
CDHS_GMH();
virtual ~CDHS_GMH();
/**
* Map vertices to groups, returns number of non-empty groups.
* @return Number of non-empty groups.
*/
uint mapGroups();
/**
* Prepares dataset for mapping by cleaning inactive and IS vertices and
* sorting vertices according to decisive criterion.
*/
void restructureDataset();
private:
/**
* Selects group offer (dependent on chosen group offer mechanism).
* @param vertices
* @param firstIndex
* @param lastIndex
* @param currentLowerLimit
* @return
*/
float selectGroupOffer( const vector<Vertex>& vertices,
uint firstIndex,
uint lastIndex,
float currentLowerLimit) const;
} ;
#endif /* CDHS_GMH_H */