Combinatorics II. Combinatorics. Product Rule. Sum Rule II. Theorem (Product Rule) Theorem (Sum Rule)

Save this PDF as:
 WORD  PNG  TXT  JPG

Size: px
Start display at page:

Download "Combinatorics II. Combinatorics. Product Rule. Sum Rule II. Theorem (Product Rule) Theorem (Sum Rule)"

Transcription

1 Combiatorics Combiatorics I Slides by Christopher M. Bourke Istructor: Berthe Y. Choueiry Sprig 26 Computer Sciece & Egieerig 235 to Discrete Mathematics Sectios & of Rose Combiatorics is the study of collectios of objects. Specifically, coutig objects, arragemet, deragemet, etc. of objects alog with their mathematical properties. Coutig objects is importat i order to aalyze algorithms ad compute discrete probabilities. Origially, combiatorics was motivated by gamblig: coutig cofiguratios is essetial to elemetary probability. Combiatorics II Product Rule A simple example: How may arragemets are there of a deck of 52 cards? I additio, combiatorics ca be used as a proof techique. A combiatorial proof is a proof method that uses coutig argumets to prove a statemet. If two evets are ot mutually exclusive (that is, we do them separately), the we apply the product rule. (Product Rule) Suppose a procedure ca be accomplished with two disjoit subtasks. If there are ways of doig the first task ad 2 ways of doig the secod, the there are 2 ways of doig the overall procedure. Sum Rule I Sum Rule II If two evets are mutually exclusive, that is, they caot be doe at the same time, the we must apply the sum rule. (Sum Rule) If a evet e ca be doe i ways ad a evet e 2 ca be doe i 2 ways ad e ad e 2 are mutually exclusive, the the umber of ways of both evets occurrig is + 2 There is a atural geeralizatio to ay sequece of m tasks; amely the umber of ways m mutually exclusive evets ca occur is m + m We ca give aother formulatio i terms of sets. Let A, A 2,..., A m be pairwise disjoit sets. The A A 2 A m A + A A m I fact, this is a special case of the geeral Priciple of Iclusio-Exclusio.

2 Priciple of Iclusio-Exclusio (PIE) I Priciple of Iclusio-Exclusio (PIE) II We caot use the sum rule because we would be over coutig the umber of possible outcomes. Say there are two evets, e ad e 2 for which there are ad 2 possible outcomes respectively. Now, say that oly oe evet ca occur, ot both. I this situatio, we caot apply the sum rule? Why? Istead, we have to cout the umber of possible outcomes of e ad e 2 mius the umber of possible outcomes i commo to both; i.e. the umber of ways to do both tasks. If agai we thik of them as sets, we have A + A 2 A A 2 Priciple of Iclusio-Exclusio (PIE) III More geerally, we have the followig. Lemma Let A, B be subsets of a fiite set U. The. A B A + B A B 2. A B mi{ A, B } 3. A \ B A A B A B 4. A U A 5. A B A B A B A+B 2 A B A\B + B\A 6. A B A B Priciple of Iclusio-Exclusio (PIE) I Let A, A 2,..., A be fiite sets, the A A 2 A i A i A i A j i<j + A i A j A k i<j<k +( ) + A A 2 A Priciple of Iclusio-Exclusio (PIE) II Priciple of Iclusio-Exclusio (PIE) III To illustrate, whe 3, we have Each summatio is over all i, pairs i, j with i < j, triples i, j, k with i < j < k etc. A A 2 A 3 A + A 2 + A 3 [ A A 2 + A A 3 + A 2 A 3 ] + A A 2 A 3

3 Priciple of Iclusio-Exclusio (PIE) IV Priciple of Iclusio-Exclusio (PIE) I I To illustrate, whe 4, we have A A 2 A 3 A 4 A + A 2 + A 3 + A 4 [ A A 2 + A A A A 4 ] A 2 A 3 + A 2 A 4 + A 3 A 4 [ + A A 2 A 3 + A A 2 A 4 + ] A A 3 A 4 + A 2 A 3 A 4 A A 2 A 3 A 4 How may itegers betwee ad 3 (iclusive) are Let. Divisible by at least oe of 3, 5, 7? 2. Divisible by 3 ad by 5 but ot by 7? 3. Divisible by 5 but by either 3 or 7? A { 3 3 } B { 3 5 } C { 3 7 } Priciple of Iclusio-Exclusio (PIE) II I Priciple of Iclusio-Exclusio (PIE) III I How big are each of these sets? We ca easily use the floor fuctio; A 3/3 B 3/5 6 C 3/7 42 For () above, we are asked to fid A B C. By the priciple of iclusio-exclusio, we have that A B C A + B + C [ ] A B + A C + B C + A B C It remais to fid the fial 4 cardialities. All three divisors, 3, 5, 7 are relatively prime. Thus, ay iteger that is divisible by both 3 ad 5 must simply be divisible by 5. Priciple of Iclusio-Exclusio (PIE) IV I Priciple of Iclusio-Exclusio (PIE) V I Usig the same reasoig for all pairs (ad the triple) we have Therefore, A B 3/5 2 A C 3/2 4 B C 3/35 8 A B C 3/5 2 For (2) above, it is eough to fid (A B) \ C By the defiitio of set-mius, (A B) \ C A B A B C A B C

