Algorithmic problems in the research of number expansions P eter - - PowerPoint PPT Presentation

algorithmic problems in the research of number expansions
SMART_READER_LITE
LIVE PREVIEW

Algorithmic problems in the research of number expansions P eter - - PowerPoint PPT Presentation

Algorithmic problems in the research of number expansions P eter Burcsi & Attila Kov acs { peter.burcsi,attila.kovacs } @compalg.elte.hu Department of Computer Algebra Faculty of Informatics E otv os Lor and University,


slide-1
SLIDE 1

Algorithmic problems in the research of number expansions

P´ eter Burcsi & Attila Kov´ acs

{peter.burcsi,attila.kovacs}@compalg.elte.hu

Department of Computer Algebra Faculty of Informatics E¨

  • tv¨
  • s Lor´

and University, Budapest

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.1/29

slide-2
SLIDE 2

Notations I.

Lattice Λ in Rn M : Λ → Λ such that det(M) = 0 0 ∈ D ⊆ Λ a finite subset

Definition The triple (Λ, M, D) is called a number

system (GNS) if every element x of Λ has a unique, finite representation of the form x = l

i=0 M idi, where di ∈ D and l ∈ N.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.2/29

slide-3
SLIDE 3

Notations II.

Similarity preserves the number system property, i.e, if M1 and M2 are similar via the matrix Q and (Λ, M1, D) is a number system then (QΛ, M2, QD) is a number system as well. No loss of generality in assuming that M is integral acting on the lattice Zn. If two elements of Λ are in the same coset of the factor group Λ/MΛ then they are said to be congruent modulo M.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.3/29

slide-4
SLIDE 4

Notations III.

Theorem 1[1] If (Λ, M, D) is a number system

then

  • 1. D must be a full residue system modulo M,
  • 2. M must be expansive,
  • 3. det(I − M) = ±1.

If a system fulfills these conditions it is called a radix system.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.4/29

slide-5
SLIDE 5

Notations IV.

Let φ : Λ → Λ, x

φ

→ M −1(x − d) for the unique d ∈ D satisfying x ≡ d (mod M). Since M −1 is contractive and D is finite, there exists a norm on Λ and a constant C such that the orbit of every x ∈ Λ eventually enters the finite set S = {p ∈ Λ | x < C} for the repeated application of φ. This means that the sequence x, φ(x), φ2(x), . . . is eventually periodic for all x ∈ Λ.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.5/29

slide-6
SLIDE 6

Notations V.

(Λ, M, D) is a GNS iff for every x ∈ Λ the orbit

  • f x eventually reaches 0.

A point x is called periodic if φk(x) = x for some k > 0. The orbit of a periodic point is called a cycle. The decision problem for (Λ, M, D) asks if they form a GNS or not. The classification problem means finding all cycles.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.6/29

slide-7
SLIDE 7

Content

How to decide expansivity? How to generate expansive operators? How to decide the number system property? Case study: generalized binary number systems. How to classify the expansions? How to construct number systems?

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.7/29

slide-8
SLIDE 8

Expansivity I.

Λ = Zn. Given operator M examine P =charpoly(M). A polynomial is said to be stable if

  • 1. all its roots lie in the open left half-plane, or
  • 2. all its roots lie in the open unit disk.

The first condition defines Hurwitz stability and the second one Schur stability. There is a bilinear mapping between these criterions (Möbius map).

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.8/29

slide-9
SLIDE 9

Expansivity II.

Schur stability: Algorithm of Lehmer-Schur. Hurwitz stability: An n-terminating continued fraction algorithm of Hurwitz. Results: For arbitrary polinomials Lehmer-Schur is faster. For stable polynomials Hurwitz-method is faster. Caution: Intermediate expression swell may

  • ccur.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.9/29

slide-10
SLIDE 10

Expansivity III.

Comparision of the methods for stable polynomials.

1000 10000 100000 1e+06 3 4 5 6 7 8 9 10 all operations degree Stability Lehmer-Schur

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.10/29

slide-11
SLIDE 11

Expansivity III.

Comparision of the methods for stable polynomials.

1000 10000 100000 1e+06 3 4 5 6 7 8 9 10 additions degree Stability Lehmer-Schur

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.10/29

slide-12
SLIDE 12

Expansivity III.

Comparision of the methods for stable polynomials.

