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

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 Fall 27 Computer Sciece & Egieerig 235 to Discrete Mathematics Sectios & of Rose cse235@cse.ul.edu 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 (surjective) 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 59. 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 5.

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 or Dirichlet Box 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 343. 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 59. : 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 5. 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

Combinatorics I Introduction. Combinatorics. Combinatorics I Motivating Example. Combinations. Product Rule. Permutations. Theorem (Product Rule)

Combinatorics I Introduction. Combinatorics. Combinatorics I Motivating Example. Combinations. Product Rule. Permutations. Theorem (Product Rule) Combiatorics I Itroductio Combiatorics Computer Sciece & Egieerig 235: Discrete Mathematics Christopher M. Bourke cbourke@cse.ul.edu Combiatorics is the study of collectios of objects. Specifically, coutig

More information

Math 155 (Lecture 3)

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

Section 5.1 The Basics of Counting

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

Lecture Overview. 2 Permutations and Combinations. n(n 1) (n (k 1)) = n(n 1) (n k + 1) =

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

Notes. Combinatorics. Combinatorics II. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Notes. Combinatorics. Combinatorics II. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006 Combinatorics Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Spring 2006 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 4.1-4.6 & 6.5-6.6 of Rosen cse235@cse.unl.edu

More information

CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo

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

Injections, Surjections, and the Pigeonhole Principle

Injections, 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 information

CIS Spring 2018 (instructor Val Tannen)

CIS Spring 2018 (instructor Val Tannen) CIS 160 - Sprig 2018 (istructor Val Tae) Lecture 5 Thursday, Jauary 25 COUNTING We cotiue studyig how to use combiatios ad what are their properties. Example 5.1 How may 8-letter strigs ca be costructed

More information

Chapter 1 : Combinatorial Analysis

Chapter 1 : Combinatorial Analysis STAT/MATH 394 A - PROBABILITY I UW Autum Quarter 205 Néhémy Lim Chapter : Combiatorial Aalysis A major brach of combiatorial aalysis called eumerative combiatorics cosists of studyig methods for coutig

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.

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

Permutations & Combinations. Dr Patrick Chan. Multiplication / Addition Principle Inclusion-Exclusion Principle Permutation / Combination

Permutations & 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 information

Bertrand s Postulate

