|
Algorithm 2 Modified rejection algorithm—Protocol for the leader |
|
Input: Value of
|
-
1:
Compute for each
{The leader needs information from the custodians in order to compute these approximations}
-
2:
Compute C and as per Equations (1) and (2)
-
3:
Sample X according to q
-
4:
Sample U uniformly on
-
5:
for ∞ do
-
6:
if
then
-
7:
return
X {X is accepted}
-
8:
else if
then
-
9:
go to line 3 {X is rejected}
-
10:
else
-
11:
Continue the for loop
{We cannot decide whether to accept or reject because ;
communication may be required in order for the leader to compute ;
it could be that bits previously communicated to compute can be reused.}
-
12:
end if
-
13:
end for
|