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

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

     Output: S-seeds, V-locations 1

     I 10,000                 ▹ Number of Simulations

     for all locations lL do

          if (l.city ==R) and (l.category == q) then

  • 4:

            L=L{l}

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

    GG

    for all users u U do

  • 8:

        for each neighbor v of u do

            if (v not in G) then

               G=G(v)

    SDegreeDiscount(G,k,I)

  • 12:

    LL{SL}

    fori1:mdo

        for all locations l L do

            LUF=ComputeLocationUserFreq(l)

  • 16:

        V=V{arg maxlLUFV{LUF}}

        L=LV

    Return S,V