|
Algorithm4 Comparison of two values encoded in two input vectors |
-
Input:
Encoded as , encoded as , vector size D
-
Ensure:
-
Output:
1 if ; 0 otherwise.
-
1:
{Number of vectors}
-
2:
-
3:
whiledo {}
-
4:
-
5:
if
then
-
6:
return 1
-
7:
end if
-
8:
-
9:
if
then
-
10:
return 0
-
11:
end if
-
12:
-
13:
end while
-
14:
return 1
|