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

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

     Output: S-seeds, V-locations 1

  • 1:

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

  • 2:

    G=(U,E){UUUL}

  • 3:

    fori1:kdo

  • 4:

        for all users u U do

  • 5:

            UCF=ComputeUserCheckinFreq(u)

  • 6:

        S=S{arg maxuUCFU{UUF}}

  • 7:

        U=US

  • 8:

    fori1:mdo

  • 9:

        for all locations l L do

  • 10:

            LUF=ComputeLocationUserFreq(l)

  • 11:

        V=V{arg maxlLUFV{LUF}}

  • 12:

        L=LV

  • 13:

    Return S,V