SlideShare uma empresa Scribd logo
1 de 84
Baixar para ler offline
!"#$%&'(") *$+")
      ,-.":
/%0&-12#- 2500 &-3

 !"#$%&'( )*#+%&,-
.*% "#$/01 23"% -+#(-3# +(,40*%&% -
 1999 5,'6 $%$ 7#8,(0%"9&%1 :#$/01
 +%81*0 !(*6(% ;,<=*%"1 -
 >#&==#"#(=$,8 ?,"0*#@&04#=$,8
 A&=*0*6*#.
!&&,*%/01
B#"9 "#$/00 – C*, 62#'0*9 ="6D%*#"1 - *,8, 4*, 8%*#8%*0$% 0
  %"5,(0*80$% #'0&3, 0 4*, 0@ #'0&=*-, – /#&*(%"9&%1 *#8%
  &%D#E /0-0"0F%/00. A'#1 ,2,2G#&&3@ %"5,(0*8,- &# 23"%
  +(0'68%&% &%80, &, 08##* '(#-&HH 0=*,(0H.
AF64#&0# 8%*#8%*0$0 (%F-0-%#* %(@0*#$*6(&3E *%"%&* – *%"%&*
  ,(5%&0F,-3-%*9 F&%&01, – $,*,(3E &#,2@,'08 +(,5(%880=*%8.
  !"4"&" I-$"0'% – C*, F%8#4%*#"9&3E 64#2&0$ '"1
  (%F(%2,*40$,- =",J&3@ =0=*#8.
K&%&0# 0=*,(00 =-,#E '0=/0+"0&3 &#,2@,'08, 64#&,86, 4*,23
  ,*"040*9 -%J&,# ,* -*,(,=*#+#&&,5,.
?0<%5,( (570BC - 475BC)
L%2"04$% ?"08+*,& 322
«M& [?0<%5,(] +(0'%-%"
-%J&#ED## F&%4#&0# 0F64#&0H
%(0<8#*0$0, $,*,(6H ,& (%F-0" 0
,*'#"0" ,* =(#'3 $,88#(4#=$,5,
0&*#(#=%.»


!(0=*,$=#&
?0<%5,( 640", 4*, «&%4%"%
8%*#8%*0$0 – C*, &%4%"% -=#@
-#G#E».


            !(0=*,*#"9
?0<%5,( (%F-0" «*#,(0H
0((%/0,&%"9&,=*#E 0 +,=*(,#&0#
&#2#=&3@ *#"».
                        ?(,$"
!=*(,&,801


 N#,8#*(01


L#,(01 O0=#"


  76F3$%
O*,23 =-#=*0 80( $ /#"38 40="%8,
&%8 &6J&% #'0&%1 %2=,"H*&%1
8#(%, 8#"94%ED## (%==*,1&0#,
$-%&* +(,=*(%&=*-%.
L%$,E 8#(3 &#*!
P%$ 23 &0 8%"% 23"%
&%D% 8#(%, #=*9
,*(#F$0, $,*,(3# ,&%
&# 8,J#* 0F8#(0*9.
gcm(a, a) = a!
gcm(a, b) = gcm(a, a + b)!
a>b          gcm(a, b) = gcm(a - b, b)!
gcm(a, b) = gcm(b, a)!
line_segment gcm(line_segment a,
                  line_segment b) {
    if (a == b)    return a;
    if (a > b)     return gcm(a-b, b);
    if (a < b)     return gcm(a, b-a);
}
196      42
   154      42
   112      42
    70      42
    28      42
    28      14
    14      14 Done!

GCD:   14
?0<%5,(#E/3 ,2&%(6J0"0, 4*, -=1$%1
&0=@,'1G%1 +,="#',-%*#"9&,=*9
&%*6(%"9&3@ 40=#" $,&#4&%. .*, 23"% 0@
<,(8% +(0&/0+% 8%*#8%*04#=$,E
0&'6$/00.
O*,23 ',$%F%*9, 4*, &#4*, /#",40="#&&,#
&# =6G#=*-6#*, 83 ',"J&3 +,$%F%*9, 4*,
#="0 ,&, =6G#=*-6#*, *, 0 &#4*, 8#&9D##
#5, =6G#=*-6#*.
?(#'+,",J08 4*, =6G#=*-6#* 8#(%,
0F8#(1HG%1 =*,(,&6 0 '0%5,&%"9
&#$,*,(,5, $-%'(%*%. L#+#(9 -,F98#8
=%83E 8%"3E $-%'(%*, $,*,(3E 0F8#(1#*=1
C*,E 8#(,E.
B   A




C   D
B                 A


 E


          F
 C                  D
AB = AF       AC ! EF
B            A


     E

G
          F
     C            D
    AC ! CG   EG ! EF
B                  A


    E

G
            F
    C                  D
        CF = EF = EB
B              A


    E

G
          F
     C             D

    gcm(AC,AB) = gcm(AB,CF)!
    gcm(CE,CF) = gcm(AC,AB)
B              A


    E

G
          F
  C                D
EC > EB   > EB < AB/2!
73 +,=*(,0"0 8#&9D0E $-%'(%*,
0F8#(1#83E C*,E 8#(,E.
?(,*0-,(#40#!
)*,(,&% 0 '0%5,&%"9 &,-,5, $-%'(%*%,
+,"64#&&,5, ',$%F%*#"9=*-,8, +,"64%H*=1
+,="# '-6@ D%5,- =62*(%$*0-&,5, %"5,(0*8%:
d, s => s, d - s => 2s - d, d – s
!"#$%$&'#() (*#(+)#,) -)./0 #,-,
1(23$#4)*14:
          d/s = (2s - d)/(d -s)!
Q% =,-(#8#&&,8 1F3$#, ?0<%5,( ,*$(3",
 4*, R2 0((%/0,&%"#&.
?"%*,& (427BC - 347BC)
"#$%&$'()'*+ &),$-+ $-+-'% !
S% &# -,E'#* =H'%
    &#F&%HG0E 5#,8#*(00
M&0 +(0D"0 &% "#$/0H ?"%*,&% , S,2(#,
&%'#1=9, 4*, ,&0 6F&%H*, $%$ +,"640*9 -#G0,
$,*,(3# 80( &%F3-%#* ',2(,8: '#&950, 0"0
F',(,-9#, 0"0 =0"6. T="3D%- J#, 4*, ?"%*,&
(%==6J'%" , 8%*#8%*0$#, ,&0 23"0
+,"&,=*9H (%F,4%(,-%&3.

                       !(0=*,$=#&
!"#$%& (325BC-265BC)
Q#$*,, &%4%-D0E 0F64%*9 5#,8#*(0H,
 +(,D#'D0 +#(-6H *#,(#86, =+(,=0"
 I-$"0'%: «O*, 1 F%(%2,*%H, -3640- -=#
 C*,?» I-$"0' =$%F%" =-,#86 (%26: «S%E
 #86 %"*3&, 02, ,& @,4#* ,* &%6$0
 +,J0-0*9=1».

)*,2#E, 523%&%6#)
I-$"0' 5%(%&*0(6#* ,=*%&,-$6 %"5,(0*8% =
+,8,G9H &,-3@ *0+,- +#(#8#&&3@:
unsigned int gcd(unsigned int a,
                 unsigned int b) {
   assert(a > 0 && b > 0);
   //
   //

   if (a == b)   return a;
   if (a > b)    return gcd(a-b, b);
/* if (b > a) */ return gcd(a, b-a);
}
Q,-%1 7%*#8%*0$% +(,*0-
         I-$"0'%
U 1959, &% $,&<#(#&/00 640*#"#E
  8%*#8%*0$0 -, V(%&/00, W%& S9#',&&#
  $(04%" ”S,",E I-$"0'%!” 0 ”)8#(*9
  *(#65,"9&0$%8!”
!. 5. 67&(- !"#$#%&'(%') *#+$#&(,)
  -(#./# , 0#1#(23
N,'3 6+%'$%: 212BC - 1202AD
In summo apud illos honore geometria fuit, itaque nihil
   mathematicis inlustrius; at nos metiendi ratiocinandique
   utilitate huius artis terminavimus modum.

)(#'0 &0@ [N(#$,-] 5#,8#*(01 23"% - -#"04%ED#8
  +,4#*#; &04#5, &# 23", 2"0=*%*#"9&#E 8%*#8%*0$0.
  73 [>08"1&#] ,5(%&040"0 +,"#F&,=*9 C*,E &%6$0
  +,'=4#*%80 0 -340="#&0180.

B0/#(,&, 78098&"209#- :-0-1;
if (a > b)   return gcd(a-b, b);
             return gcd(a, b-a);

      ?,4#86 a-b, % &# a%b?
!"#$%&'# ()*%$+,)- (1170-1250)
unsigned int gcd(unsigned int m,
                 unsigned int n) {
   while (n != 0) {
     unsigned int t = m % n;
     m = n;
     n = t;
   }
   return m;
}
196      42   196 = 42*4 + 28
    42      28    42 = 28*1 + 14
    28      14    28 = 14*2 + 0
    14      0     Done!

GCD:   14
)08,& )*#-0& (1548 - 1620)
)08,& )*#-0&:
int gcd(int m, int n) {
   while (n != 0) {
     int t = m % n;
     m = n;
     n = t;
   }
   return m;
}
)08,& )*#-0&:

polynomial<real>
gcd(polynomial<real> m,
     polynomial<real> n) {
   while (n != 0) {
      polynomial<real> t = m % n;
      m = n;
      n = t;
   }
   return m;
}
3x2+2x-2
x-2 3x3-4x2-6x+10
    3x3-6x2
        2x2-6x
        2x2-4x
            -2x+10
            -2x+4
                6
P%(" V(0'(0@ N%6==
   (1777 - 1855)
P,5'% '%&3 40="% A, B, C 0 *.'., 0@ 2"#$%&'(#<
%$+#< 1-&#3-&' &%@,'0*=1 ="#'6HG08
,2(%F,8. ?6=*9 -=# C*0 40="% 26'6* (%F20*3
&% +(,=*3# 8&,J0*#"0, 0 0F &0@ -32#(#8 *#,
$,*,(3# 1-"1H*=1 -, -=#@ 40="%@ A, B, C, …

...73 F&%#8 0F C"#8#&*%(&3@ =,,2(%J#&0E,
$%$ (#D0*9 C*0 +(,2"#83, $,5'% (%F20#&0# &%
+(,=*3# 40="% &# '%&,...

    N%6==, 5.#=>-3#4-09#- ?00&-1%@"2#)
P%(" N%6==:

complex<int>
gcd(complex<int> m,
     complex<int> n) {
   while (n != 0) {
      complex<int> t = m % n;
      m = n;
      n = t;
   }
   return m;
}
Q%@,J'#&0# ,=*%*$% ,*
'#"#&01 '-6@ 5%6==,-3@ 40=#"
O*,23 &%E*0 ,=*%*,$ ,* '#"#&01 z1 &% z2
1.8 ?,=*(,E*# $-%'(%*&6H (#D#*$6 &%
    $,8+"#$=&,E +",=$,=*0, +,(,J'#&&6H
    z2 (-8#=*# = i*z2, -i*z2 0 –z2).
2.8 Q%E'0*# $-%'(%* - (#D#*$#, $,*,(3E
    -$"H4%#* z1.
3.8 Q%E'0*# -#(D0&6 $-%'(%*% w ,
    2"0J%ED6H $ z1.
4.8 M=*%*,$ (%-#& z1 - w.
?#*#( N6=*%- :#J#& S0(0@"#
       (1805 - 1857)
«L#+#(9 &%8 1=&,, 4*, -=1 =*(6$*6(% *#,(00 40=#"
'#(J0*=1 &% ,'&,8 ,=&,-%&00, 08#&&,, &% %"5,(0*8# '"1
&%@,J'#&01 &%02,"9D#5, ,2G#5, '#"0*#"1 '-6@ 40=#".
U=# +,="#'6HG0# *#,(#83 … C*, *,"9$, C"#8#&*%(&3#
F%$"H4#&01 0F C*,5, 0F&%4%"9&,5, ,*$(3*01, *%$ 4*,
8,J&, 6*-#(J'%*9 ="#'6HG##: "H2%1 *#,(01, - $,*,(,E
#=*9 +,',2&3E %"5,(0*8 '"1 &%02,"9D#5, ,2G#5,
'#"0*#"1, ',"J&% *%$J# =,'#(J%*9 *# J# F%$"H4#&01,
$%$ 0 &%D% *#,(01. A '#E=*-0*#"9&,, *%$0# *#,(00
=6G#=*-6H*!»

:#J#& S0(0@"#
A-9B## /% 7-%.## C#0-&
«I="0 83 -,F98#8 8&,J#=*-, 40=#"
                t + n!-a
5'# a – 9(#93)*#() #$*03$&'#() %,1&(, t 0 n –
  +(,0F-,"9&3# /#"3# 40="% … *, *,"9$, '"1
  &#$,*,(3@ F&%4#&0E of a, &%+(08#(, a = 1,
  &%02,"9D0E ,2G0E '#"0*#"9 '-6@ 40=#" 8,J#* 23*9
  &%E'#& = +,8,G9H *%$,5, J# %"5,(0*8%, $%$ 0 '"1 ...
  /#"3@ 40=#". … .*, =,-=#8 &# *%$, $,5'% a = 5. …
  Q%+(08#(, 21 = 3*7 = (1+2!-5)*(1-2!-5)…»

:#J#& S0(0@"#
A-9B## /% 7-%.## C#0-&
>0@%(' S#'#$0&'
  (1831 - 1916)
B#"3# %"5#2(%04#=$0# 40="%
B#"3# %"5#2(%04#=$0# 40="% – C*, $,(&0
 8&,5,4"#&,- = /#",40="#&&380
 $,C<<0/0#&*%80 0 = -#'6G08
 $,C<<0/0#&*,8, (%-&38 #'0&0/#.
Es steht alles schon bei Dedekind!

                   .880 QX*#(

(.*, -=X #=*9 6 S#'#$0&'%.)

U=X = $,"9/%, +,"1, 0'#%"3, 8,'6"0...
I-$"0' 0 N#**0&5#&
•8   N%6==
      –8 ?(%-0"9&3# 8&,5,65,"9&0$0
      –8 ?1*3E +,=*6"%*
•8   S0(0@"#
      –8 ?(,=*3# 40="% - %(0<8#*04#=$0@ +(,5(#==01@
•8   >08%&
      –8 Q##-$"0',-% 5#,8#*(01
•8   S#'#$0&'
      –8 U,F(,J'#&0# *#,(00 0((%/0,&%"9&,=*#E I-',$=%
•8   P"#E&
      –8 .("%&5#&=$%1 +(,5(%88%
•8   N0"92#(*
      –8 M=&,-%&01 5#,8#*(00
      –8 !(0<8#*0F%/01 8%*#8%*0$0
.880 QX*#( (1882 -1935)
I="0 (%F-0*0# 8%*#8%*0$0 =#5,'&1D&#5, '&1
  &#=,8&#&&, +(,*#$%#* +,' F&%$,8
  %"5#2(%0F%/00, +(,&0$&,-#&01
  %"5#2(%04#=$0@ +,&1*0E 0 %"5#2(%04#=$0@
  8#*,',- - =%83# (%F"04&3#
  8%*#8%*04#=$0# *#,(00, *, C*, =*%",
  -,F8,J&38 "0D9 +,="# (%2,* .880
  QX*#(.
           ?%-#" )#(5##-04 !"#$=%&'(,-
Y%(*#"9 :##&'#(* -%& '#( U%('#&
          (1903 - 1996)
S#'#$0&', QX*#(, -%& '#( U%('#&:


template <class EuclideanRing>
EuclideanRing gcd(EuclideanRing m,
                  EuclideanRing n) {
   while (n != 0) {
     EuclideanRing t = m % n;
     m = n;
     n = t;
   }
   return m;
}
I-$"0',-3 $,"9/%
•8 P,886*%*0-&,# $,"9/,(+, -, *)
•8 V6&$/01 norm: Ring -> Unsigned
  –8norm(a*b) >= norm(a)
  –8 "#$ %&'( a, b, )*' b != 0, +./"+01.20
     q, r, +,-.' /+0 a == q*b + r .
      r == 0 || norm(r) < norm(b)
S,&%"9' P&6*
  (1938 - )
U,F(%J#&0# P&6*%: gcd(1, -1) = -1!

template <class EuclideanRing>
EuclideanRing gcd(EuclideanRing m,
                  EuclideanRing n) {
   while (n != 0) {
     EuclideanRing t = m % n;
     m = n;
     n = t;
   }
   if (m < 0) m = -m;
   return m;
}
K%-0=0* ,* ,+(#'#"#&01!
Q%02,"9D0E ,2G0E '#"0*#"9 – C*, '#"0*#"9,
  $,*,(3E '#"0*=1 "H238 '(6508 ,2G08
              '#"0*#"#8.
P,&/#+/01 I-$"0',-% $,"9/%
•8 M+#(%/00 0 0@ =-,E=*-%

•8 7,'#"0

•8 !"5,(0*83
A,=0< ;*#E&(1961):

 gcd(n, 0) = gcd(0, n) = n
 gcd(n, n) = n
 gcd(2n, 2m) = 2gcd(n, m)
 gcd(2n, 2m + 1) = gcd(n, 2m + 1)
 gcd(2n + 1, 2m) = gcd(2n + 1, m)
 gcd(2n + 1, 2(n + k) + 1) =
     gcd(2(n + k) + 1, 2n + 1) =
        gcd(2n + 1, k)
196       42
  98        21    2
  49        21    2
  28        21    2
  14        21    2
   7        21    2
  14          7   2
   7          7   2   Done!
GCD: 7*2 = 14
template <class BinaryInteger>
BinaryInteger gcd(BinaryInteger m,
                  BinaryInteger n) {

  make_non_negative(m);
  make_non_negative(n);

  if (is_zero(m)) return n;
  if (is_zero(n)) return m;

  int d = 0;

  while (is_even(m) && is_even(n)) {
    half_non_negative(m);
    half_non_negative(n);
    ++d;
  }
while (is_even(m)) half_non_negative(m);

    while (is_even(n)) half_non_negative(n);

    while (true)
      if (m < n) {
        n = n - m;
        do {
          half_non_negative(n);
        } while (is_even(n));
      } else if (n < m) {
        m = m - n;
        do {
          half_non_negative(m);
        } while (is_even(m));
      } else
        return left_shift(m, d);
}
;*#E& '"1 8&,5,4"#&,-

A=+,"9F6E x $%$ 2!
;*#E& '"1 8&,5,4"#&,-
gcd(p,0) = gcd(0,p) = p
gcd(p, p) = p
gcd(x*p1,x*p2) = x*gcd(p1, p2)
gcd(x*p1,x*p2+c) = gcd(p1, x*p2+c)
gcd(x*p1+c,x*p2) = gcd(x*p1+c,p2)
if degree(p1) >= degree(p2)
 gcd(x*p1+c1,x*p2+c2) =
  gcd(p1-(c1/c2)*p2, x*p2+c2)
if degree(p1) < degree(p2)
 gcd(p1,p2) = gcd(p2,p1)
x3-3x-2      x2-4
x3-.5x2-3x   x2-4
x2-.5x-3     x2-4
x2-2x        x2-4
x-2          x2-4
x2-4         x-2
x2-2x        x-2
x-2          x-2 Done!
GCD: x-2
!"5,(0*8 U#E"#(*% '"1 5%6==,-3@ 40=#"

A=+,"9F6E 1+i $%$ 2!
S#"#&0# &% 1+i
a+bi/1+i =(a+bi)(1-i)/(1+i)(1-i)=
 (a+bi)(1-i)/2 = ((a+b) - (a-b)i)/2

N%6==,-, 40=", a+bi '#"0*=1 &% 1+i *,5'%
  0 *,"9$, *,5'% a=b(mod 2)
),$(%G#&0# ,=*%*$%
I="0 '-% 5%6==,-3@ 40="% z1 0 z2 &# '#"1*=1 &% 1+i, *,
  z1+z2, z1-z2, z1+i*z2 0 z1-i*z2 '#"1*=1 &% 1+i.

A,

min (|z1+z2|, |z1-z2|, |z1+i*z2|, |z1-i*z2|) < max(|z1|, |z2|)
!"5,(0*8 Damgård 0 Frandsen
•8 !"5,(0*8 ;*#E&% *%$J# (%2,*%#* '"1
   40=#" .EF#&D*#E&% Z[Z], *, #=*9 /#"3@
   40=#", (%=D0(#&&3@ = Z (      )
   (+(080*0-&3E $6204#=$0E $,(#&9 0F 1).
•8 73 0=+,"9F6#8 1 – Z $%$ 2.
O*, *%$,# $,"9/, ;*#E&%?
Q##-$"0',-3 $,"9/% ;*#E&%

U 2004 Agarwal 0 Frandsen +,$%F%"0 4*,
  #=*9 $,"9/% - $,*,(3@ &# (%2,*%#*
  %"5,(0*8 I-$"0'%, &, (%2,*%#*
  %"5,(0*8 ;*#E&%.
K%$"H4#&0#
•8 A&<,(8%*0$% C*, 7%*#8%*0$%
Y02"0,5(%<01


7&,50# 0F $&05 - 202"0,5(%<00
 =6G#=*-6H* - +(#$(%=&3@ (6==$0@
 +#(#-,'%@.
David Fowler, The Mathematics Of Plato's Academy,
   Oxford, 1999
John Stillwell, Mathematics and Its History, Springer-
   Verlag, 1989
Sir Thomas Heath, History of Greek Mathematics,
   Dover, 1981 (2 volumes)
Euclid, Elements, translated by Sir Thomas L.
   Heath, Dover , 1956 (3 volumes)
B. L. van der Waerden, Geometry and Algebra in
   Ancient Civilizations, Springer-Verlag, 1983
Robin Hartshorne, Geometry: Euclid and Beyond,
   Springer-Verlag, 2000
Lucio Russo, The Forgotten Revolution, Springer-
   Verlag, 2004
Laurence E. Siegler, Fibonacci's Liber Abaci,
  Springer-Verlag, 2002
Nicolas Bourbaki, Elements of the History of
  Mathematics, Springer-Verlag, 1999
Carl Friedrich Gauss, Disquisitiones Arithmaticae,
  Yale, 1965
John Stillwell, Elements of Number Theory,
  Springer-Verlag, 2002
Peter Gustav Lejeune Dirichlet, Lectures on
  Number Theory, AMS, 1999
Richard Dedekind, Theory of Algebraic Integers,
  Cambridge, 1996
B. L. van der Waerden, Algebra, Springer-Verlag,
  1994
Donald Knuth, Art of Computer Programming, vol.
  2, Seminumerical Algorithms, Addison-Wesley,
  1998
Josef Stein, Computational problems associated
  with Racah algebra, J. Comput. Phys., (1967) 1,
  397-405
Andre Weilert, (1+ i)-ary GCD Computation in Z[i]
  as an Analogue of the Binary GCD Algorithm, J.
  Symbolic Computation (2000) 30, 605-617
Ivan Bjerre Damgård and Gudmund Skovbjerg
  Frandsen, Efficient algorithms for GCD and
  cubic residuosity in the ring of Eisenstein
  integers, Proceedings of the 14th International
  Symposium on Fundamentals of Computation
  Theory, Lecture Notes in Computer Science
  2751, Springer-Verlag (2003), 109-117

Saurabh Agarwal, Gudmund Skovbjerg Frandsen,
  Binary GCD Like Algorithms for Some Complex
  Quadratic Rings. ANTS 2004, 57-71

Mais conteúdo relacionado

Mais procurados

Pay for Success Projects and Social Impact Bonds: Structuring Considerations ...
Pay for Success Projects and Social Impact Bonds: Structuring Considerations ...Pay for Success Projects and Social Impact Bonds: Structuring Considerations ...
Pay for Success Projects and Social Impact Bonds: Structuring Considerations ...Nonprofit Finance Fund
 
Nearby Startup Pitch for SUU 2013 conference
Nearby Startup Pitch for SUU 2013 conferenceNearby Startup Pitch for SUU 2013 conference
Nearby Startup Pitch for SUU 2013 conferenceAdam Nemeth
 
القيادة وقت الازمات
القيادة وقت الازمات القيادة وقت الازمات
القيادة وقت الازمات Dr Ghaiath Hussein
 
Основные правила подбора КФ от Яндекса
Основные правила подбора КФ от ЯндексаОсновные правила подбора КФ от Яндекса
Основные правила подбора КФ от ЯндексаMAXGEN Онлайния
 
Design Management Review
Design Management ReviewDesign Management Review
Design Management Reviewedora1
 
Al Fazl International Weekly 26 September 2014
Al Fazl International Weekly 26 September 2014Al Fazl International Weekly 26 September 2014
Al Fazl International Weekly 26 September 2014muzaffertahir9
 
Slimmer werken aan zorgdossiers in organisaties
Slimmer werken aan zorgdossiers in organisatiesSlimmer werken aan zorgdossiers in organisaties
Slimmer werken aan zorgdossiers in organisatiesJos Arets
 
Vers la performance globale de la commande publique
Vers la performance globale de la commande publique Vers la performance globale de la commande publique
Vers la performance globale de la commande publique CJD Côte d'Emeraude
 
Story bird resources_part_3
Story bird resources_part_3Story bird resources_part_3
Story bird resources_part_3Eric Brace
 
Al Fazl International Weekly 15 May 2015
Al Fazl International Weekly 15 May 2015Al Fazl International Weekly 15 May 2015
Al Fazl International Weekly 15 May 2015muzaffertahir9
 
Обзор рынка Дополненной реальности
Обзор рынка Дополненной реальностиОбзор рынка Дополненной реальности
Обзор рынка Дополненной реальностиAndrei Mamontov
 
9t rainforest menus
9t rainforest menus9t rainforest menus
9t rainforest menusAshleigh100
 

Mais procurados (18)

Pay for Success Projects and Social Impact Bonds: Structuring Considerations ...
Pay for Success Projects and Social Impact Bonds: Structuring Considerations ...Pay for Success Projects and Social Impact Bonds: Structuring Considerations ...
Pay for Success Projects and Social Impact Bonds: Structuring Considerations ...
 
Nearby Startup Pitch for SUU 2013 conference
Nearby Startup Pitch for SUU 2013 conferenceNearby Startup Pitch for SUU 2013 conference
Nearby Startup Pitch for SUU 2013 conference
 
القيادة وقت الازمات
القيادة وقت الازمات القيادة وقت الازمات
القيادة وقت الازمات
 
Основные правила подбора КФ от Яндекса
Основные правила подбора КФ от ЯндексаОсновные правила подбора КФ от Яндекса
Основные правила подбора КФ от Яндекса
 
Design Management Review
Design Management ReviewDesign Management Review
Design Management Review
 
Al Fazl International Weekly 26 September 2014
Al Fazl International Weekly 26 September 2014Al Fazl International Weekly 26 September 2014
Al Fazl International Weekly 26 September 2014
 
Sandbanks Summer Village Economic Benefits
Sandbanks  Summer  Village    Economic  BenefitsSandbanks  Summer  Village    Economic  Benefits
Sandbanks Summer Village Economic Benefits
 
Slimmer werken aan zorgdossiers in organisaties
Slimmer werken aan zorgdossiers in organisatiesSlimmer werken aan zorgdossiers in organisaties
Slimmer werken aan zorgdossiers in organisaties
 
Vers la performance globale de la commande publique
Vers la performance globale de la commande publique Vers la performance globale de la commande publique
Vers la performance globale de la commande publique
 
Story bird resources_part_3
Story bird resources_part_3Story bird resources_part_3
Story bird resources_part_3
 
Commerce extérieur france 3e trimestre 2010
Commerce extérieur france 3e trimestre 2010Commerce extérieur france 3e trimestre 2010
Commerce extérieur france 3e trimestre 2010
 
Al Fazl International Weekly 15 May 2015
Al Fazl International Weekly 15 May 2015Al Fazl International Weekly 15 May 2015
Al Fazl International Weekly 15 May 2015
 
Globe Trotting for Green Building Hotspots
Globe Trotting for Green Building HotspotsGlobe Trotting for Green Building Hotspots
Globe Trotting for Green Building Hotspots
 
APP Panacea o Ilusión
APP Panacea o IlusiónAPP Panacea o Ilusión
APP Panacea o Ilusión
 
Story Telling With Open Data
Story Telling With Open DataStory Telling With Open Data
Story Telling With Open Data
 
Обзор рынка Дополненной реальности
Обзор рынка Дополненной реальностиОбзор рынка Дополненной реальности
Обзор рынка Дополненной реальности
 
9t rainforest menus
9t rainforest menus9t rainforest menus
9t rainforest menus
 
Biz model for haptics technology
Biz model for haptics technologyBiz model for haptics technology
Biz model for haptics technology
 

Semelhante a Наибольшая общая мера: 2500 лет

Start-up: FanpageTrender.pl - pomiar działań marketingowych na Facebooku
Start-up: FanpageTrender.pl - pomiar działań marketingowych na FacebookuStart-up: FanpageTrender.pl - pomiar działań marketingowych na Facebooku
Start-up: FanpageTrender.pl - pomiar działań marketingowych na Facebookucendoo1
 
Fanpage Trender
Fanpage TrenderFanpage Trender
Fanpage TrenderCendoo
 
Wierzbowski
WierzbowskiWierzbowski
Wierzbowskicendoo1
 
Filtrowanie treści - dylematy operatorów serwisów społecznościowych
Filtrowanie treści - dylematy operatorów serwisów społecznościowychFiltrowanie treści - dylematy operatorów serwisów społecznościowych
Filtrowanie treści - dylematy operatorów serwisów społecznościowychCendoo
 
η νεκρανάσταση του πιο βρώμικου αντικομμουνισμού
η νεκρανάσταση του πιο βρώμικου αντικομμουνισμούη νεκρανάσταση του πιο βρώμικου αντικομμουνισμού
η νεκρανάσταση του πιο βρώμικου αντικομμουνισμούKostas Panagio
 
DiplomadoIABMex_Equipo6
DiplomadoIABMex_Equipo6DiplomadoIABMex_Equipo6
DiplomadoIABMex_Equipo6jorgemacias23
 
PCon 2016: Advanced Attribution & Predictive Customer Interaction (Dr. Alwin ...
PCon 2016: Advanced Attribution & Predictive Customer Interaction (Dr. Alwin ...PCon 2016: Advanced Attribution & Predictive Customer Interaction (Dr. Alwin ...
PCon 2016: Advanced Attribution & Predictive Customer Interaction (Dr. Alwin ...e-dialog GmbH
 
Shannon Behary - Mythology & Literature in Harry Potter
Shannon Behary - Mythology & Literature in Harry PotterShannon Behary - Mythology & Literature in Harry Potter
Shannon Behary - Mythology & Literature in Harry PotterNerd Nite Siem Reap
 
Wikimedia UK Keynote Presentation
Wikimedia UK Keynote Presentation Wikimedia UK Keynote Presentation
Wikimedia UK Keynote Presentation Ollie Bray
 
الجزء الثالث أسئلة تنفيذية مهندس محمد زكى إسماعيل
الجزء الثالث أسئلة تنفيذية مهندس محمد زكى إسماعيلالجزء الثالث أسئلة تنفيذية مهندس محمد زكى إسماعيل
الجزء الثالث أسئلة تنفيذية مهندس محمد زكى إسماعيلMohamed Saeed
 
Go Open 2008: Simon Phipps, Fri programvare - en innovasjonsstrategi
Go Open 2008: Simon Phipps, Fri programvare - en innovasjonsstrategiGo Open 2008: Simon Phipps, Fri programvare - en innovasjonsstrategi
Go Open 2008: Simon Phipps, Fri programvare - en innovasjonsstrategiFriprogsenteret
 
Annotating documents, the eXtensible Wiki Way
Annotating documents, the eXtensible Wiki WayAnnotating documents, the eXtensible Wiki Way
Annotating documents, the eXtensible Wiki WayXWiki
 

Semelhante a Наибольшая общая мера: 2500 лет (20)

referente
referentereferente
referente
 
Start-up: FanpageTrender.pl - pomiar działań marketingowych na Facebooku
Start-up: FanpageTrender.pl - pomiar działań marketingowych na FacebookuStart-up: FanpageTrender.pl - pomiar działań marketingowych na Facebooku
Start-up: FanpageTrender.pl - pomiar działań marketingowych na Facebooku
 
Fanpage Trender
Fanpage TrenderFanpage Trender
Fanpage Trender
 
Wierzbowski
WierzbowskiWierzbowski
Wierzbowski
 
Filtrowanie treści - dylematy operatorów serwisów społecznościowych
Filtrowanie treści - dylematy operatorów serwisów społecznościowychFiltrowanie treści - dylematy operatorów serwisów społecznościowych
Filtrowanie treści - dylematy operatorów serwisów społecznościowych
 
η νεκρανάσταση του πιο βρώμικου αντικομμουνισμού
η νεκρανάσταση του πιο βρώμικου αντικομμουνισμούη νεκρανάσταση του πιο βρώμικου αντικομμουνισμού
η νεκρανάσταση του πιο βρώμικου αντικομμουνισμού
 
Sani 2013 satisfaction.
Sani 2013   satisfaction.Sani 2013   satisfaction.
Sani 2013 satisfaction.
 
Sandbanks Summer Village Economic Benefits
Sandbanks  Summer  Village    Economic  BenefitsSandbanks  Summer  Village    Economic  Benefits
Sandbanks Summer Village Economic Benefits
 
DiplomadoIABMex_Equipo6
DiplomadoIABMex_Equipo6DiplomadoIABMex_Equipo6
DiplomadoIABMex_Equipo6
 
PCon 2016: Advanced Attribution & Predictive Customer Interaction (Dr. Alwin ...
PCon 2016: Advanced Attribution & Predictive Customer Interaction (Dr. Alwin ...PCon 2016: Advanced Attribution & Predictive Customer Interaction (Dr. Alwin ...
PCon 2016: Advanced Attribution & Predictive Customer Interaction (Dr. Alwin ...
 
English
EnglishEnglish
English
 
Shannon Behary - Mythology & Literature in Harry Potter
Shannon Behary - Mythology & Literature in Harry PotterShannon Behary - Mythology & Literature in Harry Potter
Shannon Behary - Mythology & Literature in Harry Potter
 
03 The emergence of a new agriculture paradigm - Bjorn Low - Edible Garden City
03 The emergence of a new agriculture paradigm - Bjorn Low - Edible Garden City03 The emergence of a new agriculture paradigm - Bjorn Low - Edible Garden City
03 The emergence of a new agriculture paradigm - Bjorn Low - Edible Garden City
 
Wikimedia UK Keynote Presentation
Wikimedia UK Keynote Presentation Wikimedia UK Keynote Presentation
Wikimedia UK Keynote Presentation
 
الجزء الثالث أسئلة تنفيذية مهندس محمد زكى إسماعيل
الجزء الثالث أسئلة تنفيذية مهندس محمد زكى إسماعيلالجزء الثالث أسئلة تنفيذية مهندس محمد زكى إسماعيل
الجزء الثالث أسئلة تنفيذية مهندس محمد زكى إسماعيل
 
Ppt wkc 18 novembre
Ppt wkc 18 novembrePpt wkc 18 novembre
Ppt wkc 18 novembre
 
Go Open 2008: Simon Phipps, Fri programvare - en innovasjonsstrategi
Go Open 2008: Simon Phipps, Fri programvare - en innovasjonsstrategiGo Open 2008: Simon Phipps, Fri programvare - en innovasjonsstrategi
Go Open 2008: Simon Phipps, Fri programvare - en innovasjonsstrategi
 
Ph 2
Ph 2Ph 2
Ph 2
 
Overview of APEC Region Wine Trade 2011
Overview of APEC Region Wine Trade 2011Overview of APEC Region Wine Trade 2011
Overview of APEC Region Wine Trade 2011
 
Annotating documents, the eXtensible Wiki Way
Annotating documents, the eXtensible Wiki WayAnnotating documents, the eXtensible Wiki Way
Annotating documents, the eXtensible Wiki Way
 

Наибольшая общая мера: 2500 лет

  • 1. !"#$%&'(") *$+") ,-.": /%0&-12#- 2500 &-3 !"#$%&'( )*#+%&,-
  • 2. .*% "#$/01 23"% -+#(-3# +(,40*%&% - 1999 5,'6 $%$ 7#8,(0%"9&%1 :#$/01 +%81*0 !(*6(% ;,<=*%"1 - >#&==#"#(=$,8 ?,"0*#@&04#=$,8 A&=*0*6*#.
  • 3. !&&,*%/01 B#"9 "#$/00 – C*, 62#'0*9 ="6D%*#"1 - *,8, 4*, 8%*#8%*0$% 0 %"5,(0*80$% #'0&3, 0 4*, 0@ #'0&=*-, – /#&*(%"9&%1 *#8% &%D#E /0-0"0F%/00. A'#1 ,2,2G#&&3@ %"5,(0*8,- &# 23"% +(0'68%&% &%80, &, 08##* '(#-&HH 0=*,(0H. AF64#&0# 8%*#8%*0$0 (%F-0-%#* %(@0*#$*6(&3E *%"%&* – *%"%&* ,(5%&0F,-3-%*9 F&%&01, – $,*,(3E &#,2@,'08 +(,5(%880=*%8. !"4"&" I-$"0'% – C*, F%8#4%*#"9&3E 64#2&0$ '"1 (%F(%2,*40$,- =",J&3@ =0=*#8. K&%&0# 0=*,(00 =-,#E '0=/0+"0&3 &#,2@,'08, 64#&,86, 4*,23 ,*"040*9 -%J&,# ,* -*,(,=*#+#&&,5,.
  • 6. «M& [?0<%5,(] +(0'%-%" -%J&#ED## F&%4#&0# 0F64#&0H %(0<8#*0$0, $,*,(6H ,& (%F-0" 0 ,*'#"0" ,* =(#'3 $,88#(4#=$,5, 0&*#(#=%.» !(0=*,$=#&
  • 7. ?0<%5,( 640", 4*, «&%4%"% 8%*#8%*0$0 – C*, &%4%"% -=#@ -#G#E». !(0=*,*#"9
  • 8. ?0<%5,( (%F-0" «*#,(0H 0((%/0,&%"9&,=*#E 0 +,=*(,#&0# &#2#=&3@ *#"». ?(,$"
  • 10. O*,23 =-#=*0 80( $ /#"38 40="%8, &%8 &6J&% #'0&%1 %2=,"H*&%1 8#(%, 8#"94%ED## (%==*,1&0#, $-%&* +(,=*(%&=*-%.
  • 11. L%$,E 8#(3 &#*! P%$ 23 &0 8%"% 23"% &%D% 8#(%, #=*9 ,*(#F$0, $,*,(3# ,&% &# 8,J#* 0F8#(0*9.
  • 12. gcm(a, a) = a! gcm(a, b) = gcm(a, a + b)! a>b gcm(a, b) = gcm(a - b, b)! gcm(a, b) = gcm(b, a)!
  • 13. line_segment gcm(line_segment a, line_segment b) { if (a == b) return a; if (a > b) return gcm(a-b, b); if (a < b) return gcm(a, b-a); }
  • 14. 196 42 154 42 112 42 70 42 28 42 28 14 14 14 Done! GCD: 14
  • 15. ?0<%5,(#E/3 ,2&%(6J0"0, 4*, -=1$%1 &0=@,'1G%1 +,="#',-%*#"9&,=*9 &%*6(%"9&3@ 40=#" $,&#4&%. .*, 23"% 0@ <,(8% +(0&/0+% 8%*#8%*04#=$,E 0&'6$/00. O*,23 ',$%F%*9, 4*, &#4*, /#",40="#&&,# &# =6G#=*-6#*, 83 ',"J&3 +,$%F%*9, 4*, #="0 ,&, =6G#=*-6#*, *, 0 &#4*, 8#&9D## #5, =6G#=*-6#*.
  • 16. ?(#'+,",J08 4*, =6G#=*-6#* 8#(%, 0F8#(1HG%1 =*,(,&6 0 '0%5,&%"9 &#$,*,(,5, $-%'(%*%. L#+#(9 -,F98#8 =%83E 8%"3E $-%'(%*, $,*,(3E 0F8#(1#*=1 C*,E 8#(,E.
  • 17. B A C D
  • 18. B A E F C D AB = AF AC ! EF
  • 19. B A E G F C D AC ! CG EG ! EF
  • 20. B A E G F C D CF = EF = EB
  • 21. B A E G F C D gcm(AC,AB) = gcm(AB,CF)! gcm(CE,CF) = gcm(AC,AB)
  • 22. B A E G F C D EC > EB > EB < AB/2!
  • 23. 73 +,=*(,0"0 8#&9D0E $-%'(%*, 0F8#(1#83E C*,E 8#(,E. ?(,*0-,(#40#!
  • 24. )*,(,&% 0 '0%5,&%"9 &,-,5, $-%'(%*%, +,"64#&&,5, ',$%F%*#"9=*-,8, +,"64%H*=1 +,="# '-6@ D%5,- =62*(%$*0-&,5, %"5,(0*8%: d, s => s, d - s => 2s - d, d – s !"#$%$&'#() (*#(+)#,) -)./0 #,-, 1(23$#4)*14: d/s = (2s - d)/(d -s)!
  • 25. Q% =,-(#8#&&,8 1F3$#, ?0<%5,( ,*$(3", 4*, R2 0((%/0,&%"#&.
  • 26. ?"%*,& (427BC - 347BC)
  • 28. S% &# -,E'#* =H'% &#F&%HG0E 5#,8#*(00
  • 29. M&0 +(0D"0 &% "#$/0H ?"%*,&% , S,2(#, &%'#1=9, 4*, ,&0 6F&%H*, $%$ +,"640*9 -#G0, $,*,(3# 80( &%F3-%#* ',2(,8: '#&950, 0"0 F',(,-9#, 0"0 =0"6. T="3D%- J#, 4*, ?"%*,& (%==6J'%" , 8%*#8%*0$#, ,&0 23"0 +,"&,=*9H (%F,4%(,-%&3. !(0=*,$=#&
  • 31. Q#$*,, &%4%-D0E 0F64%*9 5#,8#*(0H, +(,D#'D0 +#(-6H *#,(#86, =+(,=0" I-$"0'%: «O*, 1 F%(%2,*%H, -3640- -=# C*,?» I-$"0' =$%F%" =-,#86 (%26: «S%E #86 %"*3&, 02, ,& @,4#* ,* &%6$0 +,J0-0*9=1». )*,2#E, 523%&%6#)
  • 32. I-$"0' 5%(%&*0(6#* ,=*%&,-$6 %"5,(0*8% = +,8,G9H &,-3@ *0+,- +#(#8#&&3@: unsigned int gcd(unsigned int a, unsigned int b) { assert(a > 0 && b > 0); // // if (a == b) return a; if (a > b) return gcd(a-b, b); /* if (b > a) */ return gcd(a, b-a); }
  • 33. Q,-%1 7%*#8%*0$% +(,*0- I-$"0'% U 1959, &% $,&<#(#&/00 640*#"#E 8%*#8%*0$0 -, V(%&/00, W%& S9#',&&# $(04%" ”S,",E I-$"0'%!” 0 ”)8#(*9 *(#65,"9&0$%8!” !. 5. 67&(- !"#$#%&'(%') *#+$#&(,) -(#./# , 0#1#(23
  • 34. N,'3 6+%'$%: 212BC - 1202AD In summo apud illos honore geometria fuit, itaque nihil mathematicis inlustrius; at nos metiendi ratiocinandique utilitate huius artis terminavimus modum. )(#'0 &0@ [N(#$,-] 5#,8#*(01 23"% - -#"04%ED#8 +,4#*#; &04#5, &# 23", 2"0=*%*#"9&#E 8%*#8%*0$0. 73 [>08"1&#] ,5(%&040"0 +,"#F&,=*9 C*,E &%6$0 +,'=4#*%80 0 -340="#&0180. B0/#(,&, 78098&"209#- :-0-1;
  • 35. if (a > b) return gcd(a-b, b); return gcd(a, b-a); ?,4#86 a-b, % &# a%b?
  • 37. unsigned int gcd(unsigned int m, unsigned int n) { while (n != 0) { unsigned int t = m % n; m = n; n = t; } return m; }
  • 38. 196 42 196 = 42*4 + 28 42 28 42 = 28*1 + 14 28 14 28 = 14*2 + 0 14 0 Done! GCD: 14
  • 40.
  • 41. )08,& )*#-0&: int gcd(int m, int n) { while (n != 0) { int t = m % n; m = n; n = t; } return m; }
  • 42. )08,& )*#-0&: polynomial<real> gcd(polynomial<real> m, polynomial<real> n) { while (n != 0) { polynomial<real> t = m % n; m = n; n = t; } return m; }
  • 43. 3x2+2x-2 x-2 3x3-4x2-6x+10 3x3-6x2 2x2-6x 2x2-4x -2x+10 -2x+4 6
  • 44. P%(" V(0'(0@ N%6== (1777 - 1855)
  • 45. P,5'% '%&3 40="% A, B, C 0 *.'., 0@ 2"#$%&'(#< %$+#< 1-&#3-&' &%@,'0*=1 ="#'6HG08 ,2(%F,8. ?6=*9 -=# C*0 40="% 26'6* (%F20*3 &% +(,=*3# 8&,J0*#"0, 0 0F &0@ -32#(#8 *#, $,*,(3# 1-"1H*=1 -, -=#@ 40="%@ A, B, C, … ...73 F&%#8 0F C"#8#&*%(&3@ =,,2(%J#&0E, $%$ (#D0*9 C*0 +(,2"#83, $,5'% (%F20#&0# &% +(,=*3# 40="% &# '%&,... N%6==, 5.#=>-3#4-09#- ?00&-1%@"2#)
  • 46. P%(" N%6==: complex<int> gcd(complex<int> m, complex<int> n) { while (n != 0) { complex<int> t = m % n; m = n; n = t; } return m; }
  • 47. Q%@,J'#&0# ,=*%*$% ,* '#"#&01 '-6@ 5%6==,-3@ 40=#" O*,23 &%E*0 ,=*%*,$ ,* '#"#&01 z1 &% z2 1.8 ?,=*(,E*# $-%'(%*&6H (#D#*$6 &% $,8+"#$=&,E +",=$,=*0, +,(,J'#&&6H z2 (-8#=*# = i*z2, -i*z2 0 –z2). 2.8 Q%E'0*# $-%'(%* - (#D#*$#, $,*,(3E -$"H4%#* z1. 3.8 Q%E'0*# -#(D0&6 $-%'(%*% w , 2"0J%ED6H $ z1. 4.8 M=*%*,$ (%-#& z1 - w.
  • 48.
  • 49. ?#*#( N6=*%- :#J#& S0(0@"# (1805 - 1857)
  • 50. «L#+#(9 &%8 1=&,, 4*, -=1 =*(6$*6(% *#,(00 40=#" '#(J0*=1 &% ,'&,8 ,=&,-%&00, 08#&&,, &% %"5,(0*8# '"1 &%@,J'#&01 &%02,"9D#5, ,2G#5, '#"0*#"1 '-6@ 40=#". U=# +,="#'6HG0# *#,(#83 … C*, *,"9$, C"#8#&*%(&3# F%$"H4#&01 0F C*,5, 0F&%4%"9&,5, ,*$(3*01, *%$ 4*, 8,J&, 6*-#(J'%*9 ="#'6HG##: "H2%1 *#,(01, - $,*,(,E #=*9 +,',2&3E %"5,(0*8 '"1 &%02,"9D#5, ,2G#5, '#"0*#"1, ',"J&% *%$J# =,'#(J%*9 *# J# F%$"H4#&01, $%$ 0 &%D% *#,(01. A '#E=*-0*#"9&,, *%$0# *#,(00 =6G#=*-6H*!» :#J#& S0(0@"# A-9B## /% 7-%.## C#0-&
  • 51. «I="0 83 -,F98#8 8&,J#=*-, 40=#" t + n!-a 5'# a – 9(#93)*#() #$*03$&'#() %,1&(, t 0 n – +(,0F-,"9&3# /#"3# 40="% … *, *,"9$, '"1 &#$,*,(3@ F&%4#&0E of a, &%+(08#(, a = 1, &%02,"9D0E ,2G0E '#"0*#"9 '-6@ 40=#" 8,J#* 23*9 &%E'#& = +,8,G9H *%$,5, J# %"5,(0*8%, $%$ 0 '"1 ... /#"3@ 40=#". … .*, =,-=#8 &# *%$, $,5'% a = 5. … Q%+(08#(, 21 = 3*7 = (1+2!-5)*(1-2!-5)…» :#J#& S0(0@"# A-9B## /% 7-%.## C#0-&
  • 52. >0@%(' S#'#$0&' (1831 - 1916)
  • 53. B#"3# %"5#2(%04#=$0# 40="% B#"3# %"5#2(%04#=$0# 40="% – C*, $,(&0 8&,5,4"#&,- = /#",40="#&&380 $,C<<0/0#&*%80 0 = -#'6G08 $,C<<0/0#&*,8, (%-&38 #'0&0/#.
  • 54. Es steht alles schon bei Dedekind! .880 QX*#( (.*, -=X #=*9 6 S#'#$0&'%.) U=X = $,"9/%, +,"1, 0'#%"3, 8,'6"0...
  • 55. I-$"0' 0 N#**0&5#& •8 N%6== –8 ?(%-0"9&3# 8&,5,65,"9&0$0 –8 ?1*3E +,=*6"%* •8 S0(0@"# –8 ?(,=*3# 40="% - %(0<8#*04#=$0@ +(,5(#==01@ •8 >08%& –8 Q##-$"0',-% 5#,8#*(01 •8 S#'#$0&' –8 U,F(,J'#&0# *#,(00 0((%/0,&%"9&,=*#E I-',$=% •8 P"#E& –8 .("%&5#&=$%1 +(,5(%88% •8 N0"92#(* –8 M=&,-%&01 5#,8#*(00 –8 !(0<8#*0F%/01 8%*#8%*0$0
  • 57. I="0 (%F-0*0# 8%*#8%*0$0 =#5,'&1D&#5, '&1 &#=,8&#&&, +(,*#$%#* +,' F&%$,8 %"5#2(%0F%/00, +(,&0$&,-#&01 %"5#2(%04#=$0@ +,&1*0E 0 %"5#2(%04#=$0@ 8#*,',- - =%83# (%F"04&3# 8%*#8%*04#=$0# *#,(00, *, C*, =*%", -,F8,J&38 "0D9 +,="# (%2,* .880 QX*#(. ?%-#" )#(5##-04 !"#$=%&'(,-
  • 58. Y%(*#"9 :##&'#(* -%& '#( U%('#& (1903 - 1996)
  • 59. S#'#$0&', QX*#(, -%& '#( U%('#&: template <class EuclideanRing> EuclideanRing gcd(EuclideanRing m, EuclideanRing n) { while (n != 0) { EuclideanRing t = m % n; m = n; n = t; } return m; }
  • 60. I-$"0',-3 $,"9/% •8 P,886*%*0-&,# $,"9/,(+, -, *) •8 V6&$/01 norm: Ring -> Unsigned –8norm(a*b) >= norm(a) –8 "#$ %&'( a, b, )*' b != 0, +./"+01.20 q, r, +,-.' /+0 a == q*b + r . r == 0 || norm(r) < norm(b)
  • 61. S,&%"9' P&6* (1938 - )
  • 62. U,F(%J#&0# P&6*%: gcd(1, -1) = -1! template <class EuclideanRing> EuclideanRing gcd(EuclideanRing m, EuclideanRing n) { while (n != 0) { EuclideanRing t = m % n; m = n; n = t; } if (m < 0) m = -m; return m; }
  • 64. Q%02,"9D0E ,2G0E '#"0*#"9 – C*, '#"0*#"9, $,*,(3E '#"0*=1 "H238 '(6508 ,2G08 '#"0*#"#8.
  • 65. P,&/#+/01 I-$"0',-% $,"9/% •8 M+#(%/00 0 0@ =-,E=*-% •8 7,'#"0 •8 !"5,(0*83
  • 66. A,=0< ;*#E&(1961): gcd(n, 0) = gcd(0, n) = n gcd(n, n) = n gcd(2n, 2m) = 2gcd(n, m) gcd(2n, 2m + 1) = gcd(n, 2m + 1) gcd(2n + 1, 2m) = gcd(2n + 1, m) gcd(2n + 1, 2(n + k) + 1) = gcd(2(n + k) + 1, 2n + 1) = gcd(2n + 1, k)
  • 67. 196 42 98 21 2 49 21 2 28 21 2 14 21 2 7 21 2 14 7 2 7 7 2 Done! GCD: 7*2 = 14
  • 68. template <class BinaryInteger> BinaryInteger gcd(BinaryInteger m, BinaryInteger n) { make_non_negative(m); make_non_negative(n); if (is_zero(m)) return n; if (is_zero(n)) return m; int d = 0; while (is_even(m) && is_even(n)) { half_non_negative(m); half_non_negative(n); ++d; }
  • 69. while (is_even(m)) half_non_negative(m); while (is_even(n)) half_non_negative(n); while (true) if (m < n) { n = n - m; do { half_non_negative(n); } while (is_even(n)); } else if (n < m) { m = m - n; do { half_non_negative(m); } while (is_even(m)); } else return left_shift(m, d); }
  • 71. ;*#E& '"1 8&,5,4"#&,- gcd(p,0) = gcd(0,p) = p gcd(p, p) = p gcd(x*p1,x*p2) = x*gcd(p1, p2) gcd(x*p1,x*p2+c) = gcd(p1, x*p2+c) gcd(x*p1+c,x*p2) = gcd(x*p1+c,p2) if degree(p1) >= degree(p2) gcd(x*p1+c1,x*p2+c2) = gcd(p1-(c1/c2)*p2, x*p2+c2) if degree(p1) < degree(p2) gcd(p1,p2) = gcd(p2,p1)
  • 72. x3-3x-2 x2-4 x3-.5x2-3x x2-4 x2-.5x-3 x2-4 x2-2x x2-4 x-2 x2-4 x2-4 x-2 x2-2x x-2 x-2 x-2 Done! GCD: x-2
  • 73. !"5,(0*8 U#E"#(*% '"1 5%6==,-3@ 40=#" A=+,"9F6E 1+i $%$ 2!
  • 74. S#"#&0# &% 1+i a+bi/1+i =(a+bi)(1-i)/(1+i)(1-i)= (a+bi)(1-i)/2 = ((a+b) - (a-b)i)/2 N%6==,-, 40=", a+bi '#"0*=1 &% 1+i *,5'% 0 *,"9$, *,5'% a=b(mod 2)
  • 75. ),$(%G#&0# ,=*%*$% I="0 '-% 5%6==,-3@ 40="% z1 0 z2 &# '#"1*=1 &% 1+i, *, z1+z2, z1-z2, z1+i*z2 0 z1-i*z2 '#"1*=1 &% 1+i. A, min (|z1+z2|, |z1-z2|, |z1+i*z2|, |z1-i*z2|) < max(|z1|, |z2|)
  • 76. !"5,(0*8 Damgård 0 Frandsen •8 !"5,(0*8 ;*#E&% *%$J# (%2,*%#* '"1 40=#" .EF#&D*#E&% Z[Z], *, #=*9 /#"3@ 40=#", (%=D0(#&&3@ = Z ( ) (+(080*0-&3E $6204#=$0E $,(#&9 0F 1). •8 73 0=+,"9F6#8 1 – Z $%$ 2.
  • 77. O*, *%$,# $,"9/, ;*#E&%?
  • 78. Q##-$"0',-3 $,"9/% ;*#E&% U 2004 Agarwal 0 Frandsen +,$%F%"0 4*, #=*9 $,"9/% - $,*,(3@ &# (%2,*%#* %"5,(0*8 I-$"0'%, &, (%2,*%#* %"5,(0*8 ;*#E&%.
  • 80. Y02"0,5(%<01 7&,50# 0F $&05 - 202"0,5(%<00 =6G#=*-6H* - +(#$(%=&3@ (6==$0@ +#(#-,'%@.
  • 81. David Fowler, The Mathematics Of Plato's Academy, Oxford, 1999 John Stillwell, Mathematics and Its History, Springer- Verlag, 1989 Sir Thomas Heath, History of Greek Mathematics, Dover, 1981 (2 volumes) Euclid, Elements, translated by Sir Thomas L. Heath, Dover , 1956 (3 volumes) B. L. van der Waerden, Geometry and Algebra in Ancient Civilizations, Springer-Verlag, 1983 Robin Hartshorne, Geometry: Euclid and Beyond, Springer-Verlag, 2000 Lucio Russo, The Forgotten Revolution, Springer- Verlag, 2004
  • 82. Laurence E. Siegler, Fibonacci's Liber Abaci, Springer-Verlag, 2002 Nicolas Bourbaki, Elements of the History of Mathematics, Springer-Verlag, 1999 Carl Friedrich Gauss, Disquisitiones Arithmaticae, Yale, 1965 John Stillwell, Elements of Number Theory, Springer-Verlag, 2002 Peter Gustav Lejeune Dirichlet, Lectures on Number Theory, AMS, 1999 Richard Dedekind, Theory of Algebraic Integers, Cambridge, 1996 B. L. van der Waerden, Algebra, Springer-Verlag, 1994
  • 83. Donald Knuth, Art of Computer Programming, vol. 2, Seminumerical Algorithms, Addison-Wesley, 1998 Josef Stein, Computational problems associated with Racah algebra, J. Comput. Phys., (1967) 1, 397-405 Andre Weilert, (1+ i)-ary GCD Computation in Z[i] as an Analogue of the Binary GCD Algorithm, J. Symbolic Computation (2000) 30, 605-617
  • 84. Ivan Bjerre Damgård and Gudmund Skovbjerg Frandsen, Efficient algorithms for GCD and cubic residuosity in the ring of Eisenstein integers, Proceedings of the 14th International Symposium on Fundamentals of Computation Theory, Lecture Notes in Computer Science 2751, Springer-Verlag (2003), 109-117 Saurabh Agarwal, Gudmund Skovbjerg Frandsen, Binary GCD Like Algorithms for Some Complex Quadratic Rings. ANTS 2004, 57-71