• No results found

Basis reduction for layered lattices Torreão Dassen, E.

N/A
N/A
Protected

Academic year: 2021

Share "Basis reduction for layered lattices Torreão Dassen, E."

Copied!
5
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Basis reduction for layered lattices

Torreão Dassen, E.

Citation

Torreão Dassen, E. (2011, December 20). Basis reduction for layered lattices.

Retrieved from https://hdl.handle.net/1887/18264

Version: Not Applicable (or Unknown)

License: Leiden University Non-exclusive license Downloaded from: https://hdl.handle.net/1887/18264

Note: To cite this publication please use the final published version (if applicable).

(2)

APPENDIX A

Two algorithms

91

(3)

92 APPENDIX A. TWO ALGORITHMS

In this short appendix we present two algorithms of our work in pseudocode.

We start with an algorithm for the Gram-Schmidt procedure which can be derived from proposition (5.7).

input : A sequence of rational matrices {B1, . . . , Bn} ∈ Mm(Q) specifying the inner-product of the layered Euclidean space (Rm,Rn, h·, ·i) with respect to the canonical basis.

output: The Gram-Schmidt basis {ei}mi=1 associated to the canonical basis {ei}i∈m ofQmviewed as a subspace of the layered Euclidean space and the numbers {λi,j}16j<i6m, λi,jQ given by equations (5.9) which specify the canonical basis in terms of its associated Gram-Schmidt basis.

1 for i = 1 to m do

2 ei ← ei;

3 for j = 1 to i − 1 do

/* Compute λi,j inductively. */

4 λi,j← (e∗Ti · e0j)/(e∗Tj · e0j);

/* Update ei. */

5 ei ← ei − λi,j· ej;

6 end for

/* Compute the o(i). */

7 o(i) ← n + 1;

8 repeat

9 o(i) ← o(i) − 1;

10 e0i← Bo(i)· ei;

11 until e∗Ti · e0i6= 0;

12 end for

Algorithm A.1: Gram-Schmidt algorithm

We now give a quick description of the layered LLL algorithm. This is a simplified version based on the algorithm of section (6.2). We chose to de- scribe the algorithm in this way for clarity. By GS({ei}mi=1, k) we mean a call to a sub-procedure computing the first k vectors of the Gram-Schmidt basis associated to the basis {ei}mi=1 and the numbers λi,j, 1 6 j < i 6 k expressing the vectors ei in terms of its associated Gram-Schmidt basis.

(4)

93

input : A rational number c > 4/3 and an ordered sequence of rational matrices {B1, . . . , Bn} ⊂ Mm(Q) specifying the inner-product of the layered Euclidean space (Rm,Rn, h·, ·i) with the property that the group generated by the canonical basis {e1, . . . , em} of Rmis a layered lattice.

output: A c-reduced basis {ei}mi=1 of the same layered lattice.

1 k ← 2;

2 {ei}ki=1, {λi,j}16j<i6k← GS({ei}mi=1, k);

3 for j = k − 1 to j = 1 do

4 if |λk,j| > 1/2 then

/* Size-reduce λk,j. [·] denotes the nearest integer function. */

5 λ ← [λk,j];

6 ek← ek− λ · ej;

7 {ei}ki=1, {λi,j}16j<i6k← GS({ei}mi=1, k); /* Update the Gram-Schmidt basis. */

8 end if

9 end for

10 if lt(q(ek−1)) 6 c · lt(q(ek)) then

/* To this point we have a c-reduced basis up to level k.

*/

11 if k < m then

12 k ← k + 1;

13 GOTO 2;

14 end if

15 EXIT;

16 else

17 e ← ek, ek ← ek−1and ek−1← e; /* Swap ek−1, ek */

18 if k > 2 then

19 k ← k − 1;

20 end if

21 GOTO 2;

22 end if

Algorithm A.2: Layered LLL algorithm

(5)

Referenties

GERELATEERDE DOCUMENTEN

“toekomstige” afname van het aantal agrarische bedrijven het areaal aan landbouwgronden zal afnemen tot bijvoorbeeld 1,6 miljoen hec- tare, wordt niet gestaafd door de cijfers over

Vóór 1910 was de ad-hocverkoop van benzine voor de eerste auto’s geen katalysator voor een herkenbaar netwerk van winkelpanden.. De ontwikkeling van een netwerk van

Deze scriptie onderscheidt zich van eerdere werken omdat het specifiek voor de Nederlandse situatie onderzoekt hoe geldovermakingen van migranten en dus hun economische banden met

Deze begrippen zijn, waaronder GDA, open geformuleerd en kunnen hierdoor verschillend worden geïnterpreteerd door de AIVD, haar toezichthouders en de politiek.. Deze begrippen

Deze structurerende systemen binnen de organisatie zorgen ervoor dat kennis en expertise geborgd en gedeeld kunnen worden en zijn een voorwaarde voor het verbeteren van het

Figuur 3.1 Aantal transacties van bestaande woningen (Kadaster registratie) en aantal door NVM-makelaars verkochte bestaande koopwoningen, op kwartaalbasis, in de periode 3

1999 - 2002 Bachelor degree in Mathematics and Scientific Computing, Federal University of Santa Catarina, Brazil.

Waar respondenten aangeven de hoogte van de afvalstoffenheffing van belang te vinden en melden graag meer mogelijkheden tot subsidie hierop te zien, vormt dit voor de