Algorithm 2 Predicting the probability of indirectly contacting a Wi-Fi AP within a time constraint |
Input: the starting region , the starting time interval t, the stop time interval . Output: Initialize: 1: for every historical records of do 2: if (&) then 3: Calculating using (4); 4: Calling Algorithm 1() to get ; 5: ; 6: end if 7: end for 8: return ; |