|
Algorithm 3: The n-LLL reduction with pivoted reflection |
|
Set
and
|
| (Move the shortest vector to ) |
|
Find the shortest vector in
|
|
Swap(,) of
|
|
Calculate
for
|
|
Set
and
|
|
Set
i = 2 |
|
While
(Pivoted reflection and reduction process) |
| Find the shortest vector in
|
| Swap(, ) of
|
| Set temp = i
|
| For
j = i − 1 down to 1 |
| Set
= (Size reduction) |
| If
and
i − j < n
then (Extended Lovász condition) |
| Swap (, ) (Swap process) |
| Set temp = j
|
| End
|
| End
|
| Calculate
for
|
| Set
and
|
| If
i ! = temp then
|
| i = temp |
| Else
|
| Set
i = i + 1 |
| End
|
| End |