Share to: share facebook share twitter share wa share telegram print page

Lenstra–Lenstra–Lovász lattice basis reduction algorithm

The Lenstra–Lenstra–Lovász (LLL) lattice basis reduction algorithm is a polynomial time lattice reduction algorithm invented by Arjen Lenstra, Hendrik Lenstra and László Lovász in 1982.[1] Given a basis with n-dimensional integer coordinates, for a lattice L (a discrete subgroup of Rn) with , the LLL algorithm calculates an LLL-reduced (short, nearly orthogonal) lattice basis in time where is the largest length of under the Euclidean norm, that is, .[2][3]

The original applications were to give polynomial-time algorithms for factorizing polynomials with rational coefficients, for finding simultaneous rational approximations to real numbers, and for solving the integer linear programming problem in fixed dimensions.

LLL reduction

The precise definition of LLL-reduced is as follows: Given a basis define its Gram–Schmidt process orthogonal basis and the Gram-Schmidt coefficients for any .

Then the basis is LLL-reduced if there exists a parameter in (0.25, 1] such that the following holds:

  1. (size-reduced) For . By definition, this property guarantees the length reduction of the ordered basis.
  2. (Lovász condition) For k = 2,3,..,n .

Here, estimating the value of the parameter, we can conclude how well the basis is reduced. Greater values of lead to stronger reductions of the basis. Initially, A. Lenstra, H. Lenstra and L. Lovász demonstrated the LLL-reduction algorithm for . Note that although LLL-reduction is well-defined for , the polynomial-time complexity is guaranteed only for in .

The LLL algorithm computes LLL-reduced bases. There is no known efficient algorithm to compute a basis in which the basis vectors are as short as possible for lattices of dimensions greater than 4.[4] However, an LLL-reduced basis is nearly as short as possible, in the sense that there are absolute bounds such that the first basis vector is no more than times as long as a shortest vector in the lattice, the second basis vector is likewise within of the second successive minimum, and so on.

Applications

An early successful application of the LLL algorithm was its use by Andrew Odlyzko and Herman te Riele in disproving Mertens conjecture.[5]

The LLL algorithm has found numerous other applications in MIMO detection algorithms[6] and cryptanalysis of public-key encryption schemes: knapsack cryptosystems, RSA with particular settings, NTRUEncrypt, and so forth. The algorithm can be used to find integer solutions to many problems.[7]

In particular, the LLL algorithm forms a core of one of the integer relation algorithms. For example, if it is believed that r=1.618034 is a (slightly rounded) root to an unknown quadratic equation with integer coefficients, one may apply LLL reduction to the lattice in spanned by and . The first vector in the reduced basis will be an integer linear combination of these three, thus necessarily of the form ; but such a vector is "short" only if a, b, c are small and is even smaller. Thus the first three entries of this short vector are likely to be the coefficients of the integral quadratic polynomial which has r as a root. In this example the LLL algorithm finds the shortest vector to be [1, -1, -1, 0.00025] and indeed has a root equal to the golden ratio, 1.6180339887....

Properties of LLL-reduced basis

Let be a -LLL-reduced basis of a lattice . From the definition of LLL-reduced basis, we can derive several other useful properties about .

  1. The first vector in the basis cannot be much larger than the shortest non-zero vector: . In particular, for , this gives .[8]
  2. The first vector in the basis is also bounded by the determinant of the lattice: . In particular, for , this gives .
  3. The product of the norms of the vectors in the basis cannot be much larger than the determinant of the lattice: let , then .

LLL algorithm pseudocode

The following description is based on (Hoffstein, Pipher & Silverman 2008, Theorem 6.68), with the corrections from the errata.[9]

INPUT
    a lattice basis b1, b2, ..., bn in Zm
    a parameter δ with 1/4 < δ < 1, most commonly δ = 3/4
PROCEDURE
    B* <- GramSchmidt({b1, ..., bn}) = {b1*, ..., bn*};  and do not normalize
    μi,j <- InnerProduct(bi, bj*)/InnerProduct(bj*, bj*);   using the most current values of bi and bj*
    k <- 2;
    while k <= n do
        for j from k−1 to 1 do
            if |μk,j| > 1/2 then
                bk <- bk − ⌊μk,jbj;
               Update B* and the related μi,j's as needed.
               (The naive method is to recompute B* whenever bi changes:
                B* <- GramSchmidt({b1, ..., bn}) = {b1*, ..., bn*})
            end if
        end for
        if InnerProduct(bk*, bk*) > (δ − μ2k,k−1) InnerProduct(bk−1*, bk−1*) then
            k <- k + 1;
        else
            Swap bk and  bk−1;
            Update B* and the related μi,j's as needed.
            k <- max(k−1, 2);
        end if
    end while
    return B the LLL reduced basis of {b1, ..., bn}