Bertrand s Postulate Bertrad s Postulate Lola Thompso Ross Program July 3, 2009 Lola Thompso (Ross Program Bertrad s Postulate July 3, 2009 1 / 33 Bertrad s Postulate I ve said it oce ad I ll say it agai: There s always a

More information

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

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

Permutations, Combinations, and the Binomial Theorem

Permutations, 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 information

MATH 304: MIDTERM EXAM SOLUTIONS

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

The Random Walk For Dummies

The Random Walk For Dummies The Radom Walk For Dummies Richard A Mote Abstract We look at the priciples goverig the oe-dimesioal discrete radom walk First we review five basic cocepts of probability theory The we cosider the Beroulli

More information

Topic 5: Basics of Probability

Topic 5: Basics of Probability Topic 5: Jue 1, 2011 1 Itroductio Mathematical structures lie Euclidea geometry or algebraic fields are defied by a set of axioms. Mathematical reality is the developed through the itroductio of cocepts

More information

Putnam Training Exercise Counting, Probability, Pigeonhole Principle (Answers)

Putnam Training Exercise Counting, Probability, Pigeonhole Principle (Answers) Putam Traiig Exercise Coutig, Probability, Pigeohole Pricile (Aswers) November 24th, 2015 1. Fid the umber of iteger o-egative solutios to the followig Diohatie equatio: x 1 + x 2 + x 3 + x 4 + x 5 = 17.

More information

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

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

Chapter 6. Advanced Counting Techniques

Chapter 6. Advanced Counting Techniques Chapter 6 Advaced Coutig Techiques 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

More information

Lecture 10: Mathematical Preliminaries

Lecture 10: Mathematical Preliminaries Lecture : Mathematical Prelimiaries Obective: Reviewig mathematical cocepts ad tools that are frequetly used i the aalysis of algorithms. Lecture # Slide # I this

More information

Intermediate Math Circles November 4, 2009 Counting II

Intermediate Math Circles November 4, 2009 Counting II Uiversity of Waterloo Faculty of Mathematics Cetre for Educatio i Mathematics ad Computig Itermediate Math Circles November 4, 009 Coutig II Last time, after lookig at the product rule ad sum rule, we

More information

Infinite Sequences and Series

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

Chapter 7 COMBINATIONS AND PERMUTATIONS. where we have the specific formula for the binomial coefficients:

Chapter 7 COMBINATIONS AND PERMUTATIONS. where we have the specific formula for the binomial coefficients: Chapter 7 COMBINATIONS AND PERMUTATIONS We have see i the previous chapter that (a + b) ca be writte as 0 a % a & b%þ% a & b %þ% b where we have the specific formula for the biomial coefficiets: '!!(&)!

More information

ARRANGEMENTS IN A CIRCLE

ARRANGEMENTS IN A CIRCLE ARRANGEMENTS IN A CIRCLE Whe objects are arraged i a circle, the total umber of arragemets is reduced. The arragemet of (say) four people i a lie is easy ad o problem (if they liste of course!!). With

More information

Basic Counting. Periklis A. Papakonstantinou. York University

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

REVIEW FOR CHAPTER 1

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

1 Summary: Binary and Logic

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

Books Recommended for Further Reading

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

What is Probability?

What is Probability? Quatificatio of ucertaity. What is Probability? Mathematical model for thigs that occur radomly. Radom ot haphazard, do t kow what will happe o ay oe experimet, but has a log ru order. The cocept of probability

More information

Let us consider the following problem to warm up towards a more general statement.

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

Exercises 1 Sets and functions

Exercises 1 Sets and functions Exercises 1 Sets ad fuctios HU Wei September 6, 018 1 Basics Set theory ca be made much more rigorous ad built upo a set of Axioms. But we will cover oly some heuristic ideas. For those iterested studets,

More information

Math 475, Problem Set #12: Answers

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 information

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3 MATH 337 Sequeces Dr. Neal, WKU Let X be a metric space with distace fuctio d. We shall defie the geeral cocept of sequece ad limit i a metric space, the apply the results i particular to some special

More information

MT5821 Advanced Combinatorics

MT5821 Advanced Combinatorics MT5821 Advaced Combiatorics 1 Coutig subsets I this sectio, we cout the subsets of a -elemet set. The coutig umbers are the biomial coefficiets, familiar objects but there are some ew thigs to say about

More information

End-of-Year Contest. ERHS Math Club. May 5, 2009

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

Homework 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

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

In number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.

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

As stated by Laplace, Probability is common sense reduced to calculation.

As stated by Laplace, Probability is common sense reduced to calculation. Note: Hadouts DO NOT replace the book. I most cases, they oly provide a guidelie o topics ad a ituitive feel. The math details will be covered i class, so it is importat to atted class ad also you MUST

More information

Solutions to Final Exam

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

Random Models. Tusheng Zhang. February 14, 2013

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

3.1 Counting Principles

3.1 Counting Principles 3.1 Coutig Priciples Goal: Cout the umber of objects i a set. Notatio: Whe S is a set, S deotes the umber of objects i the set. This is also called S s cardiality. Additio Priciple: Whe you wat to cout

More information

( ) GENERATING FUNCTIONS

( ) 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 information

Induction: Solutions

Induction: Solutions Writig Proofs Misha Lavrov Iductio: Solutios Wester PA ARML Practice March 6, 206. Prove that a 2 2 chessboard with ay oe square removed ca always be covered by shaped tiles. Solutio : We iduct o. For

More information

The Binomial Theorem

The Binomial Theorem The Biomial Theorem Robert Marti Itroductio The Biomial Theorem is used to expad biomials, that is, brackets cosistig of two distict terms The formula for the Biomial Theorem is as follows: (a + b ( k

More information

CALCULATION OF FIBONACCI VECTORS

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

Solutions to Math 347 Practice Problems for the final

Solutions to Math 347 Practice Problems for the final Solutios to Math 347 Practice Problems for the fial 1) True or False: a) There exist itegers x,y such that 50x + 76y = 6. True: the gcd of 50 ad 76 is, ad 6 is a multiple of. b) The ifiimum of a set is

More information

Complex Numbers Solutions

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

P1 Chapter 8 :: Binomial Expansion

P1 Chapter 8 :: Binomial Expansion P Chapter 8 :: Biomial Expasio jfrost@tiffi.kigsto.sch.uk www.drfrostmaths.com @DrFrostMaths Last modified: 6 th August 7 Use of DrFrostMaths for practice Register for free at: www.drfrostmaths.com/homework

More information

THE ASYMPTOTIC COMPLEXITY OF MATRIX REDUCTION OVER FINITE FIELDS

