Integer Factorization Algorithms

Size: px
Start display at page:

Download "Integer Factorization Algorithms"

Transcription

1 Iteger Factorizatio Algorithms Coelly Bares Departmet of Physics, Orego State Uiversity December 7, 004 This documet has bee placed i the public domai.

2 Cotets I. Itroductio 3 1. Termiology 3. Fudametal Theorem of Arithmetic 3 3. Practical Motivatio 3 II. Algorithms 5 1. Algorithm: Trial Divisio 5. Pseudocode: Trial Divisio 5 3. Algorithm: Fermat Factorizatio 5 4. Pseudocode: Fermat Factorizatio 6 5. Algorithm: Pollard rho Factorizatio 6 6. Pseudocode: Pollard rho Factorizatio 7 7. Algorithm: Bret s Factorizatio Method 7 8. Pseudocode: Bret s Factorizatio Method 8 9. Algorithm: Pollard p-1 Factorizatio Pseudocode: Pollard p-1 Factorizatio 10 III. Ruig times Ruig time: Trial Divisio 11. Ruig time: Fermat Factorizatio Ruig times: Empirical Results 11 IV. Failures of Probabilistic Algorithms 1 V. Coclusio 13 Appedi A. Maple Source Code for Simulatio 14 Appedi B. Refereces 17

3 I. Itroductio This paper gives a brief survey of iteger factorizatio algorithms. We offer several motivatios for the factorizatio of large itegers. A umber of factorig algorithms are the eplaied, ad pseudocode is give for each. Bouds i ruig time are foud for algorithms which are always successful, ad failure cases are show for probabilistic algorithms. Fially, the ru times of all preseted algorithms are plotted for certai prime products ad compared. 1. Termiology Big O otatio: The fuctio f () is O( g( )) as if ad oly if there are positive real costats c, such that for every >, 0 f ( ) cg( ). Eample: f ( ) = is O ( ) as for c = 3, = 0. Whe Big O otatio is applied to the ruig time or storage requiremets of a algorithm, oe may write simply O ( g( )), ad it is assumed that. If multiple variables are preset, the variable which goes to ifiity is idicated. As part of the defiitio of O ( g( )), all possible eecutios of the algorithm must be cosidered as. Trivial factor: A positive iteger factor s of N such that s = 1 or s = N. Notrivial factor: A positive iteger factor s of N such that 1 < s < N. Prime umber: A positive iteger greater tha 1 that is divisible by o positive itegers other tha 1 ad itself.. Fudametal Theorem of Arithmetic The fudametal theorem of arithmetic states that every positive iteger ca be writte uiquely as a product of primes, whe the primes i the product are writte i odecreasig order. 3. Practical Motivatios The fudametal theorem of arithmetic implies that ay composite iteger ca be factored. Give the umber N = 1, it is straightforward to fid the factors of N: 1 = 3 7. Now cosider a larger composite umber: 3

4 N = This iteger is ow as RSA-048. O March 1991, RSA Laboratories aouced a USD 00,000 award for the successful factorizatio of this umber. As of November 004, this umber has ot yet bee factored [1]. If oe is give two large prime umbers, there are fast algorithms for multiplyig them together. However, if oe is give the product of two large primes, it is difficult to fid the prime factors. The fastest ow geeral-purpose factorig algorithm is the Geeral Number Field Sieve (GNFS), which i asymptotic otatio taes S 64 = O ep 9 1/ 3 ( log ) / 3 steps to factor a iteger with decimal digits. The ruig time of the algorithm is bouded below by fuctios polyomial i ad bouded above by fuctios epoetial i []. The apparet difficulty of factorig large itegers is the basis of some moder cryptographic algorithms. The RSA ecryptio algorithm [3], ad the Blum Blum Shub cryptographic pseudoradom umber geerator [4] both rely o the difficulty of factorig large itegers. If it were possible to factor products of large prime umbers quicly, these algorithms would be isecure. The SSL ecryptio used for TCP/IP coectios over the World Wide Web relies o the security of the RSA algorithm [5]. Hece if oe could factor large itegers quicly, "secured" Iteret sites would o loger be secure. Fially, i computatioal compleity theory, it is uow whether factorig is i the compleity class P. I techical terms, this meas that there is o ow algorithm for aswerig the questio "Does iteger N have a factor less tha iteger s?" i a umber of steps that is O ( P( )), where is the umber of digits i N, ad P() is a polyomial fuctio. Moreover, o oe has proved that such a algorithm eists, or does ot eist. I layma's terms, oe ca simply as the questio, "What is the fastest algorithm for factorig large umbers?" This is a importat ope questio i mathematics [6]. 4

5 II. Algorithms 1. Algorithm: Trial Divisio Trial divisio is the simplest algorithm for factorig a iteger. Assume that s ad t are otrivial factors of N such that st = N ad s t. To perform the trial divisio algorithm, oe simply checs whether s N for s =,, N. Whe such a divisor s is foud, the t = N / s is also a factor, ad a factorizatio has bee foud for N. The upper boud of s N is provided by the followig theorem: Theorem. If N has otrivial factors s, t with st = N ad s t, the s N. Proof. Assume s > N. The t s > N, ad st > N, which cotradicts the assumptio that st = N. Hece s N.. Pseudocode: Trial Divisio fuctio trialdivisio(n) for s from to floor(sqrt(n)) if s divides N the retur s, N/s ed if ed for ed fuctio If this algorithm is give composite N, the it returs a pair of otrivial factors s, t with s t. The statemet s N is equivalet to s 0 (mod N ), ad so it ca be implemeted via modular arithmetic i most laguages. 3. Algorithm: Fermat Factorizatio This algorithm was discovered by mathematicia Pierre de Fermat i the 1600s [7]. Fermat factorizatio rewrites a composite umber N as the differece of squares: N = y This differece of squares leads immediately to the factorizatio of N: N = ( + y)( y) Assume that s ad t are otrivial odd factors of N such that st = N ad s t. We ca fid ad y such that s = ( y) ad t = ( + y). Solvig this equatio, we fid that = (s + t) / ad y = (t s) /. Here ad y are itegers, sice the differece betwee ay two odd umbers is eve, ad a eve umber is divisible by two. Sice s > 1 ad t s, 5

