Skip to main content
. Author manuscript; available in PMC: 2016 Mar 11.
Published in final edited form as: Proc ACM Int Conf Inf Knowl Manag. 2015 Oct;2015:1001–1010. doi: 10.1145/2806416.2806441

Algorithm 3 DSAT under w-event privacy

Input:
D = {Di|1 ≤ i ≤ N, i ∈ Z}, T, C and ε.
Output:
D̃ = {D̃i|1 ≤ i < N, i ∈ Z}
1: Run DSAT for the first w time points;
2: for i = (w + 1) to N do
3:   εrm=∈2−∑m=i−w+1m=i−1ε2,m
4:  if εrm ≤ 0 then
5:   Set D̃i := Dj, where j is the time point of last release;
6:  else
7:   Set count=∑m=i−w+1m=i−1ε2,mε2/C
8:   Compute d∼(Di,D∼j)=d(Di,D∼j)+Lap(2CΔε1);
9:   Compute Ei=|counti−Cw|,ei=|Ei−δ|δ, and ui = θ × ei;
10:   if counti−Cw≤0, then T̃i = max{0, Ti−1 − ui};
11:   else set T̃i = min{2, Ti−1 + ui};
12:   if d̃(Di, D̃j) ≥ T̃i, then set ε2,i = ε2/C, D̃i := Di+ < Lap(1/ε2,i) >U, and j = i;
13:   else set D̃i := Dj;
14:  end if
15: end for