Research Article

Achieving the Optimal -Anonymity for Content Privacy in Interactive Cyberphysical Systems

Algorithm 1

Multilayer Alignment.
Input: query content set , integer , the prior probability of query content
Output: the reporting probability
1  sort according to in descend order;
2  for    do
3initiate a list ;
4  ;
5  ;
6  ;
7  initiate an integer array with values of 0;
8  for    do
9if    then
10if    then
11;
12continue;
13else
14;
15;
16if    then
17;
18;
19;
20else
21;
22;
23;
24if    then
25continue;
26;
27;
28;
29  while    do
30initiate a report ;
31add the heads of to ;
32;
33for    do
34;
35;
36if    then
37;
38else
39;
40  return  ;