Skip to main content
. 2021 Jan 21;21(3):709. doi: 10.3390/s21030709
Algorithm 2 RF Selection of influential users and locations.

     Input: LBSN: G,L; Query: (R,k,m)

     Output: S-seeds, V-locations 1

     Initialization and locations extraction, L, are same as in Algorithm 1.

  • 2:

    Extract Users checked in at L

    G=(U,E){UUUL}        ▹Subgraph of users who checked in at locations lying under target region

  • 4:

    GG

    for all users u U do

  • 6:

        for each neighbor v of u do

            if (v not in G) then

  • 8:

               G=Gv

    SDegreeDiscount(G,k,I)

  • 10:

    LL{SL}            ▹extract locations visited by top S seed users

    fori1:mdo

  • 12:

        for all locations l L do

            LUF=ComputeLocationUserFreq(l)

  • 14:

        V=V{arg maxlLUFV{LUF}}

        L=LV

  • 16:

    Return S,V