|
Algorithm 1 Anonymous Tree Generation |
-
1:
function (,)
-
2:
if
then
-
3:
if
is odd then
-
4:
Let last node of be
-
5:
end if
-
6:
for
do
-
7:
-
8:
-
9:
Let be the parent of and
-
10:
end for
-
11:
return
-
12:
else
-
13:
return
-
14:
end if
-
15:
end function
-
16:
procedure(,size n)
-
17:
-
18:
Send to other members through trust third-party
-
19:
for each
do
-
20:
if
or
then
-
21:
-
22:
else
-
23:
-
24:
end if
-
25:
end for
-
26:
, , delete all from
-
27:
Run and broadcast to other group members
-
28:
return
-
29:
end procedure
|