THE ASYMPTOTIC COMPLEXITY OF MATRIX REDUCTION OVER FINITE FIELDS THE ASYMPTOTIC COMPLEXITY OF MATRIX REDUCTION OVER FINITE FIELDS DEMETRES CHRISTOFIDES Abstract. Cosider a ivertible matrix over some field. The Gauss-Jorda elimiatio reduces this matrix to the idetity

More information

Axioms of Measure Theory

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

Generating Functions. 1 Operations on generating functions

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

Introduction To Discrete Mathematics

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

Lecture 11: Pseudorandom functions

Lecture 11: Pseudorandom functions COM S 6830 Cryptography Oct 1, 2009 Istructor: Rafael Pass 1 Recap Lecture 11: Pseudoradom fuctios Scribe: Stefao Ermo Defiitio 1 (Ge, Ec, Dec) is a sigle message secure ecryptio scheme if for all uppt

More information

Combinatorics and Newton s theorem

Combinatorics and Newton s theorem INTRODUCTION TO MATHEMATICAL REASONING Key Ideas Worksheet 5 Combiatorics ad Newto s theorem This week we are goig to explore Newto s biomial expasio theorem. This is a very useful tool i aalysis, but

More information

IP Reference guide for integer programming formulations.

IP Reference guide for integer programming formulations. IP Referece guide for iteger programmig formulatios. by James B. Orli for 15.053 ad 15.058 This documet is iteded as a compact (or relatively compact) guide to the formulatio of iteger programs. For more

More information

UC Berkeley Department of Electrical Engineering and Computer Sciences. EE126: Probability and Random Processes

