| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168733Image: ubuntu2004
Given lattice basis Sage gives the LLL-reduced basis:
[ 3 0 0]
[-1 5 0]
[ 0 1 16]
Solve it now step by step. Compute first Gram-Schmidt orthogonalization to obtain 's and 's.
[ 8 6 16]
[ -133/89 412/89 -88/89]
[1600/731 320/731 -920/731]
Size reduce 's.
[ 8 6 16]
[-1 5 0]
[ 3 0 0]
Update 's.
(11/178, 6/89, -133/731)
Check if Lov\'asz condition is violated.
False
Yes. So swap and .
[-1 5 0]
[ 8 6 16]
[ 3 0 0]
Compute Gram-Schmidt orthogonalization again.
[ -1 5 0]
[ 115/13 23/13 16]
[1600/731 320/731 -920/731]
Size reduce 's.
[-1 5 0]
[ 9 1 16]
[ 3 0 0]
Update 's.
(-2/13, -3/26, 115/1462)
Check if Lov\'asz condition is violated.
True
False
Yes. Swap and .
[-1 5 0]
[ 3 0 0]
[ 9 1 16]
Gram-Schmidt orthogonalization.
[ -1 5 0]
[75/26 15/26 0]
[ 0 0 16]
Size reduce 's.
[-1 5 0]
[ 3 0 0]
[ 0 1 16]
Update 's.
(-3/26, 5/26, 1/15)
Check if Lov\'asz is satisfied.
False
No. Swap and .
[ 3 0 0]
[-1 5 0]
[ 0 1 16]
Gram-Schmidt orthogonalization again.
[ 3 0 0]
[ 0 5 0]
[ 0 0 16]
Size reduce 's.
[ 3 0 0]
[-1 5 0]
[ 0 1 16]
Update 's.
(-1/3, 0, 1/5)
Check Lov\'asz condition.
True
True
Done.
[ 3 0 0]
[-1 5 0]
[ 0 1 16]