4 Priciple of Iclusio-Exclusio (PIE) VI I For (3) above, we are asked to fid B \ (A C) B B (A C) By distributig B over the itersectio, we get B (A C) (B A) (B C) B A + B C (B A) (B C) B A + B C B A C So the aswer is B Priciple of Iclusio-Exclusio (PIE) I II The priciple of iclusio-exclusio ca be used to cout the umber of oto fuctios. Let A, B be o-empty sets of cardiality m, with m. The there are ( ) ( ) ( ) m ( ) m + ( 2) m + ( ) m 2 i.e. i ( )i( i) ( i) m oto fuctios f : A B. See textbook page 46. Priciple of Iclusio-Exclusio (PIE) II II Priciple of Iclusio-Exclusio (PIE) III II How may ways of givig out 6 pieces of cady to 3 childre if each child must receive at least oe piece? This ca be modeled by lettig A represet the set of cadies ad B be the set of childre. To cout how may there are, we apply the theorem ad get (for m 6, 3), 3 6 ( ) 3 ( ) 3 (3 ) (3 2) 6 54 The a fuctio f : A B ca be iterpreted as givig cady a i to child c j. Sice each child must receive at least oe cady, we are cosiderig oly oto fuctios. Deragemets I Deragemets II Cosider the hatcheck problem. A employee checks hats from customers. However, he forgets to tag them. Whe customer s check-out their hats, they are give oe at radom. What is the probability that o oe will get their hat back? This ca be modeled usig deragemets: permutatios of objects such that o elemet is i its origial positio. For example, 2453 is a deragemet of 2345, but 2543 is ot. The umber of deragemets of a set with elemets is [ D!! + 2! 3! + ] ( )! See textbook page 46.

5 Deragemets III The Pigeohole Priciple I Thus, the aswer to the hatcheck problem is Its iterestig to ote that D! e! + 2! 3! + + ( )! So that the probability of the hatcheck problem coverges; D lim e ! The pigeohole priciple states that if there are more pigeos tha there are roosts (pigeoholes), for at least oe pigeohole, more tha two pigeos must be i it. (Pigeohole Priciple) If k + or more objects are placed ito k boxes, the there is at least oe box cotaiig two ore more objects. This is a fudametal tool of elemetary discrete mathematics. It is also kow as the Dirichlet Drawer Priciple. The Pigeohole Priciple II Geeralized Pigeohole Priciple I It is seemigly simple, but very powerful. The difficulty comes i where ad how to apply it. Some simple applicatios i computer sciece: Calculatig the probability of Hash fuctios havig a collisio. Provig that there ca be o lossless compressio algorithm compressig all files to withi a certai ratio. Lemma For two fiite sets A, B there exists a bijectio f : A B if ad oly if A B. If N objects are placed ito k boxes the there is at least oe box cotaiig at least N k I ay group of 367 or more people, at least two of them must have bee bor o the same date. Geeralized Pigeohole Priciple II Geeralized Pigeohole Priciple III A probabilistic geeralizatio states that if objects are radomly put ito m boxes with uiform probability (each object is placed i a give box with probability /m) the at least oe box will hold more tha oe object with probability, m! (m )!m Amog people, what is the probability that two or more will have the same birthday? Here, ad m 365 (igore leapyears). Thus, the probability that two will have the same birthday is 365!.69 (365 )!365 So less tha a 2% probability!

