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 1 Distance-based Sampling with Fixed Threshold Algorithm (DSFT)

Input: D = {Di|1 ≤ iN, iZ}, T, C and ε.
Output: D̃ = {i|1 ≤ iN, iZ}
1: Set ε1 = , ε2 = εε1, k is computed due to theorem 5.4;
2: Set T=T+Lap(2Δε1), Δ is computed due to lemma 4.1;
3: For D1, release a DP dataset 1 with ε2C privacy budget;
4: Set count = 1, and j = 1;
5: for each time point ti with i ≥ 2 do
6: if countC, then set i = j continue;
7:  Set d(Di,Dj)=d(Di,Dj)+Lap(2CΔε1)
8: if (Di, D̃j) ≥ , then release i at ti with ε2C budget, and set count = count + 1, and j = i;
9: else use j as the release of Di;
10: if i == N and count < C, then release N with all remaining privacy budget;
11: end for