Research Article

Re-ADP: Real-Time Data Aggregation with Adaptive -Event Differential Privacy for Fog Computing

Algorithm 2

The adaptive -event privacy.
Input: The current window size ; The fist and last sampling interval , at current window
Output: The new window size
Initialize the optimal number of sampling points:
Initialize the maximal QoP:
for each do
Calculate the current QoP:
if then
Count the number of sampling:
if and is sampling point then
;
Update the new window size: ;
return The new window size