Skip to main content
. 2018 May 8;9:454. doi: 10.3389/fphys.2018.00454

Algorithm 2.

Algorithm for constructing a greedy randomized solution

1:  procedure    ConstructGreedyRandomizedSolution (G_expanded, Target)
2:   solutionSet()
3:   α ← random(0, 1)
4:   candidates ← Construct_Initial_Candidates(G_expanded, Target)
5:   G(v)      ← Construct_Greedy_Functions(G_expanded, candidates)
6:   while candidates do
7:     RCL ← MakeRCL(candidates, G(v), α)
8:       s ← Select_Candidate(RCL)
9:       solutionsolution∪{s}
10:       if TargetLDOI(solution) then
11:         return solution
12:      end if
13:      Update_Candidates(candidates)
14:       end while
15:       return Set()
16: end procedure