6 Pigeohole Priciple I I Pigeohole Priciple II I Show that i a room of people with certai acquaitaces, some pair must have the same umber of acquaitaces. Note that this is equivalet to showig that ay symmetric, irreflexive relatio o elemets must have two elemets with the same umber of relatios. We ll show by cotradictio usig the pigeohole priciple. Assume to the cotrary that every perso has a differet umber of acquaitaces;,,..., (we caot have here because it is irreflexive). Are we doe? No, sice we oly have people, this is okay (i.e. there are possibilities). We eed to use the fact that acquaitaceship is a symmetric, irreflexive relatio. I particular, some perso kows people while aother kows people. I other words, someoe kows everyoe, but there is also a perso that kows o oe. Thus, we have reached a cotradictio. Pigeohole Priciple I II Show that i ay list of te oegative itegers, A,..., A 9, there is a strig of cosecutive items of the list a l, a l+,... whose sum is divisible by. Cosider the followig umbers. a a + a a + a + a 2. a + a + a a 9 Pigeohole Priciple II II Otherwise, we observe that each of these umbers must be i oe of the cogruece classes mod, 2 mod,..., 9 mod By the pigeohole priciple, at least two of the itegers above must lie i the same cogruece class. Say a, a lie i the cogruece class k mod. The (a a ) k k(mod ) ad so the differece (a a ) is divisible by. If ay oe of them is divisible by the we are doe. Pigeohole Priciple I III Say 3 buses are to trasport 2 Corhusker fas to Colorado. Each bus has 8 seats. Show that. Oe of the buses will have 4 empty seats. 2. Oe of the buses will carry at least 67 passegers. For (), the total umber of seats is seats. Thus there will be empty seats total. Pigeohole Priciple II III By the geeralized pigeohole priciple, with 4 empty seats amog 3 buses, oe bus will have at least empty seats. For (2) above, by the pigeohole priciple, seatig 2 passegers amog 3 buses, oe will have at least passegers.

7 Permutatios I Permutatios II A permutatio of a set of distict objects is a ordered arragemet of these objects. A ordered arragemet of r elemets of a set is called a r-permutatio. The umber of r permutatios of a set with distict elemets is r P (, r) ( i) ( )( 2) ( r + ) i It follows that I particular, P (, r)! ( r)! P (, )! Agai, ote here that order is importat. It is ecessary to distiguish i what cases order is importat ad i which it is ot. Permutatios I Permutatios II How may pairs of dace parters ca be selected from a group of 2 wome ad 2 me? The first woma ca be partered with ay of the 2 me. The secod with ay of the remaiig 9, etc. To parter all 2 wome, we have P (2, 2) I how may ways ca the Eglish letters be arraged so that there are exactly te letters betwee a ad z? The umber of ways of arragig letters betwee a ad z is P (24, ). Sice we ca choose either a or z to come first, there are 2P (24, ) arragemets of this 2-letter block. For the remaiig 4 letters, there are P (5, 5) 5! arragemets. I all, there are 2P (24, ) 5! Permutatios III Permutatios III - Cotiued How may permutatios of the letters a, b, c, d, e, f, g cotai either the patter bge or eaf? The umber of total permutatios is P (7, 7) 7!. If we fix the patter bge, the we ca cosider it as a sigle block. Thus, the umber of permutatios with this patter is P (5, 5) 5!. Fixig the patter eaf we have the same umber, 5!. Thus we have Is this correct? 7! 2(5!) No. We have take away too may permutatios: oes cotaiig both eaf ad bge. Here there are two cases, whe eaf comes first ad whe bge comes first.

8 Permutatios III - Cotiued Combiatios I Defiitio eaf caot come before bge, so this is ot a problem. If bge comes first, it must be the case that we have bgeaf as a sigle block ad so we have 3 blocks or 3! arragemets. Altogether we have 7! 2(5!) + 3! 486 Whereas permutatios cosider order, combiatios are used whe order does ot matter. Defiitio A k-combiatio of elemets of a set is a uordered selectio of k elemets from the set. A combiatio is simply a subset of cardiality k. Combiatios II Defiitio Combiatios III Defiitio The umber of k-combiatios of a set with cardiality with k is ( )! C(, k) k ( k)!k! Note: the otatio, ( k) is read, choose k. I T EX use { choose k} (with the forward slash). A useful fact about combiatios is that they are symmetric. etc. ( ) ( ) ( ) ( ) 2 2 Combiatios IV Defiitio Combiatios I I This is formalized i the followig corollary. Corollary Let, k be oegative itegers with k, the ( ) ( ) k k I the Powerball lottery, you pick five umbers betwee ad 55 ad a sigle powerball umber betwee ad 42. How may possible plays are there? Order here does t matter, so the umber of ways of choosig five regular umbers is ( ) 55 5

9 Combiatios II I Combiatios I II We ca choose amog 42 power ball umbers. These evets are ot mutually exclusive, thus we use the product rule. ( ) 55 55! , 7, (55 5)!5! So the odds of wiig are 46, 7, 962 <.6845 I a sequece of coi tosses, how may ways ca 3 heads ad 7 tails come up? The umber of ways of choosig 3 heads out of coi tosses is ( ) 3 Combiatios II II Combiatios I III However, this is the same as choosig 7 tails out of coi tosses; ( ) 3 ( ) 2 7 This is a perfect illustratio of the previous corollary. How may possible committees of five people ca be chose from 2 me ad 2 wome if. if exactly three me must be o each committee? 2. if at least four wome must be o each committee? Combiatios II III Combiatios III III For (), we must choose 3 me from 2 the two wome from 2. These are ot mutually exclusive, thus the product rule applies. ( )( ) For (2), we cosider two cases; the case where four wome are chose ad the case where five wome are chose. These two cases are mutually exclusive so we use the additio rule. For the first case we have ( )( ) 2 2 4

