Professional Documents
Culture Documents
Akira Terui Faculty of Pure and Applied Sciences University of Tsukuba Computer AlgebraThe Algorithms, Implementations and the Next Generation December 26, 2012
Approximate GCD
One of the most well-known method in approximate algebraic computations
F (x) = x + 0.9x
2
6.55
1.5 = (x
G(x) = x
5.7x + 11.25
2.1x 2.3x + 4.5 = (x
Perturbations
4.5)
Approximate GCD
One of the most well-known method in approximate algebraic computations
F (x) = x + 0.9x
2
6.55
G(x) = x
F (x) = F (x) G(x) = G(x)
5.7x + 11.25
0.476722x 1.18569x 0.19906 = (x 0.495096 = (x
4.49082)
Perturbations
For the given F(x), G(x) and d, nd H(x): an approximate GCD of F and G of degree d
F (x): degree m, G(x) : degree n (m H(x) : degree d (d < n)
n)
Gradient Projection
Calculates an approximate GCD with similar amount of perturbations, with much more efciency, compared with optimization-based method
Cd2
1 k (P1 )
0 Cd3
1
1 k (Pn )
. . .
0 . . . 0
k (P1 ) .. . 0 Cdn
0 0 . . .
1
, k (P1 )
Todays talk
Inputs
Polynomials
Pi (x) =
(i) di pdi x
P1 (x), . . . , Pn (x)
+
(i) p1 x
R[x]
(i) p0
Degree d:
min{d1 , . . . , dn } > 0
Find for...
Perturbations Satisfying ...
R[x]
Approximate GCD of degree d
deg(Pi )
Pi (x) = Pi (x) +
2 P1 (x)2
Minimizing ...
+ +
2 Pn (x)2
1
Transfer the original problem into an constrained minimization problem
2
Solve the minimization problem
1
Transfer the original problem into an constrained minimization problem
Pi (x) =
(i) di pdi x
(i) p1 x
(i) p0
Pi (x) =
(i) di pdi x
+ +
(i) p1 x
(i) p0
f (x)
=
i=1
+ +
(i) pj (i) pj
2 Pn (x)2
di j=0
Variable
Constant
x=
Convolution matrix
P (x) = pn x + + p0 x
n
pn . . . Ck (P ) = p0
.. ..
. .
k+1
pn . . . . p0
Cd1
.. ..
(2) pd2
.
(1) pd1
. . .
k (P2 ) .. .. .
(2) pd2
. . . .
. . .
(2) p0
(1) p0
d2 k
min{d1 , d2 } > k
(2) p0
d1 k
Cd2
0 Cd3
1
1 k (Pn )
. . .
0 . . . 0
k (P1 ) .. . 0 Cdn
0 0 . . .
1
, k (P1 )
min{d1 , . . . , dn } > k
A key proposition
Nk (P1 , . . . , Pn ) has full rank
deg(gcd(P1 , . . . , Pn ))
d)
U1 Pi + Ui P1 = 0
Cd2
1 k (P1 )
0 Cd3
1
1 k (Pn )
. . .
0 . . .
k (P1 ) .. . 0 Cdn
0 0 . . .
1
g(x) = 0
(constraint)
Cd2
1 k (P1 )
0 Cd3
1
1 k (Pn )
. . .
0 . . . 0
k (P1 ) .. . 0 Cdn
0 0 . . .
1
, k (P1 )
1)d1
ofn satisfying P1 , . . . , P
(j) U1 P1
+ +
(j) Un Pn
=0
Pj = H P j ,
GCD of P1 , . . . , Pn
gcd(P1 , . . . , Pj ) = 1
P1 ) + +
(j) Un (Pn
Pn ) = 0
Pj +
P j = H Pj ,
gcd(P1 , . . . , Pj ) = 1
Approximate GCD of P1 , . . . , Pn
r + 1 rows
. . . . . . 1
(n) pd2
(n) pd1
..
. . . . . . .
(n) p0
..
(n) p0
n(r + 1)
(d1 + + dn ) columns
C C C C C C C C C C C A
Syzygy of degree r
If there exists a vector v 6= 0 satisfying then there exists a tuple of polynomials
Nr (P1 , . . . , Pn ) v = 0
R1 , . . . , R n satisfying
R 1 P1 + + R n Pn = 0
Syzygy of P1 , . . . , Pn of degree r
B . B . U =@ . (n U1
(1) Un
. . .
1 C C A
1)
(n 1) Un
V1 , . . . , Vn satisfying
(1) U1
. . .
(1) Un
. . .
(n 1) U1
(n 1) Un
=1
V1
Vn
. . .
. . .
(i+1) U1
. . .
(1) Un
. . .
(n 1) U1
(i 1) Un
(i+1) U1
(n 1) Un
Then, we have i Pi = H
GCD cofactor
1) = x
1 x 2
40 7x 4
P4 (x) = H(x) (x 2x
4
4)(x + x + x + 1)
3
6x
(1) U2 (x)
(1) U3 (x)
0.0223458873839458561x 0.00560217899865405114,
(1) U4 (x)
= 0.132420588930000
as well
P1 (x) = (x + 1)(x
GCD
1)
cofactor
dj = deg(Pj ),
d = deg(H)
(n
1)r + d = d1 + + dn
and the degrees of syzygies calculated by the SVD of the generalized Sylvester matrix do not decrease, then we have
deg(
) = deg(Pi ) i
d=2
P1 = H (x + 3x + 1) P2 = H (x + 2x
3 5 4 5 2 3
= x4 + 4x3 + 3x2 + 2x x + 2)
2 3
1,
d1 = 4 d2 = 5
= x + 3x + 2x + 3x + x + 2,
4
P3 = H (x + 2x + x = x + 3x + 4x
7 6 5
4x + x
2 4
5) 8x
2
2x
4x
d3 = 7
2 7 + 2 = 16
Approximate syzygies calculated with the SVD on generalized Sylvester matrix of degree 7
U1 U2 U3
(1)
0.251464889020164006 x
(1) (1)
= 0.212695343726665154 x2 = 0.146124517716594
0.229886463458029544,
U1
(2)
U2 U3
(2) (2)
0.99999999999999600, 0.99999999999999656 x
+ 1.99999999999999489,