Algorithm 2.
1: | Input: f and m matroid constraints . |
2: | Output: An approximation solution . |
3: | ; Initialize priority queue Q. |
4: | for do |
5: | INSERT |
6: | end for |
7: | while Q not empty do |
8: | |
9: | if then |
10: | isFresh ← |
11: | if not isFresh then |
12: | |
13: | end if |
14: | if isFreash or α ≥ max(Q) then |
15: | |
16: | else |
17: | INSERT(Q, (v, α)) |
18: | end if |
19: | end if |
20: | end while |
21: | return |