10 Combiatios IV III Biomial Coefficiets I Ad for the secod we have ( )( ) Together we have ( 2 )( 2 4 ) + ( 2 )( 2 5 ), 692 The umber of r-combiatios, ( r) is also called a biomial coefficiet. They are the coefficiets i the expasio of the expressio (multivariate polyomial), (x + y). A biomial is a sum of two terms. Biomial Coefficiets II Biomial Coefficiets III Expadig the summatio, we have (Biomial ) Let x, y be variables ad let be a oegative iteger. The (x + y) j ( ) x j y j j For example, (x + y) ( ) x + ( ) x y + ( 2) x 2 y ( ) xy + ( ) y (x + y) 3 (x + y)(x + y)(x + y) (x + y)(x 2 + 2xy + y 2 ) x 3 + 3x 2 y + 3xy 2 + y 3 Biomial Coefficiets I What is the coefficiet of the term x 8 y 2 i the expasio of (3x + 4y) 2? Biomial Coefficiets I More May useful idetities ad facts come from the Biomial. Corollary By the Biomial, we have 2 ( ) 2 (3x + 4y) j (3x) 2 j (4y) j j So whe j 2, we have ( ) 2 (3x) 8 (4y) 2 2 ( ) k k ( ) ( ) k k ( ) 2 k k k k 2 3 so the coefficiet is 2! 2!8!

11 Biomial Coefficiets II More Biomial Coefficiets III More Most of these ca be prove by either iductio or by a combiatorial argumet. Check textbook for proofs, which are based o: 2 ( + ), (( ) + ), 3 ( + 2). (Vadermode s Idetity) Let m,, r be oegative itegers with r ot exceedig either m or. The ( ) m + r ( )( ) m r r k k k Biomial Coefficiets IV More Biomial Coefficiets V More Takig m r i the Vadermode s idetity. Corollary If is a oegative iteger, the ( ) 2 k ( ) 2 k Let, r be oegative itegers, r. The ( ) + r + jr ( ) j r Corollary Biomial Coefficiets I Pascal s Idetity & Triagle Pascal s Triagle The followig is kow as Pascal s Idetity which gives a useful idetity for efficietly computig biomial coefficiets. (Pascal s Idetity) Let, k Z + with k. The ( ) ( ) + k k + ( ) k Pascal s Idetity forms the basis of a geometric object kow as Pascal s Triagle. ( ) ( ) ( ) ( 2 ) ( 2 ) ( 2 2) ( 3 ) ( 3 ) ( 3 ) ( 3 2 3) ( 4 ) ( 4 ) ( 4 ) ( 4 ) ( ) ( )

12 Pascal s Triagle Pascal s Triagle ( ) ( ) ( ) ( 2 ) ( 2 ) ( 2 2) ( 3 ) ( 3 ) ( 3 ) ( 3 2 3) ( 3 ) ( ) ( 3 4 3) ( 4 ) ( 4 ) ( 4 ) ( 4 ) ( ) ( ) Geeralized Combiatios & Permutatios I Geeralized Combiatios & Permutatios II Sometimes we are cocered with permutatios ad combiatios i which repetitios are allowed. The umber of r-permutatios of a set of objects with repetitio allowed is r. Easily obtaied by the product rule. There are ( ) + r r r-combiatios from a set with elemets whe repetitio of elemets is allowed. Geeralized Combiatios & Permutatios III Geeralized Combiatios & Permutatios IV There are 3 varieties of douts from which we wish to buy a doze. How may possible ways to place your order are there? Here 3 ad we wish to choose r 2. Order does ot matter ad repetitios are possible, so we apply the previous theorem to get that there are ( ) possible orders. 2 The umber of differet permutatios of objects where there are idistiguishable objects of type, 2 of type 2,..., ad k of type k is!! 2! k! A equivalet way of iterpretig this theorem is the umber of ways to distribute distiguishable objects ito k distiguishable boxes so that i objects are placed ito box i for i, 2,..., k.