1000 10000 100000 1e+06 3 4 5 6 7 8 9 10 multiplications degree Stability Lehmer-Schur

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.10/29

slide-13
SLIDE 13

Expansivity IV.

Hurwitz-method works also for symbolic coeffs. Let a(x) = a0 + a1x + a2x2 + x3 ∈ Z[x]. Hurwitz-method gives that a(x) is expansive if 3a0 − a1 − a2 + 3 a0 − a1 + a2 − 1 , a0 + a1 + a2 + 1 3a0 − a1 − a2 + 3 8(a2

0 − a0a2 + a1 − 1)

(a0 − a1 + a2 − 1)(3a0 − a1 − a2 + 3), are all positive. For the details (with Maple code) see [2].

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.11/29

slide-14
SLIDE 14

Expansivity V.

How to generate expansive integer polynomials with given degree and constant term? Using Las Vegas type randomized algorithm, which produces an expansive polynomial in

R[x], then makes round.

Using the algorithm of Dufresnoy and Pisot [3], which works well for small constant term.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.12/29

slide-15
SLIDE 15

Expansivity VI.

Generating random expansive matrices seems difficult. One can apply an integer basis transformation to the companion matrix of a polynomial. This method generates all expansive matrices

  • nly if the class number of the order

corresponding to the polynomial is 1.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.13/29

slide-16
SLIDE 16

GNS Decision I.

The original method uses a covering of the set of fractions H (all periodic points lie in the set −H). Since H is compact, it gives lower and upper bounds on the coordinates of periodic points [4]. It can be combined with a basis transformation using a simulated annealing type randomized algorithm in order to improve the bounds [5].

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.14/29

slide-17
SLIDE 17

GNS Decision II.

The average improvement in the volume of the covering set expressed in orders of magnitude.

Improvement in orders of magnitude 10 20 30 40 50 60 70 80 90 100 3 4 5 6 7 8 1 2 3 4 5 6 7 8 9

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.15/29

slide-18
SLIDE 18

GNS Decision III.

Brunotte’s canonical number system decision algorithm [6] can be extended (M is the companion of the monic, integer polynomial, D = {(i, 0, 0, . . . 0)T | 0 ≤ i < |det M|}). Function CO N S T R U C T-S E T-E(M, D)

E ← D , E′ ← ∅ ; 1

while E = E′ do

2 E′ ← E; 3

forall e ∈ E and d ∈ D do

4 put φ(e + d) into E; 5

end

6

end

7

return E;

8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.16/29

slide-19
SLIDE 19

GNS Decision IV.

The previous algorithm terminates. Denote B = {(0, 0, . . . , 0, ±1, 0, . . . , 0} the n basis vectors and their opposites. Function SI M P L E-D E C I D E(M, D) E ← CONSTRUCT-SET-E(M, D);

1

forall p ∈ B ∪ E do

2

if p has no finite expansion then

3

return false ;

4

end

5

return true;

6

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.17/29

slide-20
SLIDE 20

GNS Decision V.

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–4 –2 2 4 6 –6 –4 –2 2 4 6

Changing the basis to {(1, 0), (−1, 1)} decreases the volume from 42 to 24. |E| = 65.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.18/29

slide-21
SLIDE 21

GNS Decision VI.

M = 0 −7

1 6

  • , D is canonical.

–1 –0.5 0.5 1 1.5 2 –12 –10 –8 –6 –4 –2 2 4 6

Replacing the basis vector (0, 1) with (−5, 1) gives volume 4 instead of 64. |E| = 12.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.19/29

slide-22
SLIDE 22

Binary Case I.

500 1000 1500 2000 2500 3000 3500 4000 4500 5000 5 10 15 20 25 30 Number of expansive polynomials Degree Binary expansive polynomials Even degrees Odd degrees

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.20/29

slide-23
SLIDE 23

Binary Case II.

Degree 2 3 4 5 6 7 8 9 10 11 Expansive 5 7 29 29 105 95 309 192 623 339 CNS 4 4 12 7 25 12 20 12 42 11

Problems: in higher dimensions the volume of the covering set or the set E are sometimes too big. The largest E encountered is of size 21 223 091, for 2+3x+3x2+3x3+3x4+3x5+3x6 +3x7+3x8+ 2x9 + x10. The number of points in the covering set of this sapmle is 226 508 480 352 000.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.21/29

slide-24
SLIDE 24

GNS Classification I.

Two methods: covering and simple classify. Function SI M P L E-CL A S S I FY(M, D)

D ← D; 1 finished ← false; 2

while not finished do

3 E ← CONSTRUCT-SET-E(M, D) ; 4 finished ← true; 5

forall p ∈ E ∪ B do

6

if p does not run eventually into D then

7 put newly found periodic points into D; 8 finished ← false; 9

end

10

end

11

return D \ D (the set of non-zero periodic points);

12

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.22/29

slide-25
SLIDE 25

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-26
SLIDE 26

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-27
SLIDE 27

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-28
SLIDE 28

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-29
SLIDE 29

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-30
SLIDE 30

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-31
SLIDE 31

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-32
SLIDE 32

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-33
SLIDE 33

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-34
SLIDE 34

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-35
SLIDE 35

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-36
SLIDE 36

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-37
SLIDE 37

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-38
SLIDE 38

SIMPLE-CLASSIFY

M =

  • 1 −2

1 3

  • , D = {(0, 0), (1, 0), (0, 1), (4, 1), (−7, 6)}.

–6 –4 –2 2 4 6 –8 –6 –4 –2 2 4 6 8

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.23/29

slide-39
SLIDE 39

GNS Classification II.

Comparing covering and simple classify: Covering is parallelizable. Both give negative answers fast. Either can beat the other in some cases. Experiments show that the algorithmic complexity of the worst case is exponential.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.24/29

slide-40
SLIDE 40

GNS Construction I.

Given lattice Λ and operator M satisfying criteria 2) and 3) in Theorem 1 is there any suitable digit set D for which (Λ, M, D) is a number system? If yes, how many and how to construct them?

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.25/29

