Skip to main content
. 2016 Jan 23;16(2):145. doi: 10.3390/s16020145
Algorithm 4: Algorithm for Next Location Prediction.
  •  

    Input: ΣD,sA

  •  

    Output: p*

  • 1

    sAc = symbol at the last position of sA.

  • 2

    sAp = sequence preceding sAc in sA.

  • 3

    Find σ=(sp,sc,ss,u) with the highest p-sim(sp,sAp) s.t. scsAc ; σΣD

  • 4

    The ties are broken by picking σ with the highest u.

  • 5

    p* place p of ss