13 Geeralized Combiatios & Permutatios V Geeratig Permutatios & Combiatios I How may permutatios of the word Mississippi are there? Mississippi cotais 4 distict letters, M, i, s ad p; with, 4, 4, 2 occurreces respectively. Therefore there are permutatios.!!4!4!2! I geeral, it is iefficiet to solve a problem by cosiderig all permutatios or combiatios sice there are a expoetial umber of such arragemets. Nevertheless, for may problems, o better approach is kow. Whe exact solutios are eeded, back-trackig algorithms are used. Geeratig permutatios or combiatios are sometimes the basis of these algorithms. Geeratig Permutatios & Combiatios II Geeratig Permutatios & Combiatios III (Travelig Sales Perso Problem) Cosider a salesma that must visit differet cities. He wishes to visit them i a order such that his overall distace traveled is miimized. This problem is oe of hudreds of NP-complete problems for which o kow efficiet algorithms exist. Ideed, it is believed that o efficiet algorithms exist. (Actually, Euclidea TSP is ot eve kow to be i NP!) The oly kow way of solvig this problem exactly is to try all! possible routes. We give several algorithms for geeratig these combiatorial objects. Geeratig Combiatios I Recall that combiatios are simply all possible subsets of size r. For our purposes, we will cosider geeratig subsets of The algorithm works as follows. Start with {,..., r} {, 2, 3,..., } Assume that we have a a 2 a r, we wat the ext combiatio. Locate the last elemet a i such that a i r + i. Replace a i with a i +. Replace a j with a i + j i for j i +, i + 2,..., r. Geeratig Combiatios II The followig is pseudocode for this procedure. Algorithm (Next r-combiatio) Iput : A set of elemets ad a r-combiatio, a a r. Output : The ext r-combiatio. i r 2 while a i r + i do 3 i i 4 ed 5 a i a i + 6 for j (i + )... r do 7 a j a i + j i 8 ed

14 Geeratig Combiatios III Geeratig Permutatios Fid the ext 3-combiatio of the set {, 2, 3, 4, 5} after {, 4, 5} Here, a, a 2 4, a 3 5, 5, r 3. The last i such that a i i is. Thus, we set a a + 2 a 2 a a 3 a The text gives a algorithm to geerate permutatios i lexicographic order. Essetially the algorithm works as follows. Give a permutatio, Choose the left-most pair a j, a j+ where a j < a j+. Choose the least item to the right of a j greater tha a j. Swap this item ad a j. Arrage the remaiig (to the right) items i order. So the ext r-combiatio is {2, 3, 4}. Geeratig Permutatios Lexicographic Order Algorithm (Next Permutatio (Lexicographic Order)) Iput : A set of elemets ad a r-permutatio, a a r. Output j 2 while a j > a j+ do 3 j j 4 5 ed : The ext r-permutatio. //j is the largest subscript with a j < a j+ k 6 while a j > a k do 7 k k 8 9 ed //a k is the smallest iteger greater tha a j to the right of a j swap(a j, a k ) r s j + 2 while r > s do 3 swap(a r, a s) ed r r s s + Geeratig Permutatios II Geeratig Permutatios I Ofte there is o reaso to geerate permutatios i lexicographic order. Moreover, eve though geeratig permutatios is iefficiet i itself, lexicographic order iduces eve more work. A alterate method is to fix a elemet, the recursively permute the remaiig elemets. Johso-Trotter algorithm has the followig attractive properties. Not i your textbook, ot o the exam, just for your referece/culture. It is bottom-up (o-recursive). It iduces a miimal-chage betwee each permutatio. Geeratig Permutatios III The algorithm is kow as the Johso-Trotter algorithm. We associate a directio to each elemet, for example: A compoet is mobile if its directio poits to a adjacet compoet that is smaller tha itself. Here 3 ad 4 are mobile ad ad 2 are ot. Algorithm (JohsoTrotter) Iput : A iteger. Output : All possible permutatios of, 2,.... π while There exists a mobile iteger k π do 3 k largest mobile iteger 4 swap k ad the adjacet iteger k poits to 5 reverse directio of all itegers > k 6 Output π 7 ed

