|
Algorithm 3 Babai’s Nearest Plane algorithm. |
-
Input:
lattice basis , target vector
-
Output:
vector , which satisfies
-
1:
Perform the LLL reduction on with parameter .
-
2:
Use the Gram–Schmidt orthogonalization on the reduced basis and obtain .
-
3:
.
-
4:
for j = m, m − 1,…, 1 do
-
5:
, where ;
-
6:
end for
-
7:
return
|