社交网络隐私保护:从节点匿名到信息防学习
1. 安全分组生成算法
在社交网络隐私保护中,安全分组是重要的基础步骤。以下是生成安全分组的算法:
Algorithm 5: Generate safe groups
1 while |V| > 0 do
2 us = the node with maximum degree in V;
3 V = V - {us};
4 group g = new group {us};
5 C = C ∪ {g};
6 while |g| < k do
7 Set candidates = {};
8 for Each node u in V do
9 if Adding u into g does not violate SGC then
10 candidates = candidates ∪ {u};
11 if |candidates| > 0 then
12 for Each node u in candidates do
13 u.cost = the cost to add u into g;
14 u0 = u in candidates with minimum u.cost;
15 g = g ∪ {u0}; V = V - {u0};
16 else
17 break;
18 fo