15 More s I I As always, the best way to lear ew cocepts is through practice ad examples. How may bit strigs of legth 4 are there such that ever appears as a substrig? We ca represet the set of strig graphically usig a diagram tree. See textbook page 39. I II : Coutig Fuctios I I Let S, T be sets such that S, T m. How may fuctios are there mappig f : S T? How may of these fuctios are oe-to-oe (ijective)? A fuctio simply maps each s i to some t j, thus for each we ca choose to sed it to ay of the elemets i T. Therefore, the umber of such bit strig is 8. : Coutig Fuctios I II : Coutig Fuctios I III Each of these is a idepedet evet, so we apply the multiplicatio rule; m } m {{ m } m times If we wish f to be oe-to-oe (ijective), we must have that m, otherwise we ca easily aswer. Now, each s i must be mapped to a uique elemet i T. For s, we have m choices. However, oce we have made a mappig (say t j ), we caot map subsequet elemets to t j agai. I particular, for the secod elemet, s 2, we ow have m choices. Proceedig i this maer, s 3 will have m 2 choices, etc. Thus we have m (m ) (m 2) (m ( 2)) (m ( )) A alterative way of thikig about this problem is by usig the choose operator: we eed to choose elemets from a set of size m for our mappig; ( ) m m! (m )!!

16 : Coutig Fuctios I IV : Coutig Fuctios II Oce we have chose this set, we ow cosider all permutatios of the mappig, i.e.! differet mappigs for this set. Thus, the umber of such mappigs is m! (m )!!! m! (m )! Recall this questio from the midterm exam: Let S {, 2, 3}, T {a, b}. How may oto fuctios are there mappig S T? How may oe-to-oe (ijective) fuctios are there mappig T S? See, page 46. : Coutig Primes I : Coutig Primes II Give a estimate for how may 7 bit primes there are. Recall that the umber of primes ot more tha is about l See slides o Number Theory, page 33. Usig this fact, the umber of primes ot exceedig 2 7 is 2 7 l 2 7 However, we have over couted we ve couted 69-bit, 68-bit, etc primes as well. The umber of primes ot exceedig 2 69 is about Thus the differece is 2 7 l l l 269 : More sets I : More sets II How may itegers i the rage k are divisible by 2 or 3? Let A {x x, 2 x} B {y x, 3 y} Clearly, A 5, B 3 33, so is it true that A B ? No; we ve over couted agai ay iteger divisible by 6 will be i both sets. How much did we over cout? The umber of itegers betwee ad divisible by 6 is 6, so the aswer to the origial questio is 6 A B (5 + 33) 6 67

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

5.3. Generalized Permutations and Combinations

5.3. Generalized Permutations and Combinations 53 GENERALIZED PERMUTATIONS AND COMBINATIONS 73 53 Geeralized Permutatios ad Combiatios 53 Permutatios with Repeated Elemets Assume that we have a alphabet with letters ad we wat to write all possible

More information

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

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

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

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

The Stable Marriage Problem

The Stable Marriage Problem The Stable Marriage Problem William Hut Lae Departmet of Computer Sciece ad Electrical Egieerig, West Virgiia Uiversity, Morgatow, WV William.Hut@mail.wvu.edu 1 Itroductio Imagie you are a matchmaker,

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

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

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

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

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

Notes on exponential generating functions and structures.

Notes on exponential generating functions and structures. Notes o expoetial geeratig fuctios ad structures. 1. The cocept of a structure. Cosider the followig coutig problems: (1) to fid for each the umber of partitios of a -elemet set, (2) to fid for each 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

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

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

Hypergeometric Distributions

Hypergeometric Distributions 7.4 Hypergeometric Distributios Whe choosig the startig lie-up for a game, a coach obviously has to choose a differet player for each positio. Similarly, whe a uio elects delegates for a covetio or you

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

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

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

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

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

Engineering 323 Beautiful Homework Set 3 1 of 7 Kuszmar Problem 2.51

Engineering 323 Beautiful Homework Set 3 1 of 7 Kuszmar Problem 2.51 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

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

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

PERMUTATIONS AND COMBINATIONS

PERMUTATIONS AND COMBINATIONS Chapter 7 PERMUTATIONS AND COMBINATIONS Every body of discovery is mathematical i form because there is o other guidace we ca have DARWIN 7.1 Itroductio Suppose you have a suitcase with a umber lock. The

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

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

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

Solutions to Exercises Chapter 4: Recurrence relations and generating functions

Solutions to Exercises Chapter 4: Recurrence relations and generating functions Solutios to Exercises Chapter 4: Recurrece relatios ad geeratig fuctios 1 (a) There are seatig positios arraged i a lie. Prove that the umber of ways of choosig a subset of these positios, with o two chose

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

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

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

BINOMIAL EXPANSIONS 12.5. In this section. Some Examples. Obtaining the Coefficients

BINOMIAL EXPANSIONS 12.5. In this section. Some Examples. Obtaining the Coefficients 652 (12-26) Chapter 12 Sequeces ad Series 12.5 BINOMIAL EXPANSIONS I this sectio Some Examples Otaiig the Coefficiets The Biomial Theorem I Chapter 5 you leared how to square a iomial. I this sectio you

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

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

Notes on Combinatorics. Peter J. Cameron

Notes on Combinatorics. Peter J. Cameron Notes o Combiatorics Peter J Camero ii Preface: What is Combiatorics? Combiatorics, the mathematics of patters,, helps us desig computer etwors, crac security codes, or solve sudous Ursula Marti, Vice-Pricipal

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

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

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

Lesson 17 Pearson s Correlation Coefficient

Lesson 17 Pearson s Correlation Coefficient Outlie Measures of Relatioships Pearso s Correlatio Coefficiet (r) -types of data -scatter plots -measure of directio -measure of stregth Computatio -covariatio of X ad Y -uique variatio i X ad Y -measurig

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

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

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

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

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

GCSE STATISTICS. 4) How to calculate the range: The difference between the biggest number and the smallest number.

