Visualize lattices, basis reduction (LLL), the Shortest Vector Problem (SVP), and the Closest Vector Problem (CVP) interactively.
A lattice is the set of all integer linear combinations of basis vectors b1 and b2.
Drag the vector endpoints on the canvas or use the sliders to reshape the lattice. Click LLL Reduce to find a shorter, more orthogonal basis.
Click anywhere on the canvas to solve the Closest Vector Problem for that target point.
Drag arrow tips to reshape the basis. Click empty space for CVP. Scroll to zoom.