Skip to main content
. 2018 Nov 12;18(11):3894. doi: 10.3390/s18113894
Algorithm 1 Confusion Mechanism Encode Algorithm (CMA-E)
Require: User information
Ensure: Encoded user information
Lo longitude;
La latitude;
Keya=(α,β);
Keyh=(μ,ν);
Keyo=(μ,ν);
  Matrix P and matrix Q;
if sex=man then
   sex←01;
else
   sex←02;
end if
LoLo×Q;
LaLa×P;
age^age×α+β;
fun(hobby)λ×(f^(hobby)-ν)mod(26);
fun(occupation)=γ×(f^(occupation)-ν)mod(26);
  Combine coding information in order
  which as ID,sex,age^,f^(hobby),f^(occupation),Lo,La,sensingdata,Time