UC Berkeley Department of Electrical Engineering and Computer Sciences. EE126: Probability and Random Processes UC Berkeley Departmet of Electrical Egieerig ad Computer Scieces EE26: Probability ad Radom Processes Problem Set Fall 208 Issued: Thursday, August 23, 208 Due: Wedesday, August 29, 207 Problem. (i Sho

More information

Polynomial identity testing and global minimum cut

Polynomial identity testing and global minimum cut CHAPTER 6 Polyomial idetity testig ad global miimum cut I this lecture we will cosider two further problems that ca be solved usig probabilistic algorithms. I the first half, we will cosider the problem

More information

Lecture 12: November 13, 2018

Lecture 12: November 13, 2018 Mathematical Toolkit Autum 2018 Lecturer: Madhur Tulsiai Lecture 12: November 13, 2018 1 Radomized polyomial idetity testig We will use our kowledge of coditioal probability to prove the followig lemma,

More information

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22 CS 70 Discrete Mathematics for CS Sprig 2007 Luca Trevisa Lecture 22 Aother Importat Distributio The Geometric Distributio Questio: A biased coi with Heads probability p is tossed repeatedly util the first

More information

Square-Congruence Modulo n

Square-Congruence Modulo n Square-Cogruece Modulo Abstract This paper is a ivestigatio of a equivalece relatio o the itegers that was itroduced as a exercise i our Discrete Math class. Part I - Itro Defiitio Two itegers are Square-Cogruet

More information

MT5821 Advanced Combinatorics

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

Combinatorially Thinking

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

6.3 Testing Series With Positive Terms

6.3 Testing Series With Positive Terms 6.3. TESTING SERIES WITH POSITIVE TERMS 307 6.3 Testig Series With Positive Terms 6.3. Review of what is kow up to ow I theory, testig a series a i for covergece amouts to fidig the i= sequece of partial

More information

Solutions. tan 2 θ(tan 2 θ + 1) = cot6 θ,

Solutions. tan 2 θ(tan 2 θ + 1) = cot6 θ, Solutios 99. Let A ad B be two poits o a parabola with vertex V such that V A is perpedicular to V B ad θ is the agle betwee the chord V A ad the axis of the parabola. Prove that V A V B cot3 θ. Commet.

More information

# fixed points of g. Tree to string. Repeatedly select the leaf with the smallest label, write down the label of its neighbour and remove the leaf.

# fixed points of g. Tree to string. Repeatedly select the leaf with the smallest label, write down the label of its neighbour and remove the leaf. Combiatorics Graph Theory Coutig labelled ad ulabelled graphs There are 2 ( 2) labelled graphs of order. The ulabelled graphs of order correspod to orbits of the actio of S o the set of labelled graphs.

More information

Mathematical Induction

Mathematical Induction Mathematical Iductio Itroductio Mathematical iductio, or just iductio, is a proof techique. Suppose that for every atural umber, P() is a statemet. We wish to show that all statemets P() are true. I a

More information

Discrete mathematics , Fall Instructor: prof. János Pach. 1 Counting problems and the inclusion-exclusion principle

Discrete mathematics , Fall Instructor: prof. János Pach. 1 Counting problems and the inclusion-exclusion principle Discrete mathematics 014-015, Fall Istructor: prof Jáos Pach - covered material - Special thaks to Jaa Cslovjecsek, Kelly Fakhauser, ad Sloboda Krstic for sharig their lecture otes If you otice ay errors,

More information

Lecture Notes for CS 313H, Fall 2011

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

4 The Sperner property.

4 The Sperner property. 4 The Sperer property. I this sectio we cosider a surprisig applicatio of certai adjacecy matrices to some problems i extremal set theory. A importat role will also be played by fiite groups. I geeral,

More information

Week 5-6: The Binomial Coefficients

Week 5-6: The Binomial Coefficients Wee 5-6: The Biomial Coefficiets March 6, 2018 1 Pascal Formula Theorem 11 (Pascal s Formula For itegers ad such that 1, ( ( ( 1 1 + 1 The umbers ( 2 ( 1 2 ( 2 are triagle umbers, that is, The petago umbers

More information

4.3 Growth Rates of Solutions to Recurrences

4.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 information

18th Bay Area Mathematical Olympiad. Problems and Solutions. February 23, 2016

18th Bay Area Mathematical Olympiad. Problems and Solutions. February 23, 2016 18th Bay Area Mathematical Olympiad February 3, 016 Problems ad Solutios BAMO-8 ad BAMO-1 are each 5-questio essay-proof exams, for middle- ad high-school studets, respectively. The problems i each exam

More information

arxiv: v1 [math.co] 23 Mar 2016

arxiv: 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 information

Lecture 2: April 3, 2013

Lecture 2: April 3, 2013 TTIC/CMSC 350 Mathematical Toolkit Sprig 203 Madhur Tulsiai Lecture 2: April 3, 203 Scribe: Shubhedu Trivedi Coi tosses cotiued We retur to the coi tossig example from the last lecture agai: Example. Give,

More information

Lecture Notes for Analysis Class

Lecture Notes for Analysis Class Lecture Notes for Aalysis Class Topological Spaces A topology for a set X is a collectio T of subsets of X such that: (a) X ad the empty set are i T (b) Uios of elemets of T are i T (c) Fiite itersectios

More information

MATH 324 Summer 2006 Elementary Number Theory Solutions to Assignment 2 Due: Thursday July 27, 2006

MATH 324 Summer 2006 Elementary Number Theory Solutions to Assignment 2 Due: Thursday July 27, 2006 MATH 34 Summer 006 Elemetary Number Theory Solutios to Assigmet Due: Thursday July 7, 006 Departmet of Mathematical ad Statistical Scieces Uiversity of Alberta Questio [p 74 #6] Show that o iteger of the

More information

Discrete Mathematics for CS Spring 2005 Clancy/Wagner Notes 21. Some Important Distributions

Discrete Mathematics for CS Spring 2005 Clancy/Wagner Notes 21. Some Important Distributions CS 70 Discrete Mathematics for CS Sprig 2005 Clacy/Wager Notes 21 Some Importat Distributios Questio: A biased coi with Heads probability p is tossed repeatedly util the first Head appears. What is the

More information

1. n! = n. tion. For example, (n+1)! working with factorials. = (n+1) n (n 1) 2 1

1. n! = n. tion. For example, (n+1)! working with factorials. = (n+1) n (n 1) 2 1 Biomial Coefficiets ad Permutatios Mii-lecture The followig pages discuss a few special iteger coutig fuctios You may have see some of these before i a basic probability class or elsewhere, but perhaps

More information

PUTNAM TRAINING PROBABILITY

PUTNAM TRAINING PROBABILITY PUTNAM TRAINING PROBABILITY (Last udated: December, 207) Remark. This is a list of exercises o robability. Miguel A. Lerma Exercises. Prove that the umber of subsets of {, 2,..., } with odd cardiality

More information

The Boolean Ring of Intervals

The Boolean Ring of Intervals MATH 532 Lebesgue Measure Dr. Neal, WKU We ow shall apply the results obtaied about outer measure to the legth measure o the real lie. Throughout, our space X will be the set of real umbers R. Whe ecessary,

More information

International Baccalaureate LECTURE NOTES MATHEMATICS HL FURTHER MATHEMATICS HL Christos Nikolaidis TOPIC NUMBER THEORY

International Baccalaureate LECTURE NOTES MATHEMATICS HL FURTHER MATHEMATICS HL Christos Nikolaidis TOPIC NUMBER THEORY Iteratioal Baccalaureate LECTURE NOTES MATHEMATICS HL FURTHER MATHEMATICS HL TOPIC NUMBER THEORY METHODS OF PROOF. Couterexample - Cotradictio - Pigeohole Priciple Strog mathematical iductio 2 DIVISIBILITY....

More information

CHAPTER I: Vector Spaces

CHAPTER I: Vector Spaces CHAPTER I: Vector Spaces Sectio 1: Itroductio ad Examples This first chapter is largely a review of topics you probably saw i your liear algebra course. So why cover it? (1) Not everyoe remembers everythig

More information

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece 1, 1, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet

More information

Summer High School 2009 Aaron Bertram

Summer High School 2009 Aaron Bertram Summer High School 009 Aaro Bertram 3 Iductio ad Related Stuff Let s thik for a bit about the followig two familiar equatios: Triagle Number Equatio Square Number Equatio: + + 3 + + = ( + + 3 + 5 + + (

More information

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece,, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet as

More information

It is always the case that unions, intersections, complements, and set differences are preserved by the inverse image of a function.

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

CSE 21 Mathematics for

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

Advanced Stochastic Processes.

Advanced Stochastic Processes. Advaced Stochastic Processes. David Gamarik LECTURE 2 Radom variables ad measurable fuctios. Strog Law of Large Numbers (SLLN). Scary stuff cotiued... Outlie of Lecture Radom variables ad measurable fuctios.

More information

Math F215: Induction April 7, 2013

Math F215: Induction April 7, 2013 Math F25: Iductio April 7, 203 Iductio is used to prove that a collectio of statemets P(k) depedig o k N are all true. A statemet is simply a mathematical phrase that must be either true or false. Here

More information

Worksheet on Generating Functions

Worksheet on Generating Functions Worksheet o Geeratig Fuctios October 26, 205 This worksheet is adapted from otes/exercises by Nat Thiem. Derivatives of Geeratig Fuctios. If the sequece a 0, a, a 2,... has ordiary geeratig fuctio A(x,

More information

1 Hash tables. 1.1 Implementation

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

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row: Math 5-4 Tue Feb 4 Cotiue with sectio 36 Determiats The effective way to compute determiats for larger-sized matrices without lots of zeroes is to ot use the defiitio, but rather to use the followig facts,

More information

subcaptionfont+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0 subcaption ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, 2/16/2016

subcaptionfont+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0 subcaption ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, 2/16/2016 subcaptiofot+=small,labelformat=pares,labelsep=space,skip=6pt,list=0,hypcap=0 subcaptio ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, /6/06. Self-cojugate Partitios Recall that, give a partitio λ, we may

More information

Randomized Algorithms I, Spring 2018, Department of Computer Science, University of Helsinki Homework 1: Solutions (Discussed January 25, 2018)

Randomized Algorithms I, Spring 2018, Department of Computer Science, University of Helsinki Homework 1: Solutions (Discussed January 25, 2018) Radomized Algorithms I, Sprig 08, Departmet of Computer Sciece, Uiversity of Helsiki Homework : Solutios Discussed Jauary 5, 08). Exercise.: Cosider the followig balls-ad-bi game. We start with oe black

More information

An Introduction to Randomized Algorithms

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

Is mathematics discovered or

Is mathematics discovered or 996 Chapter 1 Sequeces, Iductio, ad Probability Sectio 1. Objectives Evaluate a biomial coefficiet. Expad a biomial raised to a power. Fid a particular term i a biomial expasio. The Biomial Theorem Galaxies

More information

Math 220A Fall 2007 Homework #2. Will Garner A

Math 220A Fall 2007 Homework #2. Will Garner A Math 0A Fall 007 Homewor # Will Garer Pg 3 #: Show that {cis : a o-egative iteger} is dese i T = {z œ : z = }. For which values of q is {cis(q): a o-egative iteger} dese i T? To show that {cis : a o-egative

More information

Enumerative & Asymptotic Combinatorics

Enumerative & Asymptotic Combinatorics C50 Eumerative & Asymptotic Combiatorics Notes 4 Sprig 2003 Much of the eumerative combiatorics of sets ad fuctios ca be geeralised i a maer which, at first sight, seems a bit umotivated I this chapter,

More information

Math 609/597: Cryptography 1

Math 609/597: Cryptography 1 Math 609/597: Cryptography 1 The Solovay-Strasse Primality Test 12 October, 1993 Burt Roseberg Revised: 6 October, 2000 1 Itroductio We describe the Solovay-Strasse primality test. There is quite a bit

More information