OUTPUT
    the reduced basis b1, b2, ..., bn in Zm

Examples

Example from Z3

Let a lattice basis , be given by the columns of then the reduced basis is which is size-reduced, satisfies the Lovász condition, and is hence LLL-reduced, as described above. See W. Bosma.[10] for details of the reduction process.

Example from Z[i]4

Likewise, for the basis over the complex integers given by the columns of the matrix below, then the columns of the matrix below give an LLL-reduced basis.

Implementations

LLL is implemented in

  • Arageli as the function lll_reduction_int
  • fpLLL as a stand-alone implementation
  • FLINT as the function fmpz_lll
  • GAP as the function LLLReducedBasis
  • Macaulay2 as the function LLL in the package LLLBases
  • Magma as the functions LLL and LLLGram (taking a gram matrix)
  • Maple as the function IntegerRelations[LLL]
  • Mathematica as the function LatticeReduce
  • Number Theory Library (NTL) as the function LLL
  • PARI/GP as the function qflll
  • Pymatgen as the function analysis.get_lll_reduced_lattice
  • SageMath as the method LLL driven by fpLLL and NTL
  • Isabelle/HOL in the 'archive of formal proofs' entry LLL_Basis_Reduction. This code exports to efficiently executable Haskell.[11]

See also

Notes

  1. ^ Lenstra, A. K.; Lenstra, H. W. Jr.; Lovász, L. (1982). "Factoring polynomials with rational coefficients". Mathematische Annalen. 261 (4): 515–534. CiteSeerX 10.1.1.310.318. doi:10.1007/BF01457454. hdl:1887/3810. MR 0682664. S2CID 5701340.
  2. ^ Galbraith, Steven (2012). "chapter 17". Mathematics of Public Key Cryptography.
  3. ^ Nguyen, Phong Q.; Stehlè, Damien (September 2009). "An LLL Algorithm with Quadratic Complexity". SIAM J. Comput. 39 (3): 874–903. doi:10.1137/070705702. Retrieved 3 June 2019.
  4. ^ Nguyen, Phong Q.; Stehlé, Damien (1 October 2009). "Low-dimensional lattice basis reduction revisited". ACM Transactions on Algorithms. 5 (4): 1–48. doi:10.1145/1597036.1597050. S2CID 10583820.
  5. ^ Odlyzko, Andrew; te Reile, Herman J. J. "Disproving Mertens Conjecture" (PDF). Journal für die reine und angewandte Mathematik. 357: 138–160. doi:10.1515/crll.1985.357.138. S2CID 13016831. Retrieved 27 January 2020.
  6. ^ D. Wübben et al., "Lattice reduction," IEEE Signal Processing Magazine, Vol. 28, No. 3, pp. 70-91, Apr. 2011.
  7. ^ D. Simon (2007). "Selected applications of LLL in number theory" (PDF). LLL+25 Conference. Caen, France.
  8. ^ Regev, Oded. "Lattices in Computer Science: LLL Algorithm" (PDF). New York University. Retrieved 1 February 2019.
  9. ^ Silverman, Joseph. "Introduction to Mathematical Cryptography Errata" (PDF). Brown University Mathematics Dept. Retrieved 5 May 2015.
  10. ^ Bosma, Wieb. "4. LLL" (PDF). Lecture notes. Retrieved 28 February 2010.
  11. ^ Divasón, Jose (2018). "A Formalization of the LLL Basis Reduction Algorithm". Conference Paper. Lecture Notes in Computer Science. 10895: 160–177. doi:10.1007/978-3-319-94821-8_10. ISBN 978-3-319-94820-1.

References

Read other articles:

Scottish political party The SNP redirects here. For other uses, see SNP. Scottish National Party Scots National PairtyPàrtaidh Nàiseanta na h-AlbaAbbreviationSNPLeaderHumza YousafDepute LeaderKeith BrownWestminster LeaderStephen FlynnPresidentMichael RussellChief ExecutiveMurray FooteFounded7 April 1934Merger of National Party of Scotland Scottish Party HeadquartersGordon Lamb House3 Jackson's EntryEdinburghEH8 8PJStudent wingSNP StudentsYouth wingYoung Scots for IndependenceLGBT wingOut…

1972 studio album by Johnny HammondThe ProphetStudio album by Johnny HammondReleased1972RecordedNovember 29 and 30, 1972StudioVan Gelder Studio, Englewood Cliffs, NJGenreJazzLength34:25LabelKuduKU-10ProducerCreed TaylorJohnny Hammond Smith chronology Wild Horses Rock Steady(1971) The Prophet(1972) Higher Ground(1973) The Prophet is an album by jazz organist Johnny Hammond recorded for the Kudu label (a subsidiary of CTI Records) in 1972.[1][2] Track listing All compositio…