slide-41
SLIDE 41

GNS Construction II.

Theorem (Kátai) Let Λ be the set of algebraic

integers in an imaginary quadratic field and let α ∈ Λ. Then there exists a suitable digit set D by which (Λ, α, D) is a number system if and only if |α| > 1, |1 − α| > 1 hold.

Theorem [8] Let Λ be the set of algebraic integers

in the real quadratic field Q( √ 2) and let 0 = α ∈ Λ. If α, 1±α are not units and |α| , |α| > √ 2 then there exists a suitable digit set D by which (Λ, α, D) is a number system.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.26/29

slide-42
SLIDE 42

GNS Construction III.

Theorem [9] For a given matrix M if ρ(M −1) < 1/2

then there exists a digit set D for which (Λ, M, D) is a number system.

Theorem [9] Let the polynomial

c0 + c1x + · · · + xn ∈ Z[x] be given and let us denote its companion matrix by M. If the condition |c0| > 2 n

i=1 |ci| holds then there exists

a suitable digit set D for which (Zn, M, D) is a number system.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.27/29

slide-43
SLIDE 43

References

[1] Kovács, A., Number expansion in lattices, Math. and Comp. Modelling, 38, (2003), 909–915. [2] Burcsi, P ., Kovács, A., An algorithm checking a necessary condition of number system constructions, Ann. Univ. Sci. Budapest. Sect. Comput. 25, (2005), 143–152. [3] Dufresnoy, J., Pisot, Ch., Etude de certaines fonctions méromorphes bornées sur le cercle unité. Application a un ensemble fermé d’entiers algébriques. Annales scientifiques de l’École Normale Supérieure Sér. 3, 72 no. 1., (1955), 69–92. [4] Kovács, A., On computation of attractors for invertible expanding linear operators in

Z

k , Publ. Math. Debrecen 56/1–2, (2000), 97–120.

[5] Burcsi, P ., Kovács, A., Papp-Varga, Zs., Decision and Classification Algorithms for Generalized Number Systems, submitted. [6] Brunotte, H., On trinomial bases of radix representations of algebraic integers, Acta

  • Sci. Math. (Szeged), 67, (2001), 407–413.

[7] Burcsi, P ., Kovács, A., Algorithms for finding generalized binary number systems, in preparation. [8] Farkas, G., Kovács, A., Digital expansion in Q( p (2)), Annales Univ. Sci. Budapest, Sect. Comp. 22, (2003), 83–94. [9] Germán, L., Kovács, A., On number system constructions, Acta Math., Hungar.,

115, Numbers 1-2, 2007, 155–167.

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.28/29

slide-44
SLIDE 44

Thank you!

Algorithmic problems in the research of number expansions, Graz, 16th April, 2007. – p.29/29