GCSE STATISTICS. 4) How to calculate the range: The difference between the biggest number and the smallest number. GCSE STATISTICS You should kow: 1) How to draw a frequecy diagram: e.g. NUMBER TALLY FREQUENCY 1 3 5 ) How to draw a bar chart, a pictogram, ad a pie chart. 3) How to use averages: a) Mea - add up all

More information

THE REGRESSION MODEL IN MATRIX FORM. For simple linear regression, meaning one predictor, the model is. for i = 1, 2, 3,, n

THE REGRESSION MODEL IN MATRIX FORM. For simple linear regression, meaning one predictor, the model is. for i = 1, 2, 3,, n We will cosider the liear regressio model i matrix form. For simple liear regressio, meaig oe predictor, the model is i = + x i + ε i for i =,,,, This model icludes the assumptio that the ε i s are a sample

More information

Elementary Theory of Russian Roulette

Elementary Theory of Russian Roulette Elemetary Theory of Russia Roulette -iterestig patters of fractios- Satoshi Hashiba Daisuke Miematsu Ryohei Miyadera Itroductio. Today we are goig to study mathematical theory of Russia roulette. If some

More information

3 Basic Definitions of Probability Theory

3 Basic Definitions of Probability Theory 3 Basic Defiitios of Probability Theory 3defprob.tex: Feb 10, 2003 Classical probability Frequecy probability axiomatic probability Historical developemet: Classical Frequecy Axiomatic The Axiomatic defiitio

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

Permutations, the Parity Theorem, and Determinants

Permutations, the Parity Theorem, and Determinants 1 Permutatios, the Parity Theorem, ad Determiats Joh A. Guber Departmet of Electrical ad Computer Egieerig Uiversity of Wiscosi Madiso Cotets 1 What is a Permutatio 1 2 Cycles 2 2.1 Traspositios 4 3 Orbits

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 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

1.3. VERTEX DEGREES & COUNTING

1.3. VERTEX DEGREES & COUNTING 35 Chapter 1: Fudametal Cocepts Sectio 1.3: Vertex Degrees ad Coutig 36 its eighbor o P. Note that P has at least three vertices. If G x v is coected, let y = v. Otherwise, a compoet cut off from P x v

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

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

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

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

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

Math C067 Sampling Distributions

Math C067 Sampling Distributions Math C067 Samplig Distributios Sample Mea ad Sample Proportio Richard Beigel Some time betwee April 16, 2007 ad April 16, 2007 Examples of Samplig A pollster may try to estimate the proportio of voters

More information

FOUNDATIONS OF MATHEMATICS AND PRE-CALCULUS GRADE 10

FOUNDATIONS OF MATHEMATICS AND PRE-CALCULUS GRADE 10 FOUNDATIONS OF MATHEMATICS AND PRE-CALCULUS GRADE 10 [C] Commuicatio Measuremet A1. Solve problems that ivolve liear measuremet, usig: SI ad imperial uits of measure estimatio strategies measuremet strategies.

More information

CHAPTER 3 DIGITAL CODING OF SIGNALS

CHAPTER 3 DIGITAL CODING OF SIGNALS CHAPTER 3 DIGITAL CODING OF SIGNALS Computers are ofte used to automate the recordig of measuremets. The trasducers ad sigal coditioig circuits produce a voltage sigal that is proportioal to a quatity

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

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

A RANDOM PERMUTATION MODEL ARISING IN CHEMISTRY

A RANDOM PERMUTATION MODEL ARISING IN CHEMISTRY J. Appl. Prob. 45, 060 070 2008 Prited i Eglad Applied Probability Trust 2008 A RANDOM PERMUTATION MODEL ARISING IN CHEMISTRY MARK BROWN, The City College of New York EROL A. PEKÖZ, Bosto Uiversity SHELDON

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

1 Correlation and Regression Analysis

1 Correlation and Regression Analysis 1 Correlatio ad Regressio Aalysis I this sectio we will be ivestigatig the relatioship betwee two cotiuous variable, such as height ad weight, the cocetratio of a ijected drug ad heart rate, or the cosumptio

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

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

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

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

Listing terms of a finite sequence List all of the terms of each finite sequence. a) a n n 2 for 1 n 5 1 b) a n for 1 n 4 n 2

Listing terms of a finite sequence List all of the terms of each finite sequence. a) a n n 2 for 1 n 5 1 b) a n for 1 n 4 n 2 74 (4 ) Chapter 4 Sequeces ad Series 4. SEQUENCES I this sectio Defiitio Fidig a Formula for the th Term The word sequece is a familiar word. We may speak of a sequece of evets or say that somethig is

More information

Lesson 15 ANOVA (analysis of variance)