6 we fid that 1 ad y 0. For particular, y satisfyig s = ( y) ad t = ( + y), we thus ow that = N + y, ad hece N. Also, ( s + t) / t / N. whether For a algorithm, we choose y i = i N 1 = N, ad 1 = + 1. For each i, we chec i+ i is a iteger ad whether + y ),( y ) are otrivial ( i i i i factors of N. If both of these coditios hold, we retur the otrivial factors. Otherwise, we cotiue to the et i, ad eit oce i = N. 4. Pseudocode: Fermat Factorizatio fuctio fermatfactor(n) for from ceil(sqrt(n)) to N ysquared := * - N if issquare(ysquared) the y := sqrt(ysquared) s := ( - y) t := ( + y) if s <> 1 ad s <> N the retur s, t ed if ed if ed for ed fuctio Here the issquare(z) fuctio is true if z is a square umber ad false otherwise. It is straightforward to costruct a issquare fuctio by taig a square root, roudig the aswer to a iteger, squarig the result, ad checig if the origial umber is reproduced. 5. Algorithm: Pollard rho Factorizatio Pollard's rho method is a probabilistic method for factorig a composite umber N by iteratig a polyomial modulo N. The method was published by J.M. Pollard i Suppose we costruct the sequece: (mod 0 N (mod N ) ) This sequece will evetually become periodic. It ca be show that the legth of the cycle is less tha or equal to N by a proof by cotradictio: assume that the legth L of the cycle is greater tha N, however we have oly N distict values i our cycle of legth L>N, so there must eist two values are cogruet, ad these ca be idetified as the startig poits of a cycle with legth less tha or equal to N. Probabilistic argumets show that the epected time for this sequece (mod N) to fall ito a cycle ad epected legth of the cycle are both proportioal to N, for almost all N [8]. Other 6

7 iitial values ad iterative fuctios ofte have similar behavior uder iteratio, but the fuctio f ( ) = + 1 has bee foud to wor well i practice for factorizatio. Assume that s ad t are otrivial factors of N such that st = N ad s t. Now suppose that we have foud oegative itegers i, with i < such that (mod s) but (mod N). Sice s ( i ), ad s N, we have that s gcd(, N ). By i i i assumptio s, thus gcd( i, N). By defiitio we ow gcd( i, N ) N. However, we have that N / ( i ), ad thus that N / gcd(, N). So we have i i, N ) that N / gcd( i, N), gcd( i, N) > 1, ad gcd( N. Therefore gcd( i, N ) is a otrivial factor of N. Now we must fid i, such that i (mod s) ad i (mod N). Observe that the sequece (mod s) is periodic with the legth of the cycle proportioal to s. Pollard suggested that be compared to for = 1,, 3,. For each, we chec whether gcd(, N) is a otrivial factor of N. If gcd(, N) is a trivial factor of N, we repeat the iterative process util a factor is foud. If o factor is foud, the algorithm does ot termiate. 6. Pseudocode: Pollard rho Factorizatio fuctio pollardrho(n) # Iitial values (i) ad (*i) for i = 0. i := i := do # Fid (i+1) ad (*(i+1)) iprime := i ^ + 1 iprime := (i ^ + 1) ^ + 1 # Icremet i: chage our ruig values for (i), (*i). i := iprime % N i := iprime % N s := gcd(i - i, N) if s <> 1 ad s <> N the retur s, N/s ed if ed do ed fuctio Here a % m is a modulo operatio, which returs the least oegative iteger y such that a y (mod m). 7. Algorithm: Bret's Factorizatio Method Bret's factorizatio method is a improvemet to Pollard's rho algorithm, published by R. Bret i 1980 [9]. I Pollard's rho algorithm, oe tries to fid a 7

8 otrivial factor s of N by fidig idices i, with i < such that i (mod s) ad i (mod N). The sequece is defied by the recurrece relatio: (mod 0 N 1 (mod N ) + + ) Pollard suggested that be compared to for = 1,, 3,. Bret's improvemet to Pollard's method is to compare to m, where m is the largest itegral power of less tha. 8. Pseudocode: Bret's Factorizatio Method fuctio bretfactor(n) # Iitial values (i) ad (m) for i = 0. i := m := for i from 1 to ifiity # Fid (i) from (i-1). i := (i ^ + 1) % N s := gcd(i - m, N) if s <> 1 ad s <> N the retur s, N/s ed if if itegralpowerof(i) the m := i ed if ed do ed fuctio Here the fuctio itegralpowerof(z) is true if z is a itegral power of ad false otherwise. A iefficiet implemetatio for this fuctio ca be made by checig successive powers of util a power of equals or eceeds z: fuctio itegralpowerof(z) pow := 1 while pow <= z do if pow = z the retur true ed if pow := pow * ed while retur false ed fuctio I terms of more efficiet operatios, itegralpowerof(z) is true if ad oly if (z&(z-1)) is zero, where & is the bitwise AND operatio [10]. A proof follows. Theorem. If z is a positive iteger, the z is a itegral power of if ad oly if z & ( z 1) = 0, where a & b deotes the bitwise AND operatio of a ad b. 8

9 Proof. Let there be d biary bits i z, ad let ( ) i be a operator which gives the ith biary bit of ( ), where i = 1 is the least sigificat bit. If z is a itegral power of, the clearly z = 0 for = 1,,, d 1, ad z d = 1. We also have that z 1 < z, so clearly ( z 1) = 0. Usig the truth table for the logical AND operator, we fid that d ( z & ( z 1) ) must be 0 for = 1 d. Hece ( z & ( z 1) ) = 0. I the case that z is ot a itegral power of, z = 1. Let α be the largest itegral power of that is less tha d z. The z > α, hece z 1 α, ad thus ( z 1) = α = 1. Usig the truth table for the logical AND operator at bit d we fid that ( z & ( z 1) ) = 1, hece ( & ( z 1) ) 0 Therefore, z is a itegral power of if ad oly if z & ( z 1) = Algorithm: Pollard p-1 Factorizatio d d d z. Pollard's p-1 factorizatio method was published by J. M. Pollard i 1974 [11]. It is based o Fermat's little theorem, which states: 1 If p is prime, a is a atural umber, ad p / a, the a p 1 (mod p). Suppose we have a positive iteger 1ad a prime p> such that ( p 1)!. Now we ca apply Fermat's little theorem with a = : p 1 1 (mod p) have: But sice ( p 1)!, we ca write! = ( p 1) q for some positive iteger q. We also divides! p 1 q q ( ) 1 1 (mod p) Hece p 1. If N is a iteger which has otrivial prime factor p, the p!! 1 + Nt for all itegers t. We ca compute! 1(mod N ) for = 1,, 3,, ad for each chec whether there eists a iteger r = gcd(, N) which divides both ad N. If ( p 1)!, the we ow p ad hece r is a otrivial factor of N. If r is ot a otrivial factor of N, the it is a trivial factor of N, i.e. r = 1 or r = N. The algorithm is the:! Compute r = gcd( 1, N) for = 1,, 3. If r { 1, N}, the r is a otrivial factor ad we are doe.! ( 1)! For efficiecy purposes, we ca write ( ) (mod ) ow (mod N), N, so that if ( 1)!! ca be computed by a sigle modular epoetiatio operatio. is 9

10 10. Pseudocode: Pollard p-1 Factorizatio fuctio pollard_p1(n) # Iitial value ^(!) for = 0. two fact := 1 for from 1 to ifiity # Calculate ^(!) (mod N) from ^((-1)!). two fact := modpow(two fact,, N) r := gcd(two fact - 1, N) if r <> 1 ad r <> N the retur r, N/r ed if ed for ed fuctio Here modpow(a, b, m) returs the least oegative iteger y such that a b y (mod m). This fuctio is typically provided i laguages with big iteger operatios, ad is ow as "modular epoetiatio." For laguages without modular epoetiatio, we preset a efficiet algorithm for modular epoetiatio. Write b i terms of its biary digits b... 0 b 1, so b b = b + b ad observe that a ca be rewritte as 0 1 b 1 have: 0 b0 1 b1 1 b 1 ( a ) ( a )... ( a ) b1 b 1 b b a = a a... a =. b Note that for ay, ( a ) is simply 1 if b = 0, ad a otherwise. Thus we a b = 1 = 0 b 0 a Also ote that ( ) + 1 a = a = a. Via a process of repeated squarig, we ca thus costruct a algorithm which returs the least oegative iteger y such that a b y (mod m). fuctio modpow(a, b, m): as := 1 a := a % m for from 0 to ifiity if ^>b the retur as ed if if (bit of b is ozero) the as := (as * a) % m a := (a * a) % m ed for ed fuctio 10

11 Here a % m is a modulo operatio, which returs the least oegative iteger y such that a y (mod m). III. Ruig Times 1. Ruig Time: Trial Divisio The worst case ruig time for the trial divisio algorithm occurs whe s = t = N, ad N = s. I this case, we test divisibility for eactly N 1 itegers. Thus the algorithm taes O ( N ) steps, or whe writte i terms of the umber of digits of N, it requires O( e / ) steps. Each divisibility test ca be carried out i O (log N ) time [13]. There are o more tha N such tests, so at worst the trial divisio algorithm taes O ( N log N ) time. Whe writte i terms of the umber of digits of N, trial divisio taes O ( e / ) time.. Ruig Time: Fermat Factorizatio Assumig that N is the product of odd primes, the Fermat factorizatio as preseted i Sectio II.4 maes o more tha N steps through the for loop. Hece Fermat factorizatio taes O (N) steps. Whe writte i terms of the umber of digits of N, the algorithm taes O( e ) steps. 3. Ruig Time: Empirical Results Figure 1 shows a plot of the media umber of steps for each algorithm versus the umber of decimal digits d i the prime factors, where "steps" is defied as the umber of iteratios through the for loop. For each value of d, each algorithm was tested 100 times. For each test, itegers s, t were chose i a uiform radom maer from the set of itegers havig d decimal digits. If s was composite, or t was composite, or s equaled t, the the umbers were reselected. Oce a valid pair s, t was foud, the algorithm was ru o the product st for up to 10 6 steps. The media umber of steps is plotted for each algorithm. 11

12 Figure 1 Number of Steps vs Digits i Prime Factors Number of Steps Pollard rho Pollard p-1 Trial factorizatio Fermat factorizatio Bret factorizatio Decimal Digits i Prime Factors Although the Bret factorizatio algorithm was touted as a improvemet to the Pollard rho method, it appears to be slower i this simulatio. I terms of media ruig times for these data, the Pollard rho ad Pollard p-1 methods are fastest, ad the trial factorizatio method is slowest. The Maple source code used to produce these data is preseted i Appedi A. IV. Failures of Probabilistic Algorithms The trial divisio ad Fermat factorizatio algorithms always termiate, ad upper bouds ca be derived for the ruig times of these algorithms i terms of N, the umber to be factored. The Pollard rho algorithm, Bret's method, ad the Pollard p-1 algorithm are probabilistic, ad may ot fiish, eve for small values of N. Eample. Cosider the Pollard rho algorithm for N = 1 = 3 7 values geerated by the algorithm is 0 (mod 1) (mod 1) (mod 1) 5 (mod 1) for 1. The sequece of 1

13 If 1, 0. The algorithm at each step for = 1,, computes =, N ) = gcd(0, N ) = gcd( N. The algorithm ever fids a otrivial factor, ad ever termiates. Eample. Cosider the Pollard p-1 algorithm for N = 65 = The sequece of values geerated by the algorithm is:! 1 (mod 65) = 1,, 3, (mod 65) (mod 65) (mod 65) (mod 65) ( + 1) (mod 65) for The Pollard p-1 algorithm computes at each step gcd(, N ). For the first three steps, we fid that gcd(1, 65) = 1, gcd(3, 65) = 1, ad gcd(63, 65) = 1. For steps 4 we fid gcd(0, 65) = 65. Hece the algorithm ever fids a otrivial factor, ad ever termiates. V. Coclusio There are o ow algorithms which ca factor arbitrary large itegers efficietly. Probabilistic algorithms such as the Pollard rho ad Pollard p-1 algorithm are i most cases more efficiet tha the trial divisio ad Fermat factorizatio algorithms. However, probabilistic algorithms ca fail whe give certai prime products: for eample, Pollard's rho algorithm fails for N = 1. Iteger factorizatio algorithms are a importat subect i mathematics, both for compleity theory, ad for practical purposes such as data security o computers. 13

14 Appedi A. Maple Source Code for Simulatio > # Defie each factorizatio algorithm > # Trial divisio. Factor N, retur s, t, iters, where s*t = N, ad # iters is the umber of iteratios made through the for loop. If # more tha masteps iteratios are made, returs 1, N, masteps. trial_factor := proc(n, masteps) local, y, iters; iters := 1; for from to floor(sqrt(n)) do if modp(n, ) = 0 the # If y is a iteger, retur factors. retur, N/, iters; if iters >= masteps the retur 1, N, masteps; iters := iters + 1; od; ed; > # Fermat factorizatio. Same argumets ad retur value as trial_factor. fermat_factor := proc(n, masteps) local, y, iters; iters := 1; # Loo for N = ^ - y^, for >= 1, y >= 1. # Iterate over ad chec y. for from ceil(sqrt(n)) to ifiity do ysquared := ^ - N; y := isqrt(ysquared); if y*y=ysquared the # If y is a iteger, retur factors. retur -y, +y, iters; if iters >= masteps the retur 1, N, masteps; iters := iters + 1; od; ed; > # Pollard rho factorizatio. Same argumets as trial_factor. > pollard_rho := proc(n, masteps) local i, i, f, iters, p; # f() fuctio iterated i Pollard rho method, we use f() = ^+1. f := proc() retur modp( * + 1, N); ed; iters := 1; # Iitial values for (i) ad (*i), where i=1. We use (1) =. i := f(); i := f(f()); while true do # Compute p = gcd((i)-(*i), N). p := gcd(i - i, N); # If p is a otrivial factor, retur factors. if p <> 1 ad p <> N the retur p, N/p, iters; # Icrease i by oe. Note we have to apply f twice to fid # (*(i+1)) = f(f((*i)). i := f(i); i := f(f(i)); 14

15 # Icremet iteratio couter. iters := iters + 1; if iters >= masteps the retur 1, N, masteps; od; ed; > # Pollard p-1 factorizatio. Same argumets as trial_factor. > pollard_p1 := proc(n, masteps) local two fact, p,, iters; two fact := ^(1); # ^(!) for (iitially) = 1. iters := 1; # Number of iteratios made through for loop. for from to ifiity do # Compute p = gcd(^(!)-1, N) for curret value. p := gcd(two fact - 1, N); # If p is a otrivial factor, retur factors. if p <> 1 ad p <> N the retur p, N/p, iters; # Fid ^((+1)!) = (^(!)) ^ (+1). two fact := two fact &^ (+1) mod N; # Icremet umber of iteratios. iters := iters + 1; if iters >= masteps the retur 1, N, masteps; od; ed; > # Bret factorizatio. Same argumets ad retur value as trial_factor. > bret_factor := proc(n, masteps) local i, i, f, iters, p; # f() fuctio iterated i Pollard rho method, we use f() = ^+1. f := proc() retur modp( * + 1, N); ed; iters := 1; # Iitial values for (i) ad (m), where i=1. i := f(); m := ; while true do # Compute p = gcd((i)-(m), N). p := gcd(i - m, N); # If p is a otrivial factor, retur factors. if p <> 1 ad p <> N the retur p, N/p, iters; # Icrease i by oe. Update (m) as eeded. if ^ilog(iters) = iters the m := i; i := f(i); # Icremet iteratio couter. iters := iters + 1; if iters >= masteps the retur 1, N, masteps; od; ed; > # Give 'algo', which should be oe of the factorizatio fuctios # defied above, ad, returs the media time to factor the product 15

16 # of two radomly selected -digit primes, over 100 rus of the algorithm. > media_steps_for digit_prime := proc(algo, ) local i, times, p, q, p1, p, iter; # Iitially empty seqece of the umber of steps made by the give algo # for each pair of radom primes. times := seq(, =0..-1); # Ru the algorithm 100 times o products of two radom -digit primes. for i from 1 to 100 do while 1=1 do p := rad(10^(-1)..10^-1)(); q := rad(10^(-1)..10^-1)(); if isprime(p) ad isprime(q) ad p <> q the brea; od; # Ru the algorithm, but bail out after 1e6 steps. p1, p, iter := algo(p*q, ); times := times, iter; od; times := sort([times]); retur times[1+floor(ops(times)/)]; ed; > # Reproduce the media umber of steps for each algorithm whe > # give the products of two radomly selected 4-digit primes. > > # Vary the last argumet to reproduce the data i Figure 1. > > media_steps_for digit_prime(trial_factor, 4); 334 > media_steps_for digit_prime(fermat_factor, 4); 101 > media_steps_for digit_prime(pollard_rho, 4); 40 > media_steps_for digit_prime(pollard_p1, 4); 36 > media_steps_for digit_prime(bret_factor, 4); 97 16

17 Appedi B. Refereces [1]. Kalisy, Burt. "RSA Factorig Challege." USENET ewsgroup sci.crypto. March 18, Available: Accessed November 17, 004. []. "Geeral umber field sieve." From Wiipedia, a olie ecyclopedia. November 13, 004. Available: [3]. Wesstei, Eric W. "RSA Ecryptio." From Mathworld, a olie ecyclopedia. April, 001. Available: [4]. Juod, Pascal. "Cryptographic Secure Pseudo-Radom Bits Geeratio: The Blum-Blum-Shub Geerator." August Available: [5]. Housley et al. "RFC 459: Iteret X.509 Public Key Ifrastructure Certificate ad CRL Profile." Jauary, Available: [6]. "Iteger factorizatio Difficulty ad compleity." From Wiipedia, a olie ecyclopedia. October 30, 004. Available: [7]. Weisstei, Eric W. "Fermat, Pierre de." From MathWorld, a olie ecyclopedia. Available: [8]. Weisstei, Eric W. "Pollard Rho Factorizatio." From MathWorld, a olie ecyclopedia. December 8, 00. Available: [9]. Weisstei, Eric W. "Bret's Factorizatio Method." From MathWorld, a olie ecyclopedia. December 8, 00. Available: [10]. Ohaessia, Robert J. "Bob's page of mildly useful but still pretty eat code sippets." February 18, 003. Available: [11]. Weisstei, Eric W. "Pollard Rho Factorizatio." From MathWorld, a olie ecyclopedia. December 8, 00. Available: [1]. Campbell, Robert. "Computatio Epoetiatio via the Russia Peasat Algorithm." March 9, Available: FermatThm.html [13]. Lipso, Joh D. "Newto's method: a great algebraic algorithm." Available: 17

In nite Sequences. Dr. Philippe B. Laval Kennesaw State University. October 9, 2008

In nite Sequences. Dr. Philippe B. Laval Kennesaw State University. October 9, 2008 I ite Sequeces Dr. Philippe B. Laval Keesaw State Uiversity October 9, 2008 Abstract This had out is a itroductio to i ite sequeces. mai de itios ad presets some elemetary results. It gives the I ite Sequeces

More information

Soving Recurrence Relations

Soving Recurrence Relations Sovig Recurrece Relatios Part 1. Homogeeous liear 2d degree relatios with costat coefficiets. Cosider the recurrece relatio ( ) T () + at ( 1) + bt ( 2) = 0 This is called a homogeeous liear 2d degree

More information

Asymptotic Growth of Functions

Asymptotic Growth of Functions CMPS Itroductio to Aalysis of Algorithms Fall 3 Asymptotic Growth of Fuctios We itroduce several types of asymptotic otatio which are used to compare the performace ad efficiecy of algorithms As we ll

More information

1. MATHEMATICAL INDUCTION

1. MATHEMATICAL INDUCTION 1. MATHEMATICAL INDUCTION EXAMPLE 1: Prove that for ay iteger 1. Proof: 1 + 2 + 3 +... + ( + 1 2 (1.1 STEP 1: For 1 (1.1 is true, sice 1 1(1 + 1. 2 STEP 2: Suppose (1.1 is true for some k 1, that is 1

More information

Trigonometric Form of a Complex Number. The Complex Plane. axis. ( 2, 1) or 2 i FIGURE 6.44. The absolute value of the complex number z a bi is

Trigonometric Form of a Complex Number. The Complex Plane. axis. ( 2, 1) or 2 i FIGURE 6.44. The absolute value of the complex number z a bi is 0_0605.qxd /5/05 0:45 AM Page 470 470 Chapter 6 Additioal Topics i Trigoometry 6.5 Trigoometric Form of a Complex Number What you should lear Plot complex umbers i the complex plae ad fid absolute values

More information

Incremental calculation of weighted mean and variance

Incremental calculation of weighted mean and variance Icremetal calculatio of weighted mea ad variace Toy Fich faf@cam.ac.uk dot@dotat.at Uiversity of Cambridge Computig Service February 009 Abstract I these otes I eplai how to derive formulae for umerically

More information

Department of Computer Science, University of Otago

Department of Computer Science, University of Otago Departmet of Computer Sciece, Uiversity of Otago Techical Report OUCS-2006-09 Permutatios Cotaiig May Patters Authors: M.H. Albert Departmet of Computer Sciece, Uiversity of Otago Micah Colema, Rya Fly

More information

3. Greatest Common Divisor - Least Common Multiple

3. Greatest Common Divisor - Least Common Multiple 3 Greatest Commo Divisor - Least Commo Multiple Defiitio 31: The greatest commo divisor of two atural umbers a ad b is the largest atural umber c which divides both a ad b We deote the greatest commo gcd

More information

Chapter 6: Variance, the law of large numbers and the Monte-Carlo method

Chapter 6: Variance, the law of large numbers and the Monte-Carlo method Chapter 6: Variace, the law of large umbers ad the Mote-Carlo method Expected value, variace, ad Chebyshev iequality. If X is a radom variable recall that the expected value of X, E[X] is the average value

More information

5 Boolean Decision Trees (February 11)

5 Boolean Decision Trees (February 11) 5 Boolea Decisio Trees (February 11) 5.1 Graph Coectivity Suppose we are give a udirected graph G, represeted as a boolea adjacecy matrix = (a ij ), where a ij = 1 if ad oly if vertices i ad j are coected

More information

Chair for Network Architectures and Services Institute of Informatics TU München Prof. Carle. Network Security. Chapter 2 Basics

Chair for Network Architectures and Services Institute of Informatics TU München Prof. Carle. Network Security. Chapter 2 Basics Chair for Network Architectures ad Services Istitute of Iformatics TU Müche Prof. Carle Network Security Chapter 2 Basics 2.4 Radom Number Geeratio for Cryptographic Protocols Motivatio It is crucial to

More information

Example 2 Find the square root of 0. The only square root of 0 is 0 (since 0 is not positive or negative, so those choices don t exist here).

Example 2 Find the square root of 0. The only square root of 0 is 0 (since 0 is not positive or negative, so those choices don t exist here). BEGINNING ALGEBRA Roots ad Radicals (revised summer, 00 Olso) Packet to Supplemet the Curret Textbook - Part Review of Square Roots & Irratioals (This portio ca be ay time before Part ad should mostly

More information

Running Time ( 3.1) Analysis of Algorithms. Experimental Studies ( 3.1.1) Limitations of Experiments. Pseudocode ( 3.1.2) Theoretical Analysis

Running Time ( 3.1) Analysis of Algorithms. Experimental Studies ( 3.1.1) Limitations of Experiments. Pseudocode ( 3.1.2) Theoretical Analysis Ruig Time ( 3.) Aalysis of Algorithms Iput Algorithm Output A algorithm is a step-by-step procedure for solvig a problem i a fiite amout of time. Most algorithms trasform iput objects ito output objects.

More information

2-3 The Remainder and Factor Theorems

2-3 The Remainder and Factor Theorems - The Remaider ad Factor Theorems Factor each polyomial completely usig the give factor ad log divisio 1 x + x x 60; x + So, x + x x 60 = (x + )(x x 15) Factorig the quadratic expressio yields x + x x

More information

THE ARITHMETIC OF INTEGERS. - multiplication, exponentiation, division, addition, and subtraction

THE ARITHMETIC OF INTEGERS. - multiplication, exponentiation, division, addition, and subtraction THE ARITHMETIC OF INTEGERS - multiplicatio, expoetiatio, divisio, additio, ad subtractio What to do ad what ot to do. THE INTEGERS Recall that a iteger is oe of the whole umbers, which may be either positive,

More information

A Recursive Formula for Moments of a Binomial Distribution

A Recursive Formula for Moments of a Binomial Distribution A Recursive Formula for Momets of a Biomial Distributio Árpád Béyi beyi@mathumassedu, Uiversity of Massachusetts, Amherst, MA 01003 ad Saverio M Maago smmaago@psavymil Naval Postgraduate School, Moterey,

More information

Sequences and Series

Sequences and Series CHAPTER 9 Sequeces ad Series 9.. Covergece: Defiitio ad Examples Sequeces The purpose of this chapter is to itroduce a particular way of geeratig algorithms for fidig the values of fuctios defied by their

More information

CS103X: Discrete Structures Homework 4 Solutions

CS103X: Discrete Structures Homework 4 Solutions CS103X: Discrete Structures Homewor 4 Solutios Due February 22, 2008 Exercise 1 10 poits. Silico Valley questios: a How may possible six-figure salaries i whole dollar amouts are there that cotai at least

More information

Chapter 5: Inner Product Spaces

Chapter 5: Inner Product Spaces Chapter 5: Ier Product Spaces Chapter 5: Ier Product Spaces SECION A Itroductio to Ier Product Spaces By the ed of this sectio you will be able to uderstad what is meat by a ier product space give examples

More information

I. Chi-squared Distributions

I. Chi-squared Distributions 1 M 358K Supplemet to Chapter 23: CHI-SQUARED DISTRIBUTIONS, T-DISTRIBUTIONS, AND DEGREES OF FREEDOM To uderstad t-distributios, we first eed to look at aother family of distributios, the chi-squared distributios.

More information

Properties of MLE: consistency, asymptotic normality. Fisher information.

Properties of MLE: consistency, asymptotic normality. Fisher information. Lecture 3 Properties of MLE: cosistecy, asymptotic ormality. Fisher iformatio. I this sectio we will try to uderstad why MLEs are good. Let us recall two facts from probability that we be used ofte throughout

More information

Factors of sums of powers of binomial coefficients

Factors of sums of powers of binomial coefficients ACTA ARITHMETICA LXXXVI.1 (1998) Factors of sums of powers of biomial coefficiets by Neil J. Cali (Clemso, S.C.) Dedicated to the memory of Paul Erdős 1. Itroductio. It is well ow that if ( ) a f,a = the

More information

Lecture 4: Cauchy sequences, Bolzano-Weierstrass, and the Squeeze theorem

Lecture 4: Cauchy sequences, Bolzano-Weierstrass, and the Squeeze theorem Lecture 4: Cauchy sequeces, Bolzao-Weierstrass, ad the Squeeze theorem The purpose of this lecture is more modest tha the previous oes. It is to state certai coditios uder which we are guarateed that limits

More information

Section 11.3: The Integral Test

Section 11.3: The Integral Test Sectio.3: The Itegral Test Most of the series we have looked at have either diverged or have coverged ad we have bee able to fid what they coverge to. I geeral however, the problem is much more difficult

More information

Infinite Sequences and Series

Infinite Sequences and Series CHAPTER 4 Ifiite Sequeces ad Series 4.1. Sequeces A sequece is a ifiite ordered list of umbers, for example the sequece of odd positive itegers: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29...

More information

UC Berkeley Department of Electrical Engineering and Computer Science. EE 126: Probablity and Random Processes. Solutions 9 Spring 2006

UC Berkeley Department of Electrical Engineering and Computer Science. EE 126: Probablity and Random Processes. Solutions 9 Spring 2006 Exam format UC Bereley Departmet of Electrical Egieerig ad Computer Sciece EE 6: Probablity ad Radom Processes Solutios 9 Sprig 006 The secod midterm will be held o Wedesday May 7; CHECK the fial exam

More information

CS103A Handout 23 Winter 2002 February 22, 2002 Solving Recurrence Relations

CS103A Handout 23 Winter 2002 February 22, 2002 Solving Recurrence Relations CS3A Hadout 3 Witer 00 February, 00 Solvig Recurrece Relatios Itroductio A wide variety of recurrece problems occur i models. Some of these recurrece relatios ca be solved usig iteratio or some other ad

More information

A probabilistic proof of a binomial identity

A probabilistic proof of a binomial identity A probabilistic proof of a biomial idetity Joatho Peterso Abstract We give a elemetary probabilistic proof of a biomial idetity. The proof is obtaied by computig the probability of a certai evet i two

More information

SAMPLE QUESTIONS FOR FINAL EXAM. (1) (2) (3) (4) Find the following using the definition of the Riemann integral: (2x + 1)dx

SAMPLE QUESTIONS FOR FINAL EXAM. (1) (2) (3) (4) Find the following using the definition of the Riemann integral: (2x + 1)dx SAMPLE QUESTIONS FOR FINAL EXAM REAL ANALYSIS I FALL 006 3 4 Fid the followig usig the defiitio of the Riema itegral: a 0 x + dx 3 Cosider the partitio P x 0 3, x 3 +, x 3 +,......, x 3 3 + 3 of the iterval

More information

0.7 0.6 0.2 0 0 96 96.5 97 97.5 98 98.5 99 99.5 100 100.5 96.5 97 97.5 98 98.5 99 99.5 100 100.5

0.7 0.6 0.2 0 0 96 96.5 97 97.5 98 98.5 99 99.5 100 100.5 96.5 97 97.5 98 98.5 99 99.5 100 100.5 Sectio 13 Kolmogorov-Smirov test. Suppose that we have a i.i.d. sample X 1,..., X with some ukow distributio P ad we would like to test the hypothesis that P is equal to a particular distributio P 0, i.e.

More information

Factoring x n 1: cyclotomic and Aurifeuillian polynomials Paul Garrett <garrett@math.umn.edu>

Factoring x n 1: cyclotomic and Aurifeuillian polynomials Paul Garrett <garrett@math.umn.edu> (March 16, 004) Factorig x 1: cyclotomic ad Aurifeuillia polyomials Paul Garrett Polyomials of the form x 1, x 3 1, x 4 1 have at least oe systematic factorizatio x 1 = (x 1)(x 1

More information

Irreducible polynomials with consecutive zero coefficients

Irreducible polynomials with consecutive zero coefficients Irreducible polyomials with cosecutive zero coefficiets Theodoulos Garefalakis Departmet of Mathematics, Uiversity of Crete, 71409 Heraklio, Greece Abstract Let q be a prime power. We cosider the problem

More information

WHEN IS THE (CO)SINE OF A RATIONAL ANGLE EQUAL TO A RATIONAL NUMBER?

WHEN IS THE (CO)SINE OF A RATIONAL ANGLE EQUAL TO A RATIONAL NUMBER? WHEN IS THE (CO)SINE OF A RATIONAL ANGLE EQUAL TO A RATIONAL NUMBER? JÖRG JAHNEL 1. My Motivatio Some Sort of a Itroductio Last term I tought Topological Groups at the Göttige Georg August Uiversity. This

More information

Modified Line Search Method for Global Optimization

Modified Line Search Method for Global Optimization Modified Lie Search Method for Global Optimizatio Cria Grosa ad Ajith Abraham Ceter of Excellece for Quatifiable Quality of Service Norwegia Uiversity of Sciece ad Techology Trodheim, Norway {cria, ajith}@q2s.tu.o

More information

A Combined Continuous/Binary Genetic Algorithm for Microstrip Antenna Design

A Combined Continuous/Binary Genetic Algorithm for Microstrip Antenna Design A Combied Cotiuous/Biary Geetic Algorithm for Microstrip Atea Desig Rady L. Haupt The Pesylvaia State Uiversity Applied Research Laboratory P. O. Box 30 State College, PA 16804-0030 haupt@ieee.org Abstract:

More information

THE ABRACADABRA PROBLEM

THE ABRACADABRA PROBLEM THE ABRACADABRA PROBLEM FRANCESCO CARAVENNA Abstract. We preset a detailed solutio of Exercise E0.6 i [Wil9]: i a radom sequece of letters, draw idepedetly ad uiformly from the Eglish alphabet, the expected

More information

Lecture 4: Cheeger s Inequality

Lecture 4: Cheeger s Inequality Spectral Graph Theory ad Applicatios WS 0/0 Lecture 4: Cheeger s Iequality Lecturer: Thomas Sauerwald & He Su Statemet of Cheeger s Iequality I this lecture we assume for simplicity that G is a d-regular

More information

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES Read Sectio 1.5 (pages 5 9) Overview I Sectio 1.5 we lear to work with summatio otatio ad formulas. We will also itroduce a brief overview of sequeces,

More information

Overview of some probability distributions.

Overview of some probability distributions. Lecture Overview of some probability distributios. I this lecture we will review several commo distributios that will be used ofte throughtout the class. Each distributio is usually described by its probability

More information

A Note on Sums of Greatest (Least) Prime Factors

A Note on Sums of Greatest (Least) Prime Factors It. J. Cotemp. Math. Scieces, Vol. 8, 203, o. 9, 423-432 HIKARI Ltd, www.m-hikari.com A Note o Sums of Greatest (Least Prime Factors Rafael Jakimczuk Divisio Matemática, Uiversidad Nacioal de Luá Bueos

More information

A Faster Clause-Shortening Algorithm for SAT with No Restriction on Clause Length

A Faster Clause-Shortening Algorithm for SAT with No Restriction on Clause Length Joural o Satisfiability, Boolea Modelig ad Computatio 1 2005) 49-60 A Faster Clause-Shorteig Algorithm for SAT with No Restrictio o Clause Legth Evgey Datsi Alexader Wolpert Departmet of Computer Sciece

More information

Taking DCOP to the Real World: Efficient Complete Solutions for Distributed Multi-Event Scheduling

Taking DCOP to the Real World: Efficient Complete Solutions for Distributed Multi-Event Scheduling Taig DCOP to the Real World: Efficiet Complete Solutios for Distributed Multi-Evet Schedulig Rajiv T. Maheswara, Milid Tambe, Emma Bowrig, Joatha P. Pearce, ad Pradeep araatham Uiversity of Souther Califoria

More information

SEQUENCES AND SERIES

SEQUENCES AND SERIES Chapter 9 SEQUENCES AND SERIES Natural umbers are the product of huma spirit. DEDEKIND 9.1 Itroductio I mathematics, the word, sequece is used i much the same way as it is i ordiary Eglish. Whe we say

More information

Chapter 5 O A Cojecture Of Erdíos Proceedigs NCUR VIII è1994è, Vol II, pp 794í798 Jeærey F Gold Departmet of Mathematics, Departmet of Physics Uiversity of Utah Do H Tucker Departmet of Mathematics Uiversity

More information

MARTINGALES AND A BASIC APPLICATION

MARTINGALES AND A BASIC APPLICATION MARTINGALES AND A BASIC APPLICATION TURNER SMITH Abstract. This paper will develop the measure-theoretic approach to probability i order to preset the defiitio of martigales. From there we will apply this

More information

Basic Elements of Arithmetic Sequences and Series

Basic Elements of Arithmetic Sequences and Series MA40S PRE-CALCULUS UNIT G GEOMETRIC SEQUENCES CLASS NOTES (COMPLETED NO NEED TO COPY NOTES FROM OVERHEAD) Basic Elemets of Arithmetic Sequeces ad Series Objective: To establish basic elemets of arithmetic

More information

Convexity, Inequalities, and Norms

Convexity, Inequalities, and Norms Covexity, Iequalities, ad Norms Covex Fuctios You are probably familiar with the otio of cocavity of fuctios. Give a twicedifferetiable fuctio ϕ: R R, We say that ϕ is covex (or cocave up) if ϕ (x) 0 for

More information

INFINITE SERIES KEITH CONRAD

INFINITE SERIES KEITH CONRAD INFINITE SERIES KEITH CONRAD. Itroductio The two basic cocepts of calculus, differetiatio ad itegratio, are defied i terms of limits (Newto quotiets ad Riema sums). I additio to these is a third fudametal

More information

Repeating Decimals are decimal numbers that have number(s) after the decimal point that repeat in a pattern.

Repeating Decimals are decimal numbers that have number(s) after the decimal point that repeat in a pattern. 5.5 Fractios ad Decimals Steps for Chagig a Fractio to a Decimal. Simplify the fractio, if possible. 2. Divide the umerator by the deomiator. d d Repeatig Decimals Repeatig Decimals are decimal umbers

More information

Chapter 7 Methods of Finding Estimators

Chapter 7 Methods of Finding Estimators Chapter 7 for BST 695: Special Topics i Statistical Theory. Kui Zhag, 011 Chapter 7 Methods of Fidig Estimators Sectio 7.1 Itroductio Defiitio 7.1.1 A poit estimator is ay fuctio W( X) W( X1, X,, X ) of

More information

Output Analysis (2, Chapters 10 &11 Law)

Output Analysis (2, Chapters 10 &11 Law) B. Maddah ENMG 6 Simulatio 05/0/07 Output Aalysis (, Chapters 10 &11 Law) Comparig alterative system cofiguratio Sice the output of a simulatio is radom, the comparig differet systems via simulatio should

More information

Annuities Under Random Rates of Interest II By Abraham Zaks. Technion I.I.T. Haifa ISRAEL and Haifa University Haifa ISRAEL.

Annuities Under Random Rates of Interest II By Abraham Zaks. Technion I.I.T. Haifa ISRAEL and Haifa University Haifa ISRAEL. Auities Uder Radom Rates of Iterest II By Abraham Zas Techio I.I.T. Haifa ISRAEL ad Haifa Uiversity Haifa ISRAEL Departmet of Mathematics, Techio - Israel Istitute of Techology, 3000, Haifa, Israel I memory

More information

Solving Logarithms and Exponential Equations

Solving Logarithms and Exponential Equations Solvig Logarithms ad Epoetial Equatios Logarithmic Equatios There are two major ideas required whe solvig Logarithmic Equatios. The first is the Defiitio of a Logarithm. You may recall from a earlier topic:

More information

How To Solve The Homewor Problem Beautifully

How To Solve The Homewor Problem Beautifully Egieerig 33 eautiful Homewor et 3 of 7 Kuszmar roblem.5.5 large departmet store sells sport shirts i three sizes small, medium, ad large, three patters plaid, prit, ad stripe, ad two sleeve legths log

More information

On Formula to Compute Primes. and the n th Prime

On Formula to Compute Primes. and the n th Prime Applied Mathematical cieces, Vol., 0, o., 35-35 O Formula to Compute Primes ad the th Prime Issam Kaddoura Lebaese Iteratioal Uiversity Faculty of Arts ad cieces, Lebao issam.kaddoura@liu.edu.lb amih Abdul-Nabi

More information

MATH 083 Final Exam Review

MATH 083 Final Exam Review MATH 08 Fial Eam Review Completig the problems i this review will greatly prepare you for the fial eam Calculator use is ot required, but you are permitted to use a calculator durig the fial eam period

More information

Chapter 7 - Sampling Distributions. 1 Introduction. What is statistics? It consist of three major areas:

Chapter 7 - Sampling Distributions. 1 Introduction. What is statistics? It consist of three major areas: Chapter 7 - Samplig Distributios 1 Itroductio What is statistics? It cosist of three major areas: Data Collectio: samplig plas ad experimetal desigs Descriptive Statistics: umerical ad graphical summaries

More information

Vladimir N. Burkov, Dmitri A. Novikov MODELS AND METHODS OF MULTIPROJECTS MANAGEMENT

Vladimir N. Burkov, Dmitri A. Novikov MODELS AND METHODS OF MULTIPROJECTS MANAGEMENT Keywords: project maagemet, resource allocatio, etwork plaig Vladimir N Burkov, Dmitri A Novikov MODELS AND METHODS OF MULTIPROJECTS MANAGEMENT The paper deals with the problems of resource allocatio betwee

More information

CHAPTER 3 THE TIME VALUE OF MONEY

CHAPTER 3 THE TIME VALUE OF MONEY CHAPTER 3 THE TIME VALUE OF MONEY OVERVIEW A dollar i the had today is worth more tha a dollar to be received i the future because, if you had it ow, you could ivest that dollar ad ear iterest. Of all

More information

FIBONACCI NUMBERS: AN APPLICATION OF LINEAR ALGEBRA. 1. Powers of a matrix

FIBONACCI NUMBERS: AN APPLICATION OF LINEAR ALGEBRA. 1. Powers of a matrix FIBONACCI NUMBERS: AN APPLICATION OF LINEAR ALGEBRA. Powers of a matrix We begi with a propositio which illustrates the usefuless of the diagoalizatio. Recall that a square matrix A is diogaalizable if

More information

University of California, Los Angeles Department of Statistics. Distributions related to the normal distribution

University of California, Los Angeles Department of Statistics. Distributions related to the normal distribution Uiversity of Califoria, Los Ageles Departmet of Statistics Statistics 100B Istructor: Nicolas Christou Three importat distributios: Distributios related to the ormal distributio Chi-square (χ ) distributio.

More information

Fast Fourier Transform

Fast Fourier Transform 18.310 lecture otes November 18, 2013 Fast Fourier Trasform Lecturer: Michel Goemas I these otes we defie the Discrete Fourier Trasform, ad give a method for computig it fast: the Fast Fourier Trasform.

More information

Your organization has a Class B IP address of 166.144.0.0 Before you implement subnetting, the Network ID and Host ID are divided as follows:

Your organization has a Class B IP address of 166.144.0.0 Before you implement subnetting, the Network ID and Host ID are divided as follows: Subettig Subettig is used to subdivide a sigle class of etwork i to multiple smaller etworks. Example: Your orgaizatio has a Class B IP address of 166.144.0.0 Before you implemet subettig, the Network

More information

Multi-server Optimal Bandwidth Monitoring for QoS based Multimedia Delivery Anup Basu, Irene Cheng and Yinzhe Yu

Multi-server Optimal Bandwidth Monitoring for QoS based Multimedia Delivery Anup Basu, Irene Cheng and Yinzhe Yu Multi-server Optimal Badwidth Moitorig for QoS based Multimedia Delivery Aup Basu, Iree Cheg ad Yizhe Yu Departmet of Computig Sciece U. of Alberta Architecture Applicatio Layer Request receptio -coectio

More information

5: Introduction to Estimation

5: Introduction to Estimation 5: Itroductio to Estimatio Cotets Acroyms ad symbols... 1 Statistical iferece... Estimatig µ with cofidece... 3 Samplig distributio of the mea... 3 Cofidece Iterval for μ whe σ is kow before had... 4 Sample

More information

PROCEEDINGS OF THE YEREVAN STATE UNIVERSITY AN ALTERNATIVE MODEL FOR BONUS-MALUS SYSTEM

PROCEEDINGS OF THE YEREVAN STATE UNIVERSITY AN ALTERNATIVE MODEL FOR BONUS-MALUS SYSTEM PROCEEDINGS OF THE YEREVAN STATE UNIVERSITY Physical ad Mathematical Scieces 2015, 1, p. 15 19 M a t h e m a t i c s AN ALTERNATIVE MODEL FOR BONUS-MALUS SYSTEM A. G. GULYAN Chair of Actuarial Mathematics

More information

S. Tanny MAT 344 Spring 1999. be the minimum number of moves required.

S. Tanny MAT 344 Spring 1999. be the minimum number of moves required. S. Tay MAT 344 Sprig 999 Recurrece Relatios Tower of Haoi Let T be the miimum umber of moves required. T 0 = 0, T = 7 Iitial Coditios * T = T + $ T is a sequece (f. o itegers). Solve for T? * is a recurrece,

More information

Designing Incentives for Online Question and Answer Forums

Designing Incentives for Online Question and Answer Forums Desigig Icetives for Olie Questio ad Aswer Forums Shaili Jai School of Egieerig ad Applied Scieces Harvard Uiversity Cambridge, MA 0238 USA shailij@eecs.harvard.edu Yilig Che School of Egieerig ad Applied

More information

Cooley-Tukey. Tukey FFT Algorithms. FFT Algorithms. Cooley

Cooley-Tukey. Tukey FFT Algorithms. FFT Algorithms. Cooley Cooley Cooley-Tuey Tuey FFT Algorithms FFT Algorithms Cosider a legth- sequece x[ with a -poit DFT X[ where Represet the idices ad as +, +, Cooley Cooley-Tuey Tuey FFT Algorithms FFT Algorithms Usig these

More information

Project Deliverables. CS 361, Lecture 28. Outline. Project Deliverables. Administrative. Project Comments

Project Deliverables. CS 361, Lecture 28. Outline. Project Deliverables. Administrative. Project Comments Project Deliverables CS 361, Lecture 28 Jared Saia Uiversity of New Mexico Each Group should tur i oe group project cosistig of: About 6-12 pages of text (ca be loger with appedix) 6-12 figures (please

More information

.04. This means $1000 is multiplied by 1.02 five times, once for each of the remaining sixmonth

.04. This means $1000 is multiplied by 1.02 five times, once for each of the remaining sixmonth Questio 1: What is a ordiary auity? Let s look at a ordiary auity that is certai ad simple. By this, we mea a auity over a fixed term whose paymet period matches the iterest coversio period. Additioally,

More information

NATIONAL SENIOR CERTIFICATE GRADE 12

NATIONAL SENIOR CERTIFICATE GRADE 12 NATIONAL SENIOR CERTIFICATE GRADE MATHEMATICS P EXEMPLAR 04 MARKS: 50 TIME: 3 hours This questio paper cosists of 8 pages ad iformatio sheet. Please tur over Mathematics/P DBE/04 NSC Grade Eemplar INSTRUCTIONS

More information

Our aim is to show that under reasonable assumptions a given 2π-periodic function f can be represented as convergent series

Our aim is to show that under reasonable assumptions a given 2π-periodic function f can be represented as convergent series 8 Fourier Series Our aim is to show that uder reasoable assumptios a give -periodic fuctio f ca be represeted as coverget series f(x) = a + (a cos x + b si x). (8.) By defiitio, the covergece of the series

More information

Normal Distribution.

Normal Distribution. Normal Distributio www.icrf.l Normal distributio I probability theory, the ormal or Gaussia distributio, is a cotiuous probability distributio that is ofte used as a first approimatio to describe realvalued

More information

Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed. This documet was writte ad copyrighted by Paul Dawkis. Use of this documet ad its olie versio is govered by the Terms ad Coditios of Use located at http://tutorial.math.lamar.edu/terms.asp. The olie versio

More information

Maximum Likelihood Estimators.

Maximum Likelihood Estimators. Lecture 2 Maximum Likelihood Estimators. Matlab example. As a motivatio, let us look at oe Matlab example. Let us geerate a radom sample of size 00 from beta distributio Beta(5, 2). We will lear the defiitio

More information

CME 302: NUMERICAL LINEAR ALGEBRA FALL 2005/06 LECTURE 8

CME 302: NUMERICAL LINEAR ALGEBRA FALL 2005/06 LECTURE 8 CME 30: NUMERICAL LINEAR ALGEBRA FALL 005/06 LECTURE 8 GENE H GOLUB 1 Positive Defiite Matrices A matrix A is positive defiite if x Ax > 0 for all ozero x A positive defiite matrix has real ad positive

More information

1 Computing the Standard Deviation of Sample Means

1 Computing the Standard Deviation of Sample Means Computig the Stadard Deviatio of Sample Meas Quality cotrol charts are based o sample meas ot o idividual values withi a sample. A sample is a group of items, which are cosidered all together for our aalysis.

More information

Lecture 13. Lecturer: Jonathan Kelner Scribe: Jonathan Pines (2009)

Lecture 13. Lecturer: Jonathan Kelner Scribe: Jonathan Pines (2009) 18.409 A Algorithmist s Toolkit October 27, 2009 Lecture 13 Lecturer: Joatha Keler Scribe: Joatha Pies (2009) 1 Outlie Last time, we proved the Bru-Mikowski iequality for boxes. Today we ll go over the

More information

Building Blocks Problem Related to Harmonic Series

Building Blocks Problem Related to Harmonic Series TMME, vol3, o, p.76 Buildig Blocks Problem Related to Harmoic Series Yutaka Nishiyama Osaka Uiversity of Ecoomics, Japa Abstract: I this discussio I give a eplaatio of the divergece ad covergece of ifiite

More information

Approximating Area under a curve with rectangles. To find the area under a curve we approximate the area using rectangles and then use limits to find

Approximating Area under a curve with rectangles. To find the area under a curve we approximate the area using rectangles and then use limits to find 1.8 Approximatig Area uder a curve with rectagles 1.6 To fid the area uder a curve we approximate the area usig rectagles ad the use limits to fid 1.4 the area. Example 1 Suppose we wat to estimate 1.

More information

Lecture 2: Karger s Min Cut Algorithm

Lecture 2: Karger s Min Cut Algorithm priceto uiv. F 3 cos 5: Advaced Algorithm Desig Lecture : Karger s Mi Cut Algorithm Lecturer: Sajeev Arora Scribe:Sajeev Today s topic is simple but gorgeous: Karger s mi cut algorithm ad its extesio.

More information

Perfect Packing Theorems and the Average-Case Behavior of Optimal and Online Bin Packing

Perfect Packing Theorems and the Average-Case Behavior of Optimal and Online Bin Packing SIAM REVIEW Vol. 44, No. 1, pp. 95 108 c 2002 Society for Idustrial ad Applied Mathematics Perfect Packig Theorems ad the Average-Case Behavior of Optimal ad Olie Bi Packig E. G. Coffma, Jr. C. Courcoubetis

More information

Lecture 5: Span, linear independence, bases, and dimension

Lecture 5: Span, linear independence, bases, and dimension Lecture 5: Spa, liear idepedece, bases, ad dimesio Travis Schedler Thurs, Sep 23, 2010 (versio: 9/21 9:55 PM) 1 Motivatio Motivatio To uderstad what it meas that R has dimesio oe, R 2 dimesio 2, etc.;

More information

Chapter 7: Confidence Interval and Sample Size

Chapter 7: Confidence Interval and Sample Size Chapter 7: Cofidece Iterval ad Sample Size Learig Objectives Upo successful completio of Chapter 7, you will be able to: Fid the cofidece iterval for the mea, proportio, ad variace. Determie the miimum

More information

2. Degree Sequences. 2.1 Degree Sequences

2. Degree Sequences. 2.1 Degree Sequences 2. Degree Sequeces The cocept of degrees i graphs has provided a framewor for the study of various structural properties of graphs ad has therefore attracted the attetio of may graph theorists. Here we

More information

CS100: Introduction to Computer Science

CS100: Introduction to Computer Science Review: History of Computers CS100: Itroductio to Computer Sciece Maiframes Miicomputers Lecture 2: Data Storage -- Bits, their storage ad mai memory Persoal Computers & Workstatios Review: The Role of

More information

Domain 1: Designing a SQL Server Instance and a Database Solution

Domain 1: Designing a SQL Server Instance and a Database Solution Maual SQL Server 2008 Desig, Optimize ad Maitai (70-450) 1-800-418-6789 Domai 1: Desigig a SQL Server Istace ad a Database Solutio Desigig for CPU, Memory ad Storage Capacity Requiremets Whe desigig a

More information

Confidence Intervals for One Mean

Confidence Intervals for One Mean Chapter 420 Cofidece Itervals for Oe Mea Itroductio This routie calculates the sample size ecessary to achieve a specified distace from the mea to the cofidece limit(s) at a stated cofidece level for a

More information

CHAPTER 7: Central Limit Theorem: CLT for Averages (Means)

CHAPTER 7: Central Limit Theorem: CLT for Averages (Means) CHAPTER 7: Cetral Limit Theorem: CLT for Averages (Meas) X = the umber obtaied whe rollig oe six sided die oce. If we roll a six sided die oce, the mea of the probability distributio is X P(X = x) Simulatio:

More information

The Role of Latin Square in Cipher Systems: A Matrix Approach to Model Encryption Modes of Operation

The Role of Latin Square in Cipher Systems: A Matrix Approach to Model Encryption Modes of Operation UCLA COPUTR SCINC DPARTNT TCHNICAL RPORT 030038 1 The Role of Lati Square i Cipher Systems: A atrix Approach to odel cryptio odes of Operatio Jieju og Computer Sciece Departmet Uiversity of Califoria,

More information

Analysis Notes (only a draft, and the first one!)

Analysis Notes (only a draft, and the first one!) Aalysis Notes (oly a draft, ad the first oe!) Ali Nesi Mathematics Departmet Istabul Bilgi Uiversity Kuştepe Şişli Istabul Turkey aesi@bilgi.edu.tr Jue 22, 2004 2 Cotets 1 Prelimiaries 9 1.1 Biary Operatio...........................

More information

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 13

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 13 EECS 70 Discrete Mathematics ad Probability Theory Sprig 2014 Aat Sahai Note 13 Itroductio At this poit, we have see eough examples that it is worth just takig stock of our model of probability ad may

More information

Definition. A variable X that takes on values X 1, X 2, X 3,...X k with respective frequencies f 1, f 2, f 3,...f k has mean

Definition. A variable X that takes on values X 1, X 2, X 3,...X k with respective frequencies f 1, f 2, f 3,...f k has mean 1 Social Studies 201 October 13, 2004 Note: The examples i these otes may be differet tha used i class. However, the examples are similar ad the methods used are idetical to what was preseted i class.

More information

Descriptive Statistics

Descriptive Statistics Descriptive Statistics We leared to describe data sets graphically. We ca also describe a data set umerically. Measures of Locatio Defiitio The sample mea is the arithmetic average of values. We deote

More information

GCE Further Mathematics (6360) Further Pure Unit 2 (MFP2) Textbook. Version: 1.4

GCE Further Mathematics (6360) Further Pure Unit 2 (MFP2) Textbook. Version: 1.4 GCE Further Mathematics (660) Further Pure Uit (MFP) Tetbook Versio: 4 MFP Tetbook A-level Further Mathematics 660 Further Pure : Cotets Chapter : Comple umbers 4 Itroductio 5 The geeral comple umber 5

More information

Mathematical goals. Starting points. Materials required. Time needed

Mathematical goals. Starting points. Materials required. Time needed Level A1 of challege: C A1 Mathematical goals Startig poits Materials required Time eeded Iterpretig algebraic expressios To help learers to: traslate betwee words, symbols, tables, ad area represetatios

More information

NEW HIGH PERFORMANCE COMPUTATIONAL METHODS FOR MORTGAGES AND ANNUITIES. Yuri Shestopaloff,

NEW HIGH PERFORMANCE COMPUTATIONAL METHODS FOR MORTGAGES AND ANNUITIES. Yuri Shestopaloff, NEW HIGH PERFORMNCE COMPUTTIONL METHODS FOR MORTGGES ND NNUITIES Yuri Shestopaloff, Geerally, mortgage ad auity equatios do ot have aalytical solutios for ukow iterest rate, which has to be foud usig umerical

More information

Hypothesis testing. Null and alternative hypotheses

Hypothesis testing. Null and alternative hypotheses Hypothesis testig Aother importat use of samplig distributios is to test hypotheses about populatio parameters, e.g. mea, proportio, regressio coefficiets, etc. For example, it is possible to stipulate

More information

Week 3 Conditional probabilities, Bayes formula, WEEK 3 page 1 Expected value of a random variable

Week 3 Conditional probabilities, Bayes formula, WEEK 3 page 1 Expected value of a random variable Week 3 Coditioal probabilities, Bayes formula, WEEK 3 page 1 Expected value of a radom variable We recall our discussio of 5 card poker hads. Example 13 : a) What is the probability of evet A that a 5

More information