Talk:Lenstra–Lenstra–Lovász lattice basis reduction algorithm
This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||
|
Requested move
[edit]- Lenstra-Lenstra-Lovász lattice reduction algorithm → Lenstra-Lenstra-Lovász lattice basis reduction algorithm … Rationale: The basis is reduced, not the lattice. … Please share your opinion at Talk:Lenstra-Lenstra-Lovász lattice reduction algorithm. Nuesken 17:24, 18 May 2006 (UTC)
- There are likely thousands of papers which talk about "lattice reduction"; it's a commonly accepted term. I think an appropriate title for the article is "Lenstra–Lenstra–Lovász lattice reduction". Note that there is a Wikipedia article titled "lattice reduction". The current long title looks ridiculous. Sanpitch (talk) 00:39, 15 February 2020 (UTC)
2nd shortest not equal 2nd successive minimum
[edit]I attempted to clarify text related to some issues:
- There is not 'the' shortest vector, since there are always at least two of them
- One has to be very careful about stuff like "2nd shortest vectors", as such talk is often incorrect for dimension >= 5. For example, consider the parity lattice defined by . It has linearly independent vectors of length 1, yet its last successive minimum (once the dimension n is >= 5). 131.234.72.252 (talk) 13:52, 16 June 2008 (UTC)
- I apologize, what I wrote yesterday in a hurry is obviously incorrect. The parity lattice has a full set of linearly independent vectors of length 2 (not 1), and there are no shorter nonzero vectors in the lattice (for dimension >= 5). However, those vectors do not form a lattice basis, because the vectors of odd parity cannot be written as integer linear combinations of vectors of even parity. 89.245.87.65 (talk) 06:24, 17 June 2008 (UTC)
Description of the algorithm
[edit]It seems to me that a description of the actual algorithm (at least in high-level pseudocode) is needed in order for this article to be in accord with its title. —Preceding unsigned comment added by 84.97.180.156 (talk) 23:09, 22 November 2009 (UTC)
Lattice algorithms in general
[edit]I agree that more needs to be said about what the algorithm does. Moreover, I fail to see how a lattice, which is a partial ordering on a set of points, can have a basis in the first place.
Grandfather Gauss saw everything mathematical as embedded in some numerical space. As far as I kmow he only ever gave credit to another mathematician once in his lifetime - Bernhard Reimann.
He definitely did not expect the consequences of finite permutation groups (polynomials >=5) as outlined by Galois. But even to this day everyone embeds finite problems in larger spaces.
This simply is not discrete mathematics, and it addresses lattice traversal in a roundabout way. Reply: j.heyden@bigpond.com — Preceding unsigned comment added by 120.145.16.125 (talk) 08:41, 22 August 2011 (UTC)
- The lattices that are partial orderings are not the same things as the lattices described here, which are regularly spaced sets of points in a Euclidean space. The fact that two such unrelated mathematical objects have the same name is unfortunate but true. —David Eppstein (talk) 17:08, 22 August 2011 (UTC)
- The article's lead should be more explicit about the kind of lattice that is being talked about here. True, the word 'lattice' points to lattice (group), but I don't think that's sufficient. I've taken a stab. --Macrakis (talk) 23:44, 16 January 2015 (UTC)
Contradiction between algorithm description and example
[edit]There's a contradiction between the description of the algorithm and the example given. The description indicates the first loop is completed in its entirety before the reduction steps are executed for any basis vector. However, the example shows that the reduction condition is evaluated for the second basis vector before the third basis vector is ever initialized. It doesn't seem like the two steps are independent, so I would think that the order matters. Which is correct? --Prestidigitator (talk) 18:24, 4 February 2013 (UTC)
- I agree, I tried to walk through the example following the algorithm, and I came to the same conclusion. Moreover, I think the pseudocode for the algorithm lacks some rigour. E.g., after the Gram-Schmidt is performed and k is initialized to 2, the algorithm says to check if then execute subroutine RED(k, k-1). This seeams weird as i=n and j=n-1 after the end of the Gram-Schmidt orthogonalization, and it is my impression that, really, we should be looking at at this point. At least that is also what is done in the example, although that is done in the middle of the GS process.
- In the example, I also see something, which does not seem to be consistent. In step 6.1.i the vector b3 is reduced. OK, makes sense. Then the step 6.1.i is repeated with another (makes sense), where the reduction factor is found (OK), and then used to reduce (OK), but when the vectors are inserted, it is the original vector , and not the one, which was just reduced by five times above. I find that confusing. Is that not an error? --Slaunger (talk) 20:43, 29 January 2014 (UTC)
- I thought the example was overly verbose and kept only the initial basis and the reduced basis. I added an example over the complex integers. I guess Wikipedia is not a textbook, so there's no need to have such exquisitely detailed examples.
- I also guess the pseudocode could be improved, though I'm not ambitious enough to do so now. Sanpitch (talk) 00:44, 15 February 2020 (UTC)
Update Pseudocode Formatting
[edit]I've re-written the LLL pseudo-code for this page. Should it be swapped in?
INPUT a lattice basis a parameter with , most commonly
PROCEDURE and do not normalize using the most current values of and while do for from to do if then Update and the related 's as needed. (The naive method is to recompoute whenever changes: ) end if end for if then else Swap and Update and the related 's as needed. end if end while return the LLL reduced basis of
EDIT by Logannc11:
First of all, not really sure how I'm supposed to talk with you. This is the only article I've edit it.
That said, I have three things:
- Your revision of the swap step is misleading. 'Swap b_k and b_{k-1}' explicitly states that both change as opposed to the normal notation of b_k = b_{k-1}, which your use of swap seems to indicate. (FIXED). This was a silly mistake by me, I wrote (b_k, k_{k-1}) \gets (b_{k-1}, b_{k}) then undid it
- You're missing an 'output' section which, while obvious to some, should be there for completeness. And, lets face it, implementing a new algorithm can sometimes fry the brain, so the explicitness can be good. They might, for some reason, suppose that it is {b*...}. Shouldn't the algorithm return b*? EDIT: The orthogonalization of is not necessarily the same lattice. This is why we do rather than use the orthogonalization. That is why we return .
- The rest of the changes are largely aesthetic. I've seen algorithms displayed both ways and I am hesitant to say either is inherently superior. Do you feel that your edit improves on something in particular?
— Preceding unsigned comment added by Logannc11 (talk • contribs) 07:04, 20 May 2015 (UTC)
EDIT by Vrbatim:
My intention was to *only* improve the aesthetic layout of the algorithm (though your suggestions should be implemented). It is because I'm not sure which style of "pidgin code" is better that I'm putting it on the "talk page" instead of swapping it out.
Vrbatim (talk) 06:59, 22 May 2015 (UTC)
EDIT by Logannc11:
Do whatever you feel is best. But, again, note that we don't return
Propose to delete most of the page
[edit]The German version is better and shorter than this one. I propose to delete most of what we have, and to replace it with a translation of the German version. Before I do that, I'll wait a while to see if there is agreement on this. MvH (talk) 15:00, 31 October 2015 (UTC)MvH
- Yes, please. This article needs help. (I assume you mean a hand-written translation, though; machine translations are not good enough.) —David Eppstein (talk) 17:54, 31 October 2015 (UTC)
Put "Applications" ahead of "Example"
[edit]The "Applications" section appears to me to be more useful than the overly-verbose "Example" section; I swapped them. I guess the example should be deleted, with the reference to the place it came from kept; I'll do that in a future edit. Sanpitch (talk) 01:12, 16 January 2020 (UTC)