Artikel ini adalah bagian dari seriPolitik dan ketatanegaraanIndonesia Pemerintahan pusat Hukum Pancasila(ideologi nasional) Undang-Undang Dasar Negara Republik Indonesia Tahun 1945 Hukum Perpajakan Ketetapan MPR Undang-undang Perppu Peraturan pemerintah Peraturan presiden Peraturan daerah Provinsi Kabupaten/kota Legislatif Majelis Permusyawaratan Rakyat Ketua: Bambang Soesatyo (Golkar) Dewan Perwakilan Rakyat Ketua: Puan Maharani (PDI-P) Dewan Perwakilan Daerah Ketua: La Nyalla Mattalitti (Jawa…

Hof van Beroep voor het 11e circuitCourt of Appeals for the Eleventh Circuit Het Elbert P. Tuttle U.S. Courthouse, zetel van het hof Type Hof van Beroep Werktalen Engels Jurisdictie Alabama Florida Georgia Zittingsplaats(en) Elbert P. Tuttle U.S. CourthouseAtlanta, Georgia Geschiedenis Opgericht 1 oktober 1981 Samenstelling Samenstelling 1 president12 rechters8 senior rechters (2017) President Edward Earl Carnes Circuitrechter Clarence Thomas Website ca11.uscourts.gov Portaal    Mens &…

SigapitonDesaPeta lokasi Desa SigapitonNegara IndonesiaProvinsiSumatera UtaraKabupatenTobaKecamatanAjibataKode pos22386Kode Kemendagri12.12.08.2001 Luas5,0 km²Jumlah penduduk390 jiwa (2015)Kepadatan78,00 jiwa/km² Sigapiton adalah salah satu desa di Kecamatan Ajibata, Kabupaten Toba, Provinsi Sumatera Utara, Indonesia. Pemerintahan Kepala Desa Sigapiton pada tahun 2019 adalah Hisar Butarbutar.[1] Sosial Kemasyarakatan Suku Demografi berdasarkan Marga di Desa Sigapiton[2] &#…

SaharaAlbum studio karya Dian PieseshaDirilis2012Genrepop religiLabelJK RecordsKronologi Dian Piesesha Kerinduan (2006)String Module Error: Match not foundString Module Error: Match not found Sahara (2012) -String Module Error: Match not foundString Module Error: Match not found Sahara merupakan sebuah album musik kesembilan belas milik penyanyi senior Indonesia, Dian Piesesha. Dirilis pada 1 Agustus 2012. Album ini berisi lagu-lagu religi. Singel andalannya adalah Sahara. Daftar lagu Sahara…

1994 box set by Frank SinatraThe Song Is YouBox set by Frank SinatraReleasedAugust 30, 1994RecordedFebruary 1, 1940-July 2, 1942GenreJazztraditional popLength382:55LabelRCAFrank Sinatra chronology Sinatra & Sextet: Live in Paris(1994) The Song Is You(1994) Duets II(1994) Professional ratingsReview scoresSourceRatingAllmusic [1] The Song Is You is a 1994 box set by American singer Frank Sinatra. This five disc box set contains every studio recording Frank Sinatra performed wit…

  هذه المقالة عن ستانلي كوهين (فيزيائي). لستانلي كوهين (كيميائي)، طالع ستانلي كوهين. ستانلي كوهين Stanley Cohen معلومات شخصية تاريخ الميلاد 5 فبراير 1927(1927-02-05) تاريخ الوفاة 27 مارس 2017 (90 سنة)   مواطنة الولايات المتحدة  الحياة العملية المهنة مهندس،  وعالم حاسوب،  وفيزيائي&…

Untuk kegunaan lain, lihat Bangil. Untuk desa di Kabupaten Tabanan, lihat Bangli, Baturiti, Tabanan. Koordinat: 8°27′50″S 115°21′10″E / 8.463949°S 115.352833°E / -8.463949; 115.352833 BangliKecamatanPeta lokasi Kecamatan BangliNegara IndonesiaProvinsiBaliKabupatenBangliPemerintahan • CamatI Wayan Wardana[1]Luas[2] • Total56,26 km2 (21,72 sq mi)Populasi (2015)[3] • Total50.480 …

1942 American filmNutty NewsDirected byBob ClampettStory byWarren FosterProduced byLeon SchlesingerStarringMel Blanc (uncredited)Narrated byArthur Q. Bryan (uncredited)Music byCarl W. StallingAnimation byVirgil RossColor processBlack and whiteProductioncompanyLeon Schlesinger StudiosDistributed byWarner Bros. Pictures, Inc.Release date May 23, 1942 (1942-05-23) Running time7 minutesCountryUnited StatesLanguageEnglish Nutty News is a 1942 Warner Bros. Looney Tunes cartoon directed …

Football stadium in Barcelona, Spain This article is about the stadium of FC Barcelona. For the stadium of AFC Ajax, see Johan Cruyff Arena. Johan Cruyff StadiumUEFA Full nameEstadi Johan CruyffLocationSant Joan Despí, Barcelona, SpainCoordinates41°22′27″N 02°03′02″E / 41.37417°N 2.05056°E / 41.37417; 2.05056OwnerFC BarcelonaOperatorFC BarcelonaCapacity6,000Record attendance5,569 (Barcelona Femení v Real Madrid Femenino; 25 March 2023)Field size105m x 6…

Theory of personality, motivation and emotion Reversal theory is a structural, phenomenological theory of personality, motivation, and emotion in the field of psychology.[1] It focuses on the dynamic qualities of normal human experience to describe how a person regularly reverses between psychological states, reflecting their motivational style, the meaning they attach to a situation at a given time, and the emotions they experience.[2] Introduction Reversal Theory Motivational S…

This article is about the rapper Nach. For other uses, see NACH. This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Nach rapper – news · newspapers · books · scholar · JSTOR (October 2016) (Learn…

Pakistan Artikel ini adalah bagian dari seri Politik dan KetatanegaraanPakistan Konstitusi Konstitusi Sebelumnya:195619621973 Lampiran (ditulis 1949, diresmikan 1985) Amandement Hukum Pemerintah Presiden (daftar): Arif Alvi Parlement Senat Kepala: Sadiq Sanjrani Wakil Kepala: Saleem Mandviwalla Majelis Nasional Kepala: Asad Qaiser Wakil Kepala: Qasim Suri Eksekutif: Perdana Menteri (daftar): Imran Khan Kabinet Federal Agensi Federal Layanan Sipil Pengadilan Dewan Yudisial Tertinggi Mahkamah Agun…

1985 greatest hits album by Billy JoelGreatest Hits – Volume I & Volume IIGreatest hits album by Billy JoelReleasedAugust 2, 1985Recorded1973–1985GenreRockLength87:12 (LP/Cassette)1:53:45 (CD)1:57:38 (2017)LabelFamily Productions/ColumbiaProducerMichael Stewart, Billy Joel, Phil RamoneBilly Joel chronology An Innocent Man(1983) Greatest Hits – Volume I & Volume II(1985) The Bridge(1986) Singles from Greatest Hits – Volume I & Volume II You're Only Human (Second Wind)R…

Political party in Israel Not to be confused with Green Party (Israel). The Greens הירוקים‎Leader1997-2011: Pe'er VisnerFounded1997Election symbolרק‎Websitewww.green-party.co.ilPolitics of IsraelPolitical partiesElections The Greens (Hebrew: הַיְּרוּקִים, romanized: HaYerukim) is a minor political party in Israel that emphasizes environment protection and quality of life. It was founded and formerly headed by Pe'er Visner. Although the party was never repres…

British psychoanalyst Rose EdgcumbeBorn12 May 1934London, EnglandDied22 August 2001(2001-08-22) (aged 67)NationalityBritishAlma materUniversity College LondonSpousePeter Theobald Rose Edgcumbe (12 May 1934 – 22 August 2001), sometimes known as Rose Edgcumbe Theobald, was a British psychoanalyst, psychologist and child development researcher. Biography Edgcumbe was born in London, and as a child during the London Blitz of World War II, she and her mother were evacuated to Yorkshire in…

2004 filmShanghai StoryTraditional Chinese美麗上海Simplified Chinese美丽上海Literal meaningbeautiful ShanghaiHanyu PinyinMěilì Shànghǎi Directed byPeng XiaolianWritten byPeng XiaolianLin LiangzhongProduced byHsu FengStarringJoey WangJosephine KooFeng YuanzhengZheng ZhenyaoCinematographyLin LiangzhongEdited byPeng XiaolianRelease date June 11, 2004 (2004-06-11) (Shanghai) Running time100 minutesLanguageMandarin Shanghai Story (Chinese: 美丽上海) is a 20…

This article is an orphan, as no other articles link to it. Please introduce links to this page from related articles; try the Find link tool for suggestions. (August 2023) The Global Association of Central Counterparties or CCP Global, formerly CCP12, is the trade association of central counterparty clearinghouses (CCPs) located in Amsterdam in the Netherlands, and China. It represents 39 primary members, and 3 observer members of CCPs operating across Africa, the Americas, Asia, Australia and …

Hostal de San Marcos San Marcos is a former monastery and hospital in the city of León, Spain. It is now a parador, and includes a church and museum. Hostal of San Marcos View of the gardens of the Plaza de San Marcos Detail of the principal facade of the Hostal de San Marcos This article about a Spanish hotel or resort is a stub. You can help Wikipedia by expanding it.vte This article about a church building or other Christian place of worship in Spain is a stub. You can help Wikipedia by expa…

Kembali kehalaman sebelumnya

Lokasi Pengunjung: 3.12.165.202