Skip to main content
. 2019 May 26;19(10):2399. doi: 10.3390/s19102399
Algorithm 1 Greedy algorithm for MCLB problem
Require: Sampling points set P; participants set V and corresponding rewards set BV; the selected participants set S=; total rewards of selected participants R=0; limited budget B;
Ensure: The set of selected participants S, the coverage quality W of this case;
  • 1: 

    For all viϵV do;

  • 2: 

    if bi>B;

  • 3: 

    VV\vi;

  • 4: 

    For all viϵV do;

  • 5: 

    ei=yi/bi;

  • 6: 

    select vmaxϵV with maximum emax;

  • 7: 

    S=S{vmax};

  • 8: 

    R=R+bmax;

  • 9: 

    repeat

  • 10: 

        VV\vmax;

  • 11: 

        if bi(BR)

  • 12: 

        select viϵV with maximum yiycommonbi;

  • 13: 

        S=S{vi};

  • 14: 

        R=R+bi;

  • 15: 

    until W=1 or RB or V=;