Lesson 15 ANOVA (analysis of variance) Outlie Variability -betwee group variability -withi group variability -total variability -F-ratio Computatio -sums of squares (betwee/withi/total -degrees of freedom (betwee/withi/total -mea square (betwee/withi

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

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

Section 8.3 : De Moivre s Theorem and Applications

Section 8.3 : De Moivre s Theorem and Applications The Sectio 8 : De Moivre s Theorem ad Applicatios Let z 1 ad z be complex umbers, where z 1 = r 1, z = r, arg(z 1 ) = θ 1, arg(z ) = θ z 1 = r 1 (cos θ 1 + i si θ 1 ) z = r (cos θ + i si θ ) ad z 1 z =

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

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

Class Meeting # 16: The Fourier Transform on R n

Class Meeting # 16: The Fourier Transform on R n MATH 18.152 COUSE NOTES - CLASS MEETING # 16 18.152 Itroductio to PDEs, Fall 2011 Professor: Jared Speck Class Meetig # 16: The Fourier Trasform o 1. Itroductio to the Fourier Trasform Earlier i the course,

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

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

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

DIRECTED GRAPHS AND THE JACOBI-TRUDI IDENTITY

DIRECTED GRAPHS AND THE JACOBI-TRUDI IDENTITY Ca. J. Math., Vol. XXXVII, No. 6, 1985, pp. 1201-1210 DIRECTED GRAPHS AND THE JACOBI-TRUDI IDENTITY I. P. GOULDEN 1. Itroductio. Let \a i L X deote the X determiat with (/', y)-etry a-, ad h k = h k (x

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

Solutions to Selected Problems In: Pattern Classification by Duda, Hart, Stork

Solutions to Selected Problems In: Pattern Classification by Duda, Hart, Stork Solutios to Selected Problems I: Patter Classificatio by Duda, Hart, Stork Joh L. Weatherwax February 4, 008 Problem Solutios Chapter Bayesia Decisio Theory Problem radomized rules Part a: Let Rx be the

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

4. Trees. 4.1 Basics. Definition: A graph having no cycles is said to be acyclic. A forest is an acyclic graph.

4. Trees. 4.1 Basics. Definition: A graph having no cycles is said to be acyclic. A forest is an acyclic graph. 4. Trees Oe of the importat classes of graphs is the trees. The importace of trees is evidet from their applicatios i various areas, especially theoretical computer sciece ad molecular evolutio. 4.1 Basics

More information

Part - I. Mathematics

Part - I. Mathematics Part - I Mathematics CHAPTER Set Theory. Objectives. Itroductio. Set Cocept.. Sets ad Elemets. Subset.. Proper ad Improper Subsets.. Equality of Sets.. Trasitivity of Set Iclusio.4 Uiversal Set.5 Complemet

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

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

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

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

THE HEIGHT OF q-binary SEARCH TREES

THE HEIGHT OF q-binary SEARCH TREES THE HEIGHT OF q-binary SEARCH TREES MICHAEL DRMOTA AND HELMUT PRODINGER Abstract. q biary search trees are obtaied from words, equipped with the geometric distributio istead of permutatios. The average

More information

Case Study. Normal and t Distributions. Density Plot. Normal Distributions

Case Study. Normal and t Distributions. Density Plot. Normal Distributions Case Study Normal ad t Distributios Bret Halo ad Bret Larget Departmet of Statistics Uiversity of Wiscosi Madiso October 11 13, 2011 Case Study Body temperature varies withi idividuals over time (it ca

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

Lecture 3. denote the orthogonal complement of S k. Then. 1 x S k. n. 2 x T Ax = ( ) λ x. with x = 1, we have. i = λ k x 2 = λ k.

Lecture 3. denote the orthogonal complement of S k. Then. 1 x S k. n. 2 x T Ax = ( ) λ x. with x = 1, we have. i = λ k x 2 = λ k. 18.409 A Algorithmist s Toolkit September 17, 009 Lecture 3 Lecturer: Joatha Keler Scribe: Adre Wibisoo 1 Outlie Today s lecture covers three mai parts: Courat-Fischer formula ad Rayleigh quotiets The

More information

1. C. The formula for the confidence interval for a population mean is: x t, which was

1. C. The formula for the confidence interval for a population mean is: x t, which was s 1. C. The formula for the cofidece iterval for a populatio mea is: x t, which was based o the sample Mea. So, x is guarateed to be i the iterval you form.. D. Use the rule : p-value

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

Confidence Intervals. CI for a population mean (σ is known and n > 30 or the variable is normally distributed in the.

Confidence Intervals. CI for a population mean (σ is known and n > 30 or the variable is normally distributed in the. Cofidece Itervals A cofidece iterval is a iterval whose purpose is to estimate a parameter (a umber that could, i theory, be calculated from the populatio, if measuremets were available for the whole populatio).

More information