Chapter 6. Advanced Counting Techniques
|
|
- Dortha Lindsey
- 5 years ago
- Views:
Transcription
1 Chapter 6 Advaced Coutig Techiques
2 6.: Recurrece Relatios Defiitio: A recurrece relatio for the sequece {a } is a equatio expressig a i terms of oe or more of the previous terms of the sequece: a,a2,a3,,a -, with >= 0, ( 0 beig a oegative iteger). A sequece is called a solutio of a recurrece relatio if its terms satisfy the recurrece relatio.
3 Recurrece Example Cosider the recurrece relatio a = 2a a 2 ( 2). Which of the followig are solutios? a = 3 Yes -> 2 [3(-)] 3(-2) = 3 => a a = 2 No -> a 0 =, a = 2, a 2 = 4; a 2 = 2a a 0 = 2.2 = 3 a 2 a = 5 Yes -> a = = 5 = a
4 Iitial coditios The iitial coditios (base coditios): Specify the terms that precede the first term where the recurrece relatio takes effect. i.e., specify a 0
5 Example Applicatios Growth of bak accout Iitial Amout P 0 =$0,000 After Years= P Compoud Iterest I = % Sol: P =P - +(I/00)P - =(.)P - Usig Iteratio we get, P =(.) P 0 i.e P 30 =(.) 30 0,000=$228,922.97
6 Example Applicatio Rabbits ad Fiboacci Numbers Growth of rabbit populatio i which each rabbit yields ew oe every period startig 2 periods after its birth. P = P + P 2 (Fiboacci relatio)
7 Classic Tower of Haoi Example Problem: Get all disks from peg to peg 2. Oly move disk at a time. Never set a larger disk o a smaller oe.
8 Haoi Recurrece Relatio Let H = # moves for a stack of disks. Optimal strategy: Move top disks to spare peg. (H moves) Move bottom disk. ( move) Move top to bottom disk. (H moves) Note: H = 2H +
9 Why is H = 2H - + Oly move disk at a time. Never set a larger disk o a smaller oe.
10 Solvig Tower of Haoi RR H = 2 H + = 2 (2 H 2 + ) + = 2 2 H = 2 2 (2 H 3 + ) = 2 3 H = 2 H = (sice H =) = 2
11 6.2: Solvig Recurreces Defiitio: A liear homogeeous recurrece relatio of degree k with costat coefficiet is a recurrece relatio of the form a = c a + + c k a k, where the c i are all real, ad c k 0. The solutio is uiquely determied if k iitial coditios a 0 a k are provided
12 6.2: Solvig Recurreces.. Liear?: Right had side is sum of multiples of previous terms. Homogeous?: No terms that are NOT multiples of the a j s. Degree?: k-degree sice previous k terms are used.
13 Solvig with cost. Coefficiets Basic idea: Look for solutios of the form a = r, where r is a costat. This requires the characteristic equatio: r = c r + + c k r k, i.e., r k c r k c k = 0 (Dividig both sides by r -k ad subtractig right had side from left). The solutios (characteristic roots) ca yield a explicit formula for the sequece.
14 Solvig Theorem: Let c ad c 2 be real umbers. Suppose that r 2 c r c 2 = 0 has two distict roots r ad r 2. The the sequece {a } is a solutio of the recurrece relatio a = c a + c 2 a 2 if ad oly if a = α r + α 2 r 2 for 0, where α, α 2 are costats.
15 Theorem : Proof 2 thigs to prove Case : Roots are r & r 2, i.e., {a = α r + α 2 r 2 } a is a solutio. r & r 2 are roots of r 2 c r c 2 = 0 r 2 = c r + c 2 ; r 22 = c r 2 + c 2. c a + c 2 a 2 = c (α r - + α 2 r 2 - ) + c 2 (α r -2 + α 2 r 2-2 ) α r -2 (c r + c 2 ) + α 2 r 2-2 (c r 2 + c 2 ) α r -2 r 2 + α 2 r 2-2 r 2 2 a
16 Theorem : Proof 2 thigs to prove Case 2: a is a solutio a = α r + α 2 r 2 for some α & α 2. a is a solutio a 0 = C 0 = α + α 2. C = α r + α 2 r 2 α = (C C 0 r 2 )/(r - r 2 ) α 2 = C 0 α = (C 0 r -C )/(r - r 2 ) Works oly if r r 2 a = α r + α 2 r 2 works for 2 iitial coditios Sice the iitial coditios uiquely determie the sequece, a = α r + α 2 r 2
17 Example Solve the recurrece a = a + 2a 2 give the iitial coditios a 0 = 2, a = 7. A = r r = r - + 2r-2 r2 = r +2 Solutio: Use theorem c =, c 2 = 2 Characteristic equatio: r 2 r 2 = 0 Solutios: r = [ ( )±(( ) 2 4 ( 2)) /2 ] / 2 = (±9 /2 )/2 = (±3)/2, so r = 2 or r =. So a = α 2 + α 2 ( ).
18 Example Cotiued To fid α ad α 2, solve the equatios for the iitial coditios a 0 ad a : a 0 = 2 = α α 2 ( ) 0 a = 7 = α 2 + α 2 ( ) Simplifyig, we have the pair of equatios: 2 = α + α 2 7 = 2α α 2 which we ca solve easily by substitutio: α 2 = 2 α ; 7 = 2α (2 α ) = 3α 2; 9 = 3α ; α = 3; α 2 = -. Fial aswer: a = 3 2 ( )
19 The Case of Degeerate Roots Theorem2: Let c ad c2 be real umbers with c2 0. Suppose that r 2 c r c 2 = 0 has oly oe root r 0. A sequece {a } is a solutio of the recurrece relatio a =c a - + c 2 a -2 if ad oly if a = α r 0 + α 2 r 0, for all 0, for some costats α, α 2.
20 k-liear Homogeeous Recurrece Relatios with Costat Coefficiets Theorem3: Let c,c2,.ck be real umbers. Suppose the C.E. If this has k distict roots r i, the the solutios to the recurrece are of the form: k a = α r i= i i r i= if ad oly if k i i= for all 0, where the α i are costats. k k c r i = a 0 = k c i a i
21 Theorem 3: Example Let a = 6a - a -2 +6a -3 ; a 0 =2,a =5, & a 2 =5. C.E.: r 3 6r 2 + r 6; Roots =,2, & 3. Solutio: a = α. + α α 3.3 a 0 = 2 = α + α 2 + α 3 a = 5 = α + α α 3.3 a 2 = 5 = α + α α 3.9 α = ; α 2 = ; α 3 = 2. a =
22 Degeerate t-roots Theorem 4: Suppose there are t roots r,,r t with multiplicities m,,m t. m i >= for i = t. The: for all 0, where all the α are costats. = = = t i i m j j j i r a i 0 α,
23 Theorem 4: Example E.g., Roots of C.E. are 2, 2, 2, 5, 5, & 9. Solutio: (α,0 + α, + α,2 2).2 + (α 2,0 + α 2, ).5 + α 3,0 9
24 Liear NoHomogeeous Recurrece Relatios with Costat Coefficiets Liear NoHomogeeous RRs with costat coefficiets may (ulike LiHoReCoCos) cotai some terms F() that deped oly o (ad ot o ay a i s). Geeral form: a = c a + + c k a k + F() The associated homogeeous recurrece relatio (associated LiHoReCoCo).
25 Solutios of LiNoReCoCos Theorem 5: If a (p) is a particular solutio to the LiNoReCoCo, the k a = cia i + F( ) i= The all its solutios are of the form: a = a (p) + a (h), where a (h) is a solutio to the associated homogeeous RR a k = cia i= i
26 Theorem 5: Proof {a (p) } is a particular solutio: a (p) = c a - (p) + c 2 a -2 (p) +..+c k a -k (p) + F() () Let b be a 2 d solutio: b = c b - + c 2 b c k b -k + F() (2) (2) (): b a (p) = c (b - -a - (p) ) + c 2 (b -2 -a -2 (p) ) + + c k (b -k -a -k (p) ) Hece, {b a (p) } is a solutio of the associated homogeeous RR, say {a (h) }. b = a (p) + a (h).
27 Example Fid all solutios to a = 3a +2. Which solutio has a = 3? To solve this LiNoReCoCo, solve its associated LiHoReCoCo equatio: a = 3a, ad its solutios are a (h) = α3, where α is a costat. By Theorem 5, the solutios to the origial problem are all of the form a = a (p) + α3. So, all we eed to do is fid oe a (p) that works.
28 Trial Solutios Sice F()=2, i.e it is liear so a reasoable trial solutio is a liear fuctio i, say p = c + d. The the equatio a = 3a +2 becomes, c+d = 3(c( )+d) + 2, (for all ) Simplifyig, we get ( 2c+2) + (3c 2d) = 0 (collect terms) So c = ad d = 3/2. So a (p) = 3/2 is a solutio.
29 Fidig a Desired Solutio From Theorem 5, we kow that all geeral solutios to our example are of the form: a = 3/2 + α3. Solve this for α for the give case, a = 3: 3 = 3/2 + α3 α = /6 The aswer is a = 3/2 + (/6)3
30 Theorem 6 Suppose {a } satisfies LiNoRR: k = ca i i + i= t t i Ad F()= bt i s ; b t ad s are real os. i= 0 Whe s is ot a root of C.E. of the associated LiHoRR, there is a particular solutio of the form t t i pt i s i= 0 a F( )
31 Theorem 6 cotiue.. Whe s is a root of this C.E. ad its multiplicity is m, there is a particular solutio of the form t m i= 0 p t i t i This factor m esures that the proposed particular solutio will ot already be a solutio of the associated LiHoRR. s
32 Theorem 6: Example a = 6a - 9a -2 + F(); F() = 3 C.E.: r 2 6r + 9 => (r-3)2 = 0; r = 3. Solutio: By Theorem 6, s = 3, multiplicity m = 2. Solutio is of the form p 0 2 3, where p 0 is polyomial costat.
33 6.3: Divide & Coquer R.R.s May types of problems are solvable by reducig a problem of size ito some umber a of idepedet subproblems, each of size /b, where a ad b>. The time complexity to solve such problems is give by a recurrece relatio: f() = a f(/b) + g() where g() is the extra operatios required. This is called a divide-ad-coquer recurrece relatio
34 Divide+Coquer Examples Biary search: Break list ito subproblem (smaller list) (so a=) of size /2 (so b=2). So f() =.f(/2)+2 (g()=2 costat) Merge sort: Break list of legth ito 2 sublists (a=2), each of size /2 (so b=2), the merge them, i g() = operatios So M() = 2M(/2) +
35 Fast Multiplicatio Example This algorithm splits each of two 2-bit itegers ito two bits blocks. Thus, from multiplicatios of two 2-bit itegers, it is reduced to oly three multiplicatios of bit itegers, plus shifts ad additios To fid the product ab of two 2-digitbase 2 umbers, a=(a 2- a 2-2 a 0 ) 2 ad b=(b 2- b 2-2 b 0 ) 2, first, we break them i half: a=2 A +A 0, b=2 B +B 0,
36 Derivatio of Fast Multiplicatio ab = = = = = (2 2 2 (2 ( A A B A B ( A B + ( A B + + ( A 2 2 A )(2 2 ) A B 0 0 ) A B A 0 A B + 0 ( A B 0 0 A B )( B B A B (2 (2 + + B B + ) A B + ) A B 0 0 ) ) A B 0 + ( A B A B 0 ) A B A B A B + + ) + ) (Multiply out 0 polyomials) Zero ( A B 0 0 A B (Factor last polyomial) Three multiplicatios, each with -digit umbers 0 0 ))
37 Recurrece Rel. for Fast Mult. Notice that the time complexity f() of the fast multiplicatio algorithm obeys the recurrece: f(2)=3f()+c() i.e., f()=3f(/2)+c() So a=3, b=2. Time to do the eeded adds & subtracts of -digit ad 2-digit umbers
38 Theorem Let f() = af(/b) + c wheever is divisible by b, where a, b is a iteger greater tha, ad c is a positive real umber. The { log f () ( b a is O ) O(log) if a > if a = Furthermore, whe =b k, where k is a positive iteger, a log b f() = C + C 2. where C = f() + c/(a-) ad C 2 = -c/(a-)
39 Theorem: Proof = b k ; f() = akf() + a = : f() = f() + ck; Sice = b k, k = log b f() = f() + clog b. is a power of b or ot: f() is O(log), whe a =. a > : (from Theorem, Sectio 3.2) f() = a k f() + c(a k )/(a ) = a k [f() + c/(a )] c/(a ) = C log b a + C 2, sice a k = alog b = log b a f() is O( log b a ) k j= 0 j a c = a k f () + c k j= 0 a j
40 MASTER Theorem Let f() = af(/b) + c d wheever =b k, where a, b>, ad c ad d are real umber, with c positive ad d oegative. The f() is O ( d ) O ( d log ) logb a o( ) if a<b d if a=b d if a>b d
41 Example We kow that umber of comparisos used by the merge sort to sort a list of elemets is less the M(), where M()=2M(/2) + From Master Theorem we fid that M() is O(log)
42 6.4 Geeratig Fuctios Geeratig fuctios: Used to represet sequeces efficietly by codig the terms of a sequece as coefficiets of powers of a variable x i a formal power series Defiitio: Let S = {a0, a, a2, a3,...} be a (ifiite) sequece of real umbers. The the geeratig fuctio G(x), of S is the series G(x)=a 0 +a x+ +a k x k + = k =0 a k k x
43 Example of GF Let S = {,,,,... }. The G(x) =+ x + x x k +... = =0 k k x if S=,,,,, By Theorem of Sectio 3.2, (x 6 -)/(x-) = + x + x x 5 G(x) =(x 6 -)/(x-) is the geeratig fuctio of sequece,,,,,
44 Theorems of GF Theorem : Let f(x) = a k ad g(x)= b k k x k x. The, ( a k + b k ) x f(x) + g(x)= ad f(x)g(x)= k =0 k =0 k k = 0 j= 0 a j b k j x k k k =0
45 Example A expressio for the geeratig fuctio of the sequece S= {,,,,,,...} is /(- x) /(- x) = + x + x 2 + x 3 + Let f(x) = /(-x)2; f(x) = What are the coefficiets of a k? From theorem, we have ( + x + x 2 +..) x ( + x + x 2 k +..) x =0 k x k =0 =0 k k a k x k /(- x) 2 k = x = k = 0 j= 0 k= k x 0 ( k + ) x k
46 Permutatios & Combiatios Permutatio: A ordered arragemet of objects from a set of distict objects. P(,r): distict objects; r umber of objects i the permutatio P(,r) = (-)(-2) (-r+) P(,r) =!/(-r)! Example: Selectig first 3 prize wiers from 00 differet people 00 x 99 x 98 = 970,200. Combiatio: Uordered selectio of r elemets from a set. C(,r) =!/[r!(-r)!]; is o-egative, 0 r Proof: r-permutatio is ordered r-combiatios.
47 Permutatios & Combiatios Proof: r-permutatio is ordered r-combiatios.: P(,r) = C(,r) x P(r,r) C(,r) = P(,r) / P(r,r) C(,r) = [!/(-r)!]/[r!/(r-r)!] =!/[r!(-r)!] Corollary : C(,r) = C(,-r) if & r are o-egative ad r. Proof: C(,-r) =!/[(-r)!(- (-r))!] =!/[(-r)!r!] Note: C(,) = C(,0) =. Example: Choosig 5 players from 0 member team. C(0,5) = 0!/(5!5!) = 252.
48 Biomial Coefficiets & Theorem C(,r): deoted by r C(,r): Biomial coefficiet these umbers occur as co-efficiets i the expasio of powers of biomial expressios such as (a+b) Biomial Theorem: x, y are variables; oegative iteger. (x + y) = j=0 C(,j).x -j.y j = C(,0)x + C(,)x - y + C(,2)x -2 y 2 +.C(,-)xy - + C(,)y Example: (x + y) 2 = (x+y)(x+y) = xx + xy + xy + yy = x 2 + 2xy + y 2
49 Biomial Coefficiets & Theorem Proof: Cout the umber of terms of form x -j.y j Choose xs from the sums (so that the other terms are ys) Coefficiet of x -j y j is C(,-j) = C(,j) Example : Expasio of (x + y)4 = j=0 4 C(4,j)x 4-j y j = C(4,0)x4 + C(4,)x 3 y + C(4,2)x 2 y 2 + C(4,3)xy 3 + C(4,4)y4 = x 4 + 4x 3 y + 6x 2 y 2 + 4xy 3 + y 4 Example 2: Coeffieciet of x 2 y 3 i (x+y) 25 = C(25,3) = 25!/(3! 2!) = 5,200,300
50 Biomial Theorem: Corollary Corollary : is o-egative k=0 C(,k) = 2 Proof: 2 = ( + ) = k=0 C(,k) k -k = k=0 C(,k) Basically, k=0 C(,k) is the total umber of subsets of a set with elemets 2
51 Biomial Theorem: Corollary 2 Corollary 2: is positive k=0 (-) k C(,k) = 0 Proof: 0 = 0 = ((-) + ) = k=0 C(,k)(-) k -k = k=0 C(,k)(-) k C(,0) + C(,2) + C(,4) +.. = C(,) + C(,3) + C(,5) +
52 Biomial Theorem: Corollary 3 Corollary 3: is positive k=0 2 k C(,k) = 3 Proof: 3 = (+2) = k=0 C(,k)(2) k -k = k=0 C(,k)2 k
53 Permutatios With Repetitios Chapter 4.5 Theorem : Number of r-permutatios of a set of objects with repetitios allowed is r. Theorem 2: There are C(+r-, r) r-combiatios from a set with elemets whe repetitio of elemets is allowed.
54 Exteded Biomial Coefficiets Defiitio: Let u be a real umber ad k a o-egative iteger. The the exteded biomial coefficiet (EBC) is: ( u ) { = u( u )...( u k + )/ k! k if k>0, if k=0. e.g:ebc(-2,3) = (-2)(-3)(-4) / 3! = -4. EBC(0.5,3)=(0.5)(-0.5)(-.5) / 3! = /6
55 Example Whe the top parameter (u) is egative iteger, the EBC ca be expressed i terms of ordiary biomial coefficiets. Usig earlier defiitio: EBC = (-)(--).(--r+)/r! = (-) r (+) (+r-)/r! = (-) r (+r-)!/(r!*(-)!). Therefore, r + r r = ( ) = ( ) C ( + r, r) r, Z+ r r
56 The Exteded Biomial Theorem Let x be a real umber with x < ad let u be a real umber. The (+x) u = k =0 ( u ) x k k
57 Example Fid GF for (+x) - ad (-x) - By EB Theorem, it follows that (+x) - = k = 0 We kow that ( ) k x k ( ) r = ( ) C( + r, r) r (+x) - = k = 0 ( ) k C ( + k, k ) x k Replacig x with x we get (-x) - = k = 0 C ( + k, k ) x k
58 Coutig Problems ad Geeratig Fuctios Geeratig Fuctios ca be used to solve a wide variety of coutig problems. I particular they ca be used to cout the umber of combiatios of various types.
59 Example Use GF to fid the umber of ways to select r objects of differet kids {a r } if we must select at least oe object of each kid? Chapter 4, theorem. Each of the kids of objects cotributes the factor (x+x 2 +x 3 +) to the GF G(x), Hece G(x)= (x+x 2 +x 3 +) =x (+ x+x 2 +x 3 +) =x /(-x) Usig EB Theorem, we have G(x) = x. (-x) - = x r = 0 ( ) r ( ) = x r x = r 0 C( + r, r) x r G(x)= + ( +, ) r C r r x r=0
60 Cotiue Substitutig t = +r, we get G(x)= Replacig t by r as the idex of summatio, we get G(x)= t = r= C ( t, t ) x C ( r, r ) x t r Hece, there are C(r-,r-) ways to select r objects of differet kids if we must select at least oe object of each kid.
61 Usig GF to Solve Recurrece Relatios We ca fid the solutio to a recurrece relatio ad its iitial coditios by fidig a explicit formula for the associated geeratig fuctio.
62 Example Solve the R.R., a k =3a k- for k=,2,3 ad iitial coditio a 0 =2. a = 3a a = 2. k k 0 k k j 0 k 0 k 0 j 0 k= k= j= 0 Gx () = a+ ax = a+ 3a x = a+ 3x ax = a+ 3 xgx () a Gx a x x 0 k k k k () = = 0 3 = (2 3) 3x k= 0 k= 0 Uses idetity/(-ax) = Cosequetly, a k =2. 3 k =0 k a k x k
63 6.5 The priciple of Iclusio-Exclusio If A, B ad C are fiite sets the A B = A + B A B
64 Cotiue If A, B ad C are fiite sets the A B C = A + B + C - A B - B C - A C - A B C A B A B A C B C C
65 Geeral Iclusio-Exclusio Theorem : Let A,,A be fiite sets. The A A 2 A =... ) (... 2 k j i k j i j i j i i i A A A A A A A A A I I I I I I + + +
66 Geeral Theorem: Proof A A 2 A : Show a elemet i the uio is couted oly oce i the right had side. Let a be a member of exactly r sets (A, ). a is couted C(r,) times by st summatio, C(r,2) by 2 d summatio of the itersectios, ad C(r,m) times by m th summatio ivolvig m sets A i. a is couted exactly C(r,) C(r,2) + C(r,3) - + (- ) r+ C(r,r). By Corollary 2 of Sectio 4.4, C(r,0) - C(r,) + C(r,2) - C(r,3) - + (-) r C(r,r) = 0. C(r,0) = C(r,) C(r,2) + C(r,3) - + (-) r+ C(r,r). a is couted oly oce.
67 6.6 Applicatios of Iclusio-Exclusio Alterative Form: Let A i be the subset cotaiig the elemets that have Property P i. Writig these quatities i terms of sets, we have A i I Ai 2 I... I Aik = N( Pi Pi 2... P ik If the umber of elemets with oe of the properties P,,P is deoted by N(P P 2 P ) the, N(P P 2 P )=N- A A2... A )
68 Cotiue From the iclusioexclusio priciple, we see that N(P P 2 P )=N )... ( ) (... ) ( ) ( 2 k j i k j i j i j i i i P PP N PP P N PP N P N + + +
69 The Number of Oto Fuctios Let m ad be positive itegers with (m ). How may ways to assig m differet jobs to differet employees if every employee is assiged at least oe job? Assume m = 5, = 4, followig Theorem (ext slide): 4 5 C(4,) C(4,2).2 5 C(4,3) 5 = 240
70 The Number of Oto Fuctios Theorem: Let m ad be positive itegers with (m ). The, there are m - C (,) ( -) m + C (,2) ( -2) m + +(-) i C (,i ) (-i ) m + + (-) - C (,-) m oto fuctios from a set with m elemets to a set with elemets
71 Deragemets A deragemet is a permutatio of objects that leaves o object i its origial positio. Theorem: The umber of deragemets of a set with elemets is D =!! + 2! 3! + 4! + L+! ( )
72 Theorem Proof Property P i : A permutatio that fixes elemet i. Number of deragemets: umber of permutatios havig oe of the properties Pi for i =,2,,. D = N(P,P 2,,P ) (from iclusio-exclusio) = N - N ( P ) + N( PP ) -... i i i< j i j N: umber of permutatios of elemets. So, N = P(). Similarly: N(Pi) = P(-); N(Pi,Pj) = P(-2). Isertig these values i the expressio for D, we get the formula.
Math 475, Problem Set #12: Answers
Math 475, Problem Set #12: Aswers A. Chapter 8, problem 12, parts (b) ad (d). (b) S # (, 2) = 2 2, sice, from amog the 2 ways of puttig elemets ito 2 distiguishable boxes, exactly 2 of them result i oe
More informationMath 155 (Lecture 3)
Math 55 (Lecture 3) September 8, I this lecture, we ll cosider the aswer to oe of the most basic coutig problems i combiatorics Questio How may ways are there to choose a -elemet subset of the set {,,,
More informationSection 5.1 The Basics of Counting
1 Sectio 5.1 The Basics of Coutig Combiatorics, the study of arragemets of objects, is a importat part of discrete mathematics. I this chapter, we will lear basic techiques of coutig which has a lot of
More informationRecurrence Relations
Recurrece Relatios Aalysis of recursive algorithms, such as: it factorial (it ) { if (==0) retur ; else retur ( * factorial(-)); } Let t be the umber of multiplicatios eeded to calculate factorial(). The
More informationGenerating Functions. 1 Operations on generating functions
Geeratig Fuctios The geeratig fuctio for a sequece a 0, a,..., a,... is defied to be the power series fx a x. 0 We say that a 0, a,... is the sequece geerated by fx ad a is the coefficiet of x. Example
More information1 Generating functions for balls in boxes
Math 566 Fall 05 Some otes o geeratig fuctios Give a sequece a 0, a, a,..., a,..., a geeratig fuctio some way of represetig the sequece as a fuctio. There are may ways to do this, with the most commo ways
More informationSolutions to Final Exam
Solutios to Fial Exam 1. Three married couples are seated together at the couter at Moty s Blue Plate Dier, occupyig six cosecutive seats. How may arragemets are there with o wife sittig ext to her ow
More informationRecursive Algorithms. Recurrences. Recursive Algorithms Analysis
Recursive Algorithms Recurreces Computer Sciece & Egieerig 35: Discrete Mathematics Christopher M Bourke cbourke@cseuledu A recursive algorithm is oe i which objects are defied i terms of other objects
More informationCSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo
Coutig Methods CSE 191, Class Note 05: Coutig Methods Computer Sci & Eg Dept SUNY Buffalo c Xi He (Uiversity at Buffalo CSE 191 Discrete Structures 1 / 48 Need for Coutig The problem of coutig the umber
More informationWe are mainly going to be concerned with power series in x, such as. (x)} converges - that is, lims N n
Review of Power Series, Power Series Solutios A power series i x - a is a ifiite series of the form c (x a) =c +c (x a)+(x a) +... We also call this a power series cetered at a. Ex. (x+) is cetered at
More informationREVIEW FOR CHAPTER 1
REVIEW FOR CHAPTER 1 A short summary: I this chapter you helped develop some basic coutig priciples. I particular, the uses of ordered pairs (The Product Priciple), fuctios, ad set partitios (The Sum Priciple)
More informationLecture Notes for CS 313H, Fall 2011
Lecture Notes for CS 313H, Fall 011 August 5. We start by examiig triagular umbers: T () = 1 + + + ( = 0, 1,,...). Triagular umbers ca be also defied recursively: T (0) = 0, T ( + 1) = T () + + 1, or usig
More informationHomework 3. = k 1. Let S be a set of n elements, and let a, b, c be distinct elements of S. The number of k-subsets of S is
Homewor 3 Chapter 5 pp53: 3 40 45 Chapter 6 p85: 4 6 4 30 Use combiatorial reasoig to prove the idetity 3 3 Proof Let S be a set of elemets ad let a b c be distict elemets of S The umber of -subsets of
More informationPermutations, Combinations, and the Binomial Theorem
Permutatios, ombiatios, ad the Biomial Theorem Sectio Permutatios outig methods are used to determie the umber of members of a specific set as well as outcomes of a evet. There are may differet ways to
More informationMath 172 Spring 2010 Haiman Notes on ordinary generating functions
Math 72 Sprig 200 Haima Notes o ordiary geeratig fuctios How do we cout with geeratig fuctios? May eumeratio problems which are ot so easy to hadle by elemetary meas ca be solved usig geeratig fuctios
More informationInfinite Sequences and Series
Chapter 6 Ifiite Sequeces ad Series 6.1 Ifiite Sequeces 6.1.1 Elemetary Cocepts Simply speakig, a sequece is a ordered list of umbers writte: {a 1, a 2, a 3,...a, a +1,...} where the elemets a i represet
More informationYou may work in pairs or purely individually for this assignment.
CS 04 Problem Solvig i Computer Sciece OOC Assigmet 6: Recurreces You may work i pairs or purely idividually for this assigmet. Prepare your aswers to the followig questios i a plai ASCII text file or
More information11. FINITE FIELDS. Example 1: The following tables define addition and multiplication for a field of order 4.
11. FINITE FIELDS 11.1. A Field With 4 Elemets Probably the oly fiite fields which you ll kow about at this stage are the fields of itegers modulo a prime p, deoted by Z p. But there are others. Now although
More informationCSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture)
CSI 101 Discrete Structures Witer 01 Prof. Lucia Moura Uiversity of Ottawa Homework Assigmet #4 (100 poits, weight %) Due: Thursday, April, at 1:00pm (i lecture) Program verificatio, Recurrece Relatios
More informationIntroduction To Discrete Mathematics
Itroductio To Discrete Mathematics Review If you put + pigeos i pigeoholes the at least oe hole would have more tha oe pigeo. If (r + objects are put ito boxes, the at least oe of the boxes cotais r or
More information2.4 - Sequences and Series
2.4 - Sequeces ad Series Sequeces A sequece is a ordered list of elemets. Defiitio 1 A sequece is a fuctio from a subset of the set of itegers (usually either the set 80, 1, 2, 3,... < or the set 81, 2,
More informationMathematics review for CSCI 303 Spring Department of Computer Science College of William & Mary Robert Michael Lewis
Mathematics review for CSCI 303 Sprig 019 Departmet of Computer Sciece College of William & Mary Robert Michael Lewis Copyright 018 019 Robert Michael Lewis Versio geerated: 13 : 00 Jauary 17, 019 Cotets
More informationCOS 341 Discrete Mathematics. Exponential Generating Functions and Recurrence Relations
COS 341 Discrete Mathematics Epoetial Geeratig Fuctios ad Recurrece Relatios 1 Tetbook? 1 studets said they eeded the tetbook, but oly oe studet bought the tet from Triagle. If you do t have the book,
More information4.3 Growth Rates of Solutions to Recurrences
4.3. GROWTH RATES OF SOLUTIONS TO RECURRENCES 81 4.3 Growth Rates of Solutios to Recurreces 4.3.1 Divide ad Coquer Algorithms Oe of the most basic ad powerful algorithmic techiques is divide ad coquer.
More informationSequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018
CSE 353 Discrete Computatioal Structures Sprig 08 Sequeces, Mathematical Iductio, ad Recursio (Chapter 5, Epp) Note: some course slides adopted from publisher-provided material Overview May mathematical
More informationCSE 21 Mathematics for
CSE 2 Mathematics for Algorithm ad System Aalysis Summer, 2005 Outlie What a geeratig fuctio is How to create a geeratig fuctio to model a problem Fidig the desired coefficiet Partitios Expoetial geeratig
More informationMT5821 Advanced Combinatorics
MT5821 Advaced Combiatorics 9 Set partitios ad permutatios It could be said that the mai objects of iterest i combiatorics are subsets, partitios ad permutatios of a fiite set. We have spet some time coutig
More informationBooks Recommended for Further Reading
Books Recommeded for Further Readig by 8.5..8 o 0//8. For persoal use oly.. K. P. Bogart, Itroductory Combiatorics rd ed., S. I. Harcourt Brace College Publishers, 998.. R. A. Brualdi, Itroductory Combiatorics
More informationDiscrete Mathematics Recurrences
Discrete Mathematics Recurreces Saad Meimeh 1 What is a recurrece? It ofte happes that, i studyig a sequece of umbers a, a coectio betwee a ad a 1, or betwee a ad several of the previous a i, i
More informationRandom Models. Tusheng Zhang. February 14, 2013
Radom Models Tusheg Zhag February 14, 013 1 Radom Walks Let me describe the model. Radom walks are used to describe the motio of a movig particle (object). Suppose that a particle (object) moves alog the
More informationLecture Overview. 2 Permutations and Combinations. n(n 1) (n (k 1)) = n(n 1) (n k + 1) =
COMPSCI 230: Discrete Mathematics for Computer Sciece April 8, 2019 Lecturer: Debmalya Paigrahi Lecture 22 Scribe: Kevi Su 1 Overview I this lecture, we begi studyig the fudametals of coutig discrete objects.
More informationPermutations & Combinations. Dr Patrick Chan. Multiplication / Addition Principle Inclusion-Exclusion Principle Permutation / Combination
Discrete Mathematic Chapter 3: C outig 3. The Basics of Coutig 3.3 Permutatios & Combiatios 3.5 Geeralized Permutatios & Combiatios 3.6 Geeratig Permutatios & Combiatios Dr Patrick Cha School of Computer
More informationSums, products and sequences
Sums, products ad sequeces How to write log sums, e.g., 1+2+ (-1)+ cocisely? i=1 Sum otatio ( sum from 1 to ): i 3 = 1 + 2 + + If =3, i=1 i = 1+2+3=6. The ame ii does ot matter. Could use aother letter
More informationAnalysis of Algorithms. Introduction. Contents
Itroductio The focus of this module is mathematical aspects of algorithms. Our mai focus is aalysis of algorithms, which meas evaluatig efficiecy of algorithms by aalytical ad mathematical methods. We
More informationIn number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.
Number Theory Math 5840 otes. Sectio 1: Axioms. I umber theory we will geerally be workig with itegers, though occasioally fractios ad irratioals will come ito play. Notatio: Z deotes the set of all itegers
More informationDavid Vella, Skidmore College.
David Vella, Skidmore College dvella@skidmore.edu Geeratig Fuctios ad Expoetial Geeratig Fuctios Give a sequece {a } we ca associate to it two fuctios determied by power series: Its (ordiary) geeratig
More informationMAT1026 Calculus II Basic Convergence Tests for Series
MAT026 Calculus II Basic Covergece Tests for Series Egi MERMUT 202.03.08 Dokuz Eylül Uiversity Faculty of Sciece Departmet of Mathematics İzmir/TURKEY Cotets Mootoe Covergece Theorem 2 2 Series of Real
More informationSequences of Definite Integrals, Factorials and Double Factorials
47 6 Joural of Iteger Sequeces, Vol. 8 (5), Article 5.4.6 Sequeces of Defiite Itegrals, Factorials ad Double Factorials Thierry Daa-Picard Departmet of Applied Mathematics Jerusalem College of Techology
More informationMath 61CM - Solutions to homework 3
Math 6CM - Solutios to homework 3 Cédric De Groote October 2 th, 208 Problem : Let F be a field, m 0 a fixed oegative iteger ad let V = {a 0 + a x + + a m x m a 0,, a m F} be the vector space cosistig
More informationMATH 304: MIDTERM EXAM SOLUTIONS
MATH 304: MIDTERM EXAM SOLUTIONS [The problems are each worth five poits, except for problem 8, which is worth 8 poits. Thus there are 43 possible poits.] 1. Use the Euclidea algorithm to fid the greatest
More informationIt is always the case that unions, intersections, complements, and set differences are preserved by the inverse image of a function.
MATH 532 Measurable Fuctios Dr. Neal, WKU Throughout, let ( X, F, µ) be a measure space ad let (!, F, P ) deote the special case of a probability space. We shall ow begi to study real-valued fuctios defied
More informationM A T H F A L L CORRECTION. Algebra I 1 4 / 1 0 / U N I V E R S I T Y O F T O R O N T O
M A T H 2 4 0 F A L L 2 0 1 4 HOMEWORK ASSIGNMENT #4 CORRECTION Algebra I 1 4 / 1 0 / 2 0 1 4 U N I V E R S I T Y O F T O R O N T O P r o f e s s o r : D r o r B a r - N a t a Correctio Homework Assigmet
More informationCHAPTER 5. Theory and Solution Using Matrix Techniques
A SERIES OF CLASS NOTES FOR 2005-2006 TO INTRODUCE LINEAR AND NONLINEAR PROBLEMS TO ENGINEERS, SCIENTISTS, AND APPLIED MATHEMATICIANS DE CLASS NOTES 3 A COLLECTION OF HANDOUTS ON SYSTEMS OF ORDINARY DIFFERENTIAL
More informationarxiv: v1 [math.co] 23 Mar 2016
The umber of direct-sum decompositios of a fiite vector space arxiv:603.0769v [math.co] 23 Mar 206 David Ellerma Uiversity of Califoria at Riverside August 3, 208 Abstract The theory of q-aalogs develops
More informationLinear Differential Equations of Higher Order Basic Theory: Initial-Value Problems d y d y dy
Liear Differetial Equatios of Higher Order Basic Theory: Iitial-Value Problems d y d y dy Solve: a( ) + a ( )... a ( ) a0( ) y g( ) + + + = d d d ( ) Subject to: y( 0) = y0, y ( 0) = y,..., y ( 0) = y
More information(ii) Two-permutations of {a, b, c}. Answer. (B) P (3, 3) = 3! (C) 3! = 6, and there are 6 items in (A). ... Answer.
SOLUTIONS Homewor 5 Due /6/19 Exercise. (a Cosider the set {a, b, c}. For each of the followig, (A list the objects described, (B give a formula that tells you how may you should have listed, ad (C verify
More informationAxioms of Measure Theory
MATH 532 Axioms of Measure Theory Dr. Neal, WKU I. The Space Throughout the course, we shall let X deote a geeric o-empty set. I geeral, we shall ot assume that ay algebraic structure exists o X so that
More informationProperties and Tests of Zeros of Polynomial Functions
Properties ad Tests of Zeros of Polyomial Fuctios The Remaider ad Factor Theorems: Sythetic divisio ca be used to fid the values of polyomials i a sometimes easier way tha substitutio. This is show by
More informationSequences, Sums, and Products
CSCE 222 Discrete Structures for Computig Sequeces, Sums, ad Products Dr. Philip C. Ritchey Sequeces A sequece is a fuctio from a subset of the itegers to a set S. A discrete structure used to represet
More informationSNAP Centre Workshop. Basic Algebraic Manipulation
SNAP Cetre Workshop Basic Algebraic Maipulatio 8 Simplifyig Algebraic Expressios Whe a expressio is writte i the most compact maer possible, it is cosidered to be simplified. Not Simplified: x(x + 4x)
More informationCIS 121 Data Structures and Algorithms with Java Spring Code Snippets and Recurrences Monday, February 4/Tuesday, February 5
CIS 11 Data Structures ad Algorithms with Java Sprig 019 Code Sippets ad Recurreces Moday, February 4/Tuesday, February 5 Learig Goals Practice provig asymptotic bouds with code sippets Practice solvig
More informationLet us consider the following problem to warm up towards a more general statement.
Lecture 4: Sequeces with repetitios, distributig idetical objects amog distict parties, the biomial theorem, ad some properties of biomial coefficiets Refereces: Relevat parts of chapter 15 of the Math
More informationComplex Numbers Solutions
Complex Numbers Solutios Joseph Zoller February 7, 06 Solutios. (009 AIME I Problem ) There is a complex umber with imagiary part 64 ad a positive iteger such that Fid. [Solutio: 697] 4i + + 4i. 4i 4i
More informationBasic Counting. Periklis A. Papakonstantinou. York University
Basic Coutig Periklis A. Papakostatiou York Uiversity We survey elemetary coutig priciples ad related combiatorial argumets. This documet serves oly as a remider ad by o ways does it go i depth or is it
More informationNICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =
AN INTRODUCTION TO SCHRÖDER AND UNKNOWN NUMBERS NICK DUFRESNE Abstract. I this article we will itroduce two types of lattice paths, Schröder paths ad Ukow paths. We will examie differet properties of each,
More informationLecture notes for Enumerative Combinatorics
Lecture otes for Eumerative Combiatorics Aa de Mier Uiversity of Oxford Michaelmas Term 2004 Cotets Subsets, multisets, ad balls-i-bis 3. Words ad permutatios............................. 3.2 Subsets ad
More information6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer.
6 Itegers Modulo I Example 2.3(e), we have defied the cogruece of two itegers a,b with respect to a modulus. Let us recall that a b (mod ) meas a b. We have proved that cogruece is a equivalece relatio
More informationLesson 10: Limits and Continuity
www.scimsacademy.com Lesso 10: Limits ad Cotiuity SCIMS Academy 1 Limit of a fuctio The cocept of limit of a fuctio is cetral to all other cocepts i calculus (like cotiuity, derivative, defiite itegrals
More information( ) GENERATING FUNCTIONS
GENERATING FUNCTIONS Solve a ifiite umber of related problems i oe swoop. *Code the problems, maipulate the code, the decode the aswer! Really a algebraic cocept but ca be eteded to aalytic basis for iterestig
More informationTest One (Answer Key)
CS395/Ma395 (Sprig 2005) Test Oe Name: Page 1 Test Oe (Aswer Key) CS395/Ma395: Aalysis of Algorithms This is a closed book, closed otes, 70 miute examiatio. It is worth 100 poits. There are twelve (12)
More informationCS284A: Representations and Algorithms in Molecular Biology
CS284A: Represetatios ad Algorithms i Molecular Biology Scribe Notes o Lectures 3 & 4: Motif Discovery via Eumeratio & Motif Represetatio Usig Positio Weight Matrix Joshua Gervi Based o presetatios by
More informationThis Lecture. Divide and Conquer. Merge Sort: Algorithm. Merge Sort Algorithm. MergeSort (Example) - 1. MergeSort (Example) - 2
This Lecture Divide-ad-coquer techique for algorithm desig. Example the merge sort. Writig ad solvig recurreces Divide ad Coquer Divide-ad-coquer method for algorithm desig: Divide: If the iput size is
More informationTEACHER CERTIFICATION STUDY GUIDE
COMPETENCY 1. ALGEBRA SKILL 1.1 1.1a. ALGEBRAIC STRUCTURES Kow why the real ad complex umbers are each a field, ad that particular rigs are ot fields (e.g., itegers, polyomial rigs, matrix rigs) Algebra
More informationClassification of problem & problem solving strategies. classification of time complexities (linear, logarithmic etc)
Classificatio of problem & problem solvig strategies classificatio of time complexities (liear, arithmic etc) Problem subdivisio Divide ad Coquer strategy. Asymptotic otatios, lower boud ad upper boud:
More informationSorting Algorithms. Algorithms Kyuseok Shim SoEECS, SNU.
Sortig Algorithms Algorithms Kyuseo Shim SoEECS, SNU. Desigig Algorithms Icremetal approaches Divide-ad-Coquer approaches Dyamic programmig approaches Greedy approaches Radomized approaches You are ot
More informationZeros of Polynomials
Math 160 www.timetodare.com 4.5 4.6 Zeros of Polyomials I these sectios we will study polyomials algebraically. Most of our work will be cocered with fidig the solutios of polyomial equatios of ay degree
More informationCSE 1400 Applied Discrete Mathematics Number Theory and Proofs
CSE 1400 Applied Discrete Mathematics Number Theory ad Proofs Departmet of Computer Scieces College of Egieerig Florida Tech Sprig 01 Problems for Number Theory Backgroud Number theory is the brach of
More informationCourse : Algebraic Combinatorics
Course 8.32: Algebraic Combiatorics Lecture Notes # Addedum by Gregg Musier February 4th - 6th, 2009 Recurrece Relatios ad Geeratig Fuctios Give a ifiite sequece of umbers, a geeratig fuctio is a compact
More informationInjections, Surjections, and the Pigeonhole Principle
Ijectios, Surjectios, ad the Pigeohole Priciple 1 (10 poits Here we will come up with a sloppy boud o the umber of parethesisestigs (a (5 poits Describe a ijectio from the set of possible ways to est pairs
More informationDivide & Conquer. Divide-and-conquer algorithms. Conventional product of polynomials. Conventional product of polynomials.
Divide-ad-coquer algorithms Divide & Coquer Strategy: Divide the problem ito smaller subproblems of the same type of problem Solve the subproblems recursively Combie the aswers to solve the origial problem
More informationEnd-of-Year Contest. ERHS Math Club. May 5, 2009
Ed-of-Year Cotest ERHS Math Club May 5, 009 Problem 1: There are 9 cois. Oe is fake ad weighs a little less tha the others. Fid the fake coi by weighigs. Solutio: Separate the 9 cois ito 3 groups (A, B,
More information62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +
62. Power series Defiitio 16. (Power series) Give a sequece {c }, the series c x = c 0 + c 1 x + c 2 x 2 + c 3 x 3 + is called a power series i the variable x. The umbers c are called the coefficiets of
More informationAlgorithms and Data Structures Lecture IV
Algorithms ad Data Structures Lecture IV Simoas Šalteis Aalborg Uiversity simas@cs.auc.dk September 5, 00 1 This Lecture Aalyzig the ruig time of recursive algorithms (such as divide-ad-coquer) Writig
More informationCS / MCS 401 Homework 3 grader solutions
CS / MCS 401 Homework 3 grader solutios assigmet due July 6, 016 writte by Jāis Lazovskis maximum poits: 33 Some questios from CLRS. Questios marked with a asterisk were ot graded. 1 Use the defiitio of
More information5. Recurrences. The recursive denition of the Fibonacci numbers is well-known: if F n is the n th Fibonacci number, then
5. Recurreces The recursive deitio of the Fiboacci umbers is well-kow: if F is the th Fiboacci umber, the F 0 = 0, F 1 = 1, F + = F +1 + F, if 0. We are iterested i a explicit form of the umbers F for
More information3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,
3. Z Trasform Referece: Etire Chapter 3 of text. Recall that the Fourier trasform (FT) of a DT sigal x [ ] is ω ( ) [ ] X e = j jω k = xe I order for the FT to exist i the fiite magitude sese, S = x [
More information1 Hash tables. 1.1 Implementation
Lecture 8 Hash Tables, Uiversal Hash Fuctios, Balls ad Bis Scribes: Luke Johsto, Moses Charikar, G. Valiat Date: Oct 18, 2017 Adapted From Virgiia Williams lecture otes 1 Hash tables A hash table is a
More informationCALCULATION OF FIBONACCI VECTORS
CALCULATION OF FIBONACCI VECTORS Stuart D. Aderso Departmet of Physics, Ithaca College 953 Daby Road, Ithaca NY 14850, USA email: saderso@ithaca.edu ad Dai Novak Departmet of Mathematics, Ithaca College
More informationCS583 Lecture 02. Jana Kosecka. some materials here are based on E. Demaine, D. Luebke slides
CS583 Lecture 02 Jaa Kosecka some materials here are based o E. Demaie, D. Luebke slides Previously Sample algorithms Exact ruig time, pseudo-code Approximate ruig time Worst case aalysis Best case aalysis
More informationAddition: Property Name Property Description Examples. a+b = b+a. a+(b+c) = (a+b)+c
Notes for March 31 Fields: A field is a set of umbers with two (biary) operatios (usually called additio [+] ad multiplicatio [ ]) such that the followig properties hold: Additio: Name Descriptio Commutativity
More informationOptimally Sparse SVMs
A. Proof of Lemma 3. We here prove a lower boud o the umber of support vectors to achieve geeralizatio bouds of the form which we cosider. Importatly, this result holds ot oly for liear classifiers, but
More information1 Summary: Binary and Logic
1 Summary: Biary ad Logic Biary Usiged Represetatio : each 1-bit is a power of two, the right-most is for 2 0 : 0110101 2 = 2 5 + 2 4 + 2 2 + 2 0 = 32 + 16 + 4 + 1 = 53 10 Usiged Rage o bits is [0...2
More information1 Counting and Stirling Numbers
1 Coutig ad Stirlig Numbers Natural Numbers: We let N {0, 1, 2,...} deote the set of atural umbers. []: For N we let [] {1, 2,..., }. Sym: For a set X we let Sym(X) deote the set of bijectios from X to
More informationProblem 4: Evaluate ( k ) by negating (actually un-negating) its upper index. Binomial coefficient
Problem 4: Evaluate by egatig actually u-egatig its upper idex We ow that Biomial coefficiet r { where r is a real umber, is a iteger The above defiitio ca be recast i terms of factorials i the commo case
More information+ au n+1 + bu n = 0.)
Lecture 6 Recurreces - kth order: u +k + a u +k +... a k u k 0 where a... a k are give costats, u 0... u k are startig coditios. (Simple case: u + au + + bu 0.) How to solve explicitly - first, write characteristic
More informationChapter 9: Numerical Differentiation
178 Chapter 9: Numerical Differetiatio Numerical Differetiatio Formulatio of equatios for physical problems ofte ivolve derivatives (rate-of-chage quatities, such as velocity ad acceleratio). Numerical
More informationRoger Apéry's proof that zeta(3) is irrational
Cliff Bott cliffbott@hotmail.com 11 October 2011 Roger Apéry's proof that zeta(3) is irratioal Roger Apéry developed a method for searchig for cotiued fractio represetatios of umbers that have a form such
More informationOn the Linear Complexity of Feedback Registers
O the Liear Complexity of Feedback Registers A. H. Cha M. Goresky A. Klapper Northeaster Uiversity Abstract I this paper, we study sequeces geerated by arbitrary feedback registers (ot ecessarily feedback
More informationA Combinatoric Proof and Generalization of Ferguson s Formula for k-generalized Fibonacci Numbers
Jue 5 00 A Combiatoric Proof ad Geeralizatio of Ferguso s Formula for k-geeralized Fiboacci Numbers David Kessler 1 ad Jeremy Schiff 1 Departmet of Physics Departmet of Mathematics Bar-Ila Uiversity, Ramat
More informationAn Introduction to Randomized Algorithms
A Itroductio to Radomized Algorithms The focus of this lecture is to study a radomized algorithm for quick sort, aalyze it usig probabilistic recurrece relatios, ad also provide more geeral tools for aalysis
More informationChapter 4. Fourier Series
Chapter 4. Fourier Series At this poit we are ready to ow cosider the caoical equatios. Cosider, for eample the heat equatio u t = u, < (4.) subject to u(, ) = si, u(, t) = u(, t) =. (4.) Here,
More informationCombinatorially Thinking
Combiatorially Thiig SIMUW 2008: July 4 25 Jeifer J Qui jjqui@uwashigtoedu Philosophy We wat to costruct our mathematical uderstadig To this ed, our goal is to situate our problems i cocrete coutig cotexts
More informationCOMP26120: More on the Complexity of Recursive Programs (2018/19) Lucas Cordeiro
COMP26120: More o the Complexity of Recursive Programs (2018/19) Lucas Cordeiro lucas.cordeiro@machester.ac.uk Divide-ad-Coquer (Recurrece) Textbook: Algorithm Desig ad Applicatios, Goodrich, Michael T.
More informationSEQUENCE AND SERIES NCERT
9. Overview By a sequece, we mea a arragemet of umbers i a defiite order accordig to some rule. We deote the terms of a sequece by a, a,..., etc., the subscript deotes the positio of the term. I view of
More informationChapter 6 Infinite Series
Chapter 6 Ifiite Series I the previous chapter we cosidered itegrals which were improper i the sese that the iterval of itegratio was ubouded. I this chapter we are goig to discuss a topic which is somewhat
More informationSection 6.4: Series. Section 6.4 Series 413
ectio 64 eries 4 ectio 64: eries A couple decides to start a college fud for their daughter They pla to ivest $50 i the fud each moth The fud pays 6% aual iterest, compouded mothly How much moey will they
More informationSOLVED EXAMPLES
Prelimiaries Chapter PELIMINAIES Cocept of Divisibility: A o-zero iteger t is said to be a divisor of a iteger s if there is a iteger u such that s tu I this case we write t s (i) 6 as ca be writte as
More informationECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations
ECE-S352 Itroductio to Digital Sigal Processig Lecture 3A Direct Solutio of Differece Equatios Discrete Time Systems Described by Differece Equatios Uit impulse (sample) respose h() of a DT system allows
More informationSubject: Differential Equations & Mathematical Modeling-III
Power Series Solutios of Differetial Equatios about Sigular poits Subject: Differetial Equatios & Mathematical Modelig-III Lesso: Power series solutios of differetial equatios about Sigular poits Lesso
More informationA recurrence equation is just a recursive function definition. It defines a function at one input in terms of its value on smaller inputs.
CS23 Algorithms Hadout #6 Prof Ly Turbak September 8, 200 Wellesley College RECURRENCES This hadout summarizes highlights of CLRS Chapter 4 ad Appedix A (CLR Chapters 3 & 4) Two-Step Strategy for Aalyzig
More information