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