隐私保护的分布式社交网络分析与云数据审计方案
1. 社交网络分析相关算法
在社交网络分析中,有许多重要的算法用于研究网络的结构和特性。其中,PageRank算法和K - shell分解算法是两个关键的算法。
1.1 PageRank算法
PageRank算法用于计算网络中节点的重要性。以下是PageRank算法的协议:
Protocol 6. page rank() πPR
Input:
l, the length of the random walk
α, such that (1 − α/p) is the teleportation probability
[A], which is an unweighted adjacency matrix
Output:
[count1], [count2], ... [count|V|], where counti stores the number of times vertex i is visited during the random walk
1: for i = 1 to |V| do
2:
[counti] ← [0]
3: [A] ← no zero outdegree([A])
4: [r] ← random number([|V|])
5: [cur] ← [r]
6: while l > 0 do
7:
for i = 1 to |V| do
8:
[counti] ← [counti] + ([cur]?= i)
9:
for i = 1
超级会员免费看
订阅专栏 解锁全文
1959

被折叠的 条评论
为什么被折叠?



