CSE 202 Homework 1 Matthias Springer, A Yes, there does always exist a perfect matching without a strong instability.

Size: px
Start display at page:

Download "CSE 202 Homework 1 Matthias Springer, A Yes, there does always exist a perfect matching without a strong instability."

Transcription

1 CSE 0 Homework 1 Matthias Spriger, A Problem 1 Notatio a b meas that a is matched to b. a < b c meas that b likes c more tha a. Equality idicates a tie. Strog istability Yes, there does always exist a perfect matchig without a strog istability. Ituitio We ca resolve ties by orderig the persos ivolved arbitrarily. I.e. whe m 1 ad m are tied for w 1, we ca just assume that w 1 likes m 1 better tha m. Sice m 1 ad m were tied before, w 1 will ever complai about our choice. The Gale-Shapley algorithm could the be ru without modificatios ad is guarateed to retur a perfect stable matchig. Proof We show that the Gale-Shapley algorithm always geerates a perfect matchig without a strog istability, eve if there may be ties. We will prove this by cotradictio. We make a small modificatio to the algorithm: if there are multiple choices for a woma to propose to a ma (because there are multiple me that she likes best), she radomly proposes to oe. Also, ote that me do ot switch for a wome that are tied with the curret parter. We assume, that the output of the algorithm cotais a strog istability. I.e. m 1 w 1 ad w w, but m 1 < w1 m ad w < m w 1. Therefore, w 1 must have proposed to m before she proposed to m 1 1. m 1 w 1, so oe of the followig must be true. m already had a better parter w i. Evetually, m switched for w 1. Therefore, w m w i > m... > m w 1. This violates our assumptio that w < m w 1. m accepts w 1, but evetually switches to w. Therefore, there must be wome, icludig w, that m likes better. Therefore, w m w i > m... > m w 1. This violates our assumptio that w < m w 1. 1 m 1 ad m are ot tied (see assumptio).

2 CSE 0 Homework 1 Matthias Spriger, A Note that w 1 ad w caot be tied, sice this would ot impose a strog istability. Our assumptio is wrog. There ca be o strog istability. Weak istability No, there is ot always a perfect matchig without a weak istability. We show this by providig a example i which all perfect matchigs have a weak istability. w 1 = m1 w w 1 = m w m 1 > w1 m m 1 > w m We examie the two possible matchigs. m 1 w 1 ad m w cotais a weak istability: w likes m 1 more tha her curret parter m ad m 1 does ot care (both wome are tied). m 1 w ad m w 1 cotais a weak istability: w 1 likes m 1 more tha her curret parter m ad m 1 does ot care (both wome are tied). Therefore, there does ot always exist a perfect matchig without a weak istability. Problem For a woma, it is ot possible to ed up with a true better ma by lyig about her prefereces. Let w be a woma with the true preferece m 1 > w m. Let us assume that the Gale-Shapley algorithm creates m truth w ad that w preteds that m > lie w m 1. We compare the results of the algorithm with ad without the lie.

3 CSE 0 Homework 1 Matthias Spriger, A Case 1: m 1 < m truth ad m < m truth Origial proposig sequece: (..., m truth,..., m 1,..., m,...) New proposig sequece: (..., m truth,..., m,..., m 1,...) Both m 1 ad m are actually ad after lyig lower o w s preferece list tha her matched parter m truth. Therefore, w is matched to m truth before ad after the lie, because, i both cases, w does ot eve propose to m 1 or m, sice she was matched with a better parter before ad he did ot leave w. Case : m 1 > m truth ad m > m truth Origial proposig sequece: (..., m 1,..., m,..., m truth,...) New proposig sequece: (..., m,..., m 1,..., m truth,...) Both m 1 ad m are actually ad after lyig higher o w s preferece list tha her matched parter m truth. Therefore, w is matched to m truth before ad after the lie, because, i both cases, w proposes to m 1 ad m ad both will either reject her or first accept her ad leave her later. At some poit, w proposes to m. We kow that w m truth i the first ru of the algorithm, although w proposed to m before. Therefore, m either already had a better parter or he accepted w ad the switched to aother woma. This will also happe after lyig, sice w s lie does ot affect the proposig sequece of the other wome. The same argumet holds true for m 1. Case 3: m 1 > m truth ad m < m truth Origial proposig sequece: (..., m 1,..., m truth,..., m,...) New proposig sequece: (..., m,..., m truth,..., m 1,...) Whe w lies, the followig is true. w will ot be matched with a ma she proposed to before m, because these me evetually rejected her i the first ru of the algorithm. Whe w proposes to m, he might accept her ad stay with her. I that case, w eds up with a worse parter tha without lyig. I case m rejects w or leaves her later, w will propose to all me util m truth will evetually accept her ad stay with her. All the I geeral, the orderig of me o w s preferece list below m truth does ot matter.

4 CSE 0 Homework 1 Matthias Spriger, A me i betwee will reject her or leave her, because that is what they did i the first ru of the algorithm. Case 4: m 1 < m truth ad m > m truth Not possible, sice m 1 < m truth < m violates our assumptio that m 1 > m. Case 5: m = m truth ad m 1 > m truth Origial proposig sequece: (..., m 1,..., m truth,...) New proposig sequece: (..., m truth,..., m 1,...) w chages the orderig i such a way that she proposes to her matched parter earlier ad to a better parter later. m truth s predecessors will (evetually) reject w, but m truth will accept w ad stay with her, sice he did ot get a better proposal i the first ru. Case 6: m = m truth ad m 1 < m truth Not possible, sice m 1 < m violates our assumptio that m 1 > m. Case 7: m 1 = m truth ad m < m truth Origial proposig sequece: (..., m truth,..., m,...) New proposig sequece: (..., m,..., m truth,...) All me before m will reject w s proposal or leave her later, sice that is what they did i the first ru. w proposes to m before she proposes to m truth. m might accept her proposal ad stay with her. I that case, w eded up with a worse parter. I case m rejects her (evetually), w will propose to all me betwee m ad m truth. These me will reject her, because they did the same i the first ru. m truth will accept w ad stay with her. Case 8: m 1 = m truth ad m = m truth w did ot lie. I every case, w did either ed up with the same parter agai or get a worse parter. Therefore, w caot improve her matchig by lyig.

5 CSE 0 Homework 1 Matthias Spriger, A Problem 3 Summary The key idea is to calculate all values F j together istead of separately. Whe we take a look at the formula for F j, we see that C ad C j are costats that are multiplied with the two sums. The difficult part is to calculate q i i<j q i (j i) i>j efficietly. We ca geerate two polyoms Q(x) (for (j i) the q i ) ad M(x) (for the deomiators) of less tha degree such that their multiplicatio cotais the values F j. This ca be doe efficietly with the algorithm discussed i the lecture. The we multiply every coefficiet of the resultig polyom with the costats C ad q j. Basic Idea Calculate all F j together istead of separately. Geerate polyoms Q(x) = i=1 q ix i M(x) = 1 i=1 x 1+i + x 1 i i i Calculate F (x) = Q(x) M(x) usig the algorithm discussed i the lecture. Degree of both polygos is less tha. Rutime O( log ). Extract coefficiets F j = f j from F (x) at positios j = 1 i for i = Full Algorithm We ca rewrite F j as follows. ( q i F j = C q j (j i) i>j i<j q i (j i) Now, we geeate the polyoms Q(x) ad M(x) as preseted i the previous sectio. For istace, for = 4, we geerate the followig polyoms. ) Q(x) = q 1 x 3 + q x + q 3 x + q 4

6 CSE 0 Homework 1 Matthias Spriger, A M(x) = 1 9 x6 1 4 x5 x 4 + x x We use the method discussed i the lecture to multiply these two polyoms. For polyoms of degree m this takes O(m log m) time. deg(q(x)) = 1 ad deg(m(x)) = ( 1) <. Therefore, the multiplicatio takes O( log ) time. Note: the algorithm for multiplyig two polyomials was desiged for polyoms whose degree is a power of. Therefore, we might have to exted the polyoms, resultig i a polyom of degree. Therefore, the multiplicatio takes O(4 log 4) = O( log ) time. For the multiplicatio, we assume that Q(x) has the same degree as M(x) by addig the missig powers of x with a coefficiet of zero (e.g. 0x 6 i the example). We also add missig powers of x iside M(x) (e.g. 0x 3 i the example). M(x) Q(x) =... + x 6 ( q q 3 4 q 4 9 ) + x5 (q 1 q 3 q 4 4 )+ x 4 ( q q q 4 ) + x 3 ( q q 4 + q 3) +... The example above shows oly the coefficiets of x k with k = I geeral, we are iterested oly i the coefficiets of x k with k = 1 i ad i = The other coefficiets are calcuated by the algorithm, but we do ot eed them. We ca ow geerate the term F j = C q j c 1 j, where c i is the coefficiet of x i i M(x) Q(x). This requires O() multiplicatios i total. Pseudo Code Q.size() M Array[ 1] result Array[] for i = 1 to do M[ 1 + i] i M[ 1 i] i ed for d log deg M Q Q with d coefficiets (fill with zeros)

7 CSE 0 Homework 1 Matthias Spriger, A M M with d coefficiets (fill with zeros) p mult(m, Q) for i = 1 to do result[i 1] = p[ 1 i] ed for retur result Rutime complexity Geerate polyom Q(x): O() Geerate polyom M(x): O() Covert polyoms Q(x) ad M(x) to polyom with same umber of coefficiets, where the umber of coefficiets is a power of : O(4) each (ext power of might be almost ) Multiply polyoms (usig FFT): O(4 log 4) Extract coefficiets from resultig polyom: O() Therefore, the rutime complexity is O(4 log 4) = O( log ). Problem 4 Basic Idea Give a arbitrary startig vertex, a local miimum is the ed of a decreasig path, i.e. every ext vertex is smaller tha the curret vertex. Fid the smallest vertex v i the middle colum. Check if this smallest vertex is a local miimum. If ot, there must be a local miimum o that side of the colum where v s (left/right) eighbor is smaller tha v (could be both sides). A smallest path startig from v s eighbor will ever cross this colum. Fid the smallest vertex w i the middle row of the side that we chose i the last step.

8 CSE 0 Homework 1 Matthias Spriger, A Check if w is a local miimum. If ot, there must be a local miimum iside the quarter sector cotaiig v s chose eighbor if w > v. Otherwise, there must be a local miimum i the quarter sector where w s (upper/lower) eighbor is smaller tha w. We cotiue recursively o a smaller grid. Full Algorithm 1. Fid cell (, i), 1 i that has a miimal value x,i.. Check (, i) s eighbors. If they are both greater tha x,i, we retur the local miimum. 3. Otherwise, there must be a local miimum o the side that cotais the eighbor vertex P that has a smaller value tha x,i. If both eighbors have a smaller value, the both sides cotai a local miimum ad we may choose P arbitrarily. Proof: Startig with a vertex of value x i, we ca fid a local miimum by choosig a eighbor that has a smaller value x j < x i. We must evetually reach a local miimum, because all values x k are distict. Therefore, there must always be a smaller eighbor or, i case we reached the local miimum, all eighbors are greater. The path we cosider right ow starts at P with a value that is smaller tha x,i. This x P is smaller tha the smallest umber of the colum. We ca be sure that this (decreassig-value) path will ever cross this colum agai. Otherwise, the path would hit a greater value, sice all vertices o the colum have a greater umber tha x P. 4. Fid cell ( j, ), with 1 j 1 if we just chose the left side, or otherwise + 1 j (if we chose the right side), such that x j, is miimal. 5. Check ( j, ) s eighbors. If they are both greater tha x j,, we retur the local miimum. 6. We compare x,i ad x j,. (a) If x,i < x j,, the the path startig at P will ot cross the row, because all vertices o the row have a greater value tha the

9 CSE 0 Homework 1 Matthias Spriger, A x P. Therefore, we kow that there must be a local miimum i the (square) sector that cotais P. We cotiue the algorithm i that sector recursively. The ew sector s size is equal to or smaller tha. (b) If x,i > x j,, the we take oe of ( j, ) s eighbors whose value is smaller tha x j, ad call it Q 3. We kow that the path startig from Q will cross either the half-row or the colum (same reaso as i the proof above). Therefore, we kow that there must be a local miimum i the (square) sector that cotais Q. We cotiue the algorithm i that sector recursively. The ew sector s size is equal to or smaller tha. = 1 is the base case for the recursio. I that case, the grid cosists of oly oe cell that must be a local miimum. Pseudo Code This is the pseudo code for fidmi(g, ), where G is the grid graph ad is its size i oe dimesio. if = 1 the base case output(1, 1) keep track of acutal idices, see commet below ed if c x c v for i = 1 to do x G[c x, i] if x < c v the step 1 c v x c y i ed if ed for l G[c x 1, c y ] r G[c y + 1, c y ] if l > x r > x the step output(c x, c y ) keep track of actual idices 3 There must always exist such a vertex. Otherwise we would already have retured the local miimum.

10 CSE 0 Homework 1 Matthias Spriger, A else directio x 1 if l < x else 1 ed if r y r v for i = + directio x; i > 0 i < + 1; i i + directio x do x G[i, r y ] if x < r v the step 4 r v x r x i ed if ed for u G[r x, r y 1] d G[r x, r y + 1] c ed 1 if l < x else if u > x d > x the step5 output(r x, r y ) keep track of actual idices else if c v < r v the step 6a r ed 1 if c y < else else step 6b r ed 1 if d < x else ed if retur fidmi(g[ : c ed, : r ed], ) I the pseudo code, G[a : b, c : d] meas that we copy the array rectagle horizotally from idex a to b ad vertically from c to d. The resultig array begis at idex 1. I the actual implemetatio of the algorithm, we would ot do this because it is too expesive. We ca just provide the coordiates of the ew array segmet that we are workig o. The oly reaso for choosig this way i the pseudo code is to keep it readable ad uderstadable. I the rutime complexity aalysis, I will ot accout for copyig the array. It is also importat to remember, that the output of the idices of the pseduo code algorithm does ot keep track of the actual idices. I.e. every recursive call of the algorithm gets a array whose first elemet is at positio (1, 1), although the real positio of this first elemet might be somethig else (because it was copied i the example i order to keep the pesudo code free of idex umber cruchig). All out-of-bouds accesses will retur. I.e. G[0, ] = G[ + 1, 1] =.

11 CSE 0 Homework 1 Matthias Spriger, A Rutime complexity We assume that the grid G is a square grid with a height ad legth of. Fidig the miimum of G s middle colum: probes. Checkig if the colum s miimum is a local miimum: probes. Fidig the miimum of the middle colum: 1 = O() probes4. Checkig if the row s miimum is a local miimum: probes. We eed O() probes per recursio/coquer step. Every divide step divides by half 5. Therefore this is the rutime complexity for the algorithm: T () = T ( ) + O(). The base case takes a costat amout of time (T (1) = c) We ca show that T () = O(c ) by usig the recursio tree method. Every level cotais exactly oe problem ad the problem size is cut i half o every ext level. Therefore, the problem complexity ca be described by the decreasig geometric series: T () = log c i=1 c i. 6 Therefore, the rutime complexity of the algorithm is O(). Problem 5 Basic Idea We sort all lies by their slopes. We use divide-ad-coquer ad geerate two equal-sized subproblems by splittig the lies i the middle. Note, that the sortig is preserved. The algorithm is supposed to retur the evelope that cotais the visible lies oly. 4 Remember that we already split the grid vertically at this poit 5 If the is odd, we take. This does ot affect the rutime complexity asymptotically. 6 We ca assume that it is a ifiite decreasig geometric series.

12 CSE 0 Homework 1 Matthias Spriger, A I the coquer step, we take two evelopes ad combie them. Therefore, we fid the sigle itersectio poit of the evelopes ad from there o, we take the lie segmets that are o top. Before, we take the lie segmets from the other evelope. The itersectio poit ca be foud i liear time with a sca lie algorithm that begis at ad stops at the begiig of every ew lie segmet i either oe of the two evelopes. Full Algorithm The algorithm gets a array of lie equatios as iput, ad the lie equatios must already be sorted by their slope value. If that is ot the case, this ca be doe i a preprocessig step i O( log ) if is the umber of lie equatios. The algorithm returs a list of visible lie equatios ad their itersectio poits. Together, these form lie segmets, where each lie equatio is oly used betwee the two itersectio poits with the predecessor ad the successor lie equatio. Note, that the left-most ad the right-most lies have oly oe itersectio ad go to ad respectively. We divide the list of equatios i the middle ad work o both list recursively (divide ad coquer). The coquer step works as follows. We eed to merge the two sequeces of lie segmets (also called evelopes) by fidig their itersectio poit ad creatig oe sigle list of lie segmets. Durig this step, some of the lies might become ivisible ad are therefore discarded. This ca be doe i O(). Let A be the lie segmets from the first recursive divide call ad B be the lie segmets from the secod recursive divide call. At some poit, a segmet from A might itersect with a segmet from B. At that poit, we combie A ad B by savig the itersectio poit ad takig all previous lie segmets from A ad

13 CSE 0 Homework 1 Matthias Spriger, A takig all followig lie segmets from B, if A was o top before ad B is o top later 7. Note, that there ca oly be oe sigle itersectio of A ad B, because A ad B are sorted by their slopes ad all slopes i A are lower tha all slopes i B. If there were a secod itersectio poit, the two evelopes had to itersect a secod time. Therefore, A s or B s slopes would have to decrease agai or A s slopes would have to become greater tha a slope i B. This cotradicts the fact, that A ad B are sorted. We ca merge both evelopes i liear time by usig a sca lie algorithm. We start at x = ad determie the value of the first lie equatio i both evelopes 8. By doig this, we kow which of the two evelopes is o top. The we move to the ext closest itersectio poit (o the x-axis) i the two evelopes 9. Note, that the slope of a evelope ca oly chage at these itersectio poits. We evaluate the other evelope at this itersectio poit 10. If from ow o, the other lie segmets/the other evelope are o top (e.g. before, A was o top, but ow B is o top) 11, the A ad B itersect ad we combie them as described before. We retur the combied evelopes. Rutime Complexity Sortig by slopes: O( log ) Sca lie algorithm for combiig two evelopes (coquer step): O() Full recursio with divide ad coquer: T () = T ( ) + O() ad the base cases T (1) = T () = cost. We kow that T () = O( log ). Therefore, the overall rutime complexity is O( log ). 7 Otherwise, we take all previous lie segmets from B, add the itersectio poit, ad take all followig lie segmets from A. 8 Note, that the first equatio does ot have a itersectio poit to its left. 9 Both evelopes have differet itersectio poits ad we do ot care where the itersectio poit comes from. 10 We kow the segmets of the other evelope ad where they begi ad ed. 11 We have to evaluate both evelopes.

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

CS:3330 (Prof. Pemmaraju ): Assignment #1 Solutions. (b) For n = 3, we will have 3 men and 3 women with preferences as follows: m 1 : w 3 > w 1 > w 2

CS:3330 (Prof. Pemmaraju ): Assignment #1 Solutions. (b) For n = 3, we will have 3 men and 3 women with preferences as follows: m 1 : w 3 > w 1 > w 2 Shiyao Wag CS:3330 (Prof. Pemmaraju ): Assigmet #1 Solutios Problem 1 (a) Cosider iput with me m 1, m,..., m ad wome w 1, w,..., w with the followig prefereces: All me have the same prefereces for wome:

More information

CS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2

CS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2 Geeral remarks Week 2 1 Divide ad First we cosider a importat tool for the aalysis of algorithms: Big-Oh. The we itroduce a importat algorithmic paradigm:. We coclude by presetig ad aalysig two examples.

More information

This Lecture. Divide and Conquer. Merge Sort: Algorithm. Merge Sort Algorithm. MergeSort (Example) - 1. MergeSort (Example) - 2

This Lecture. Divide and Conquer. Merge Sort: Algorithm. Merge Sort Algorithm. MergeSort (Example) - 1. MergeSort (Example) - 2 This Lecture Divide-ad-coquer techique for algorithm desig. Example the merge sort. Writig ad solvig recurreces Divide ad Coquer Divide-ad-coquer method for algorithm desig: Divide: If the iput size is

More information

6.003 Homework #3 Solutions

6.003 Homework #3 Solutions 6.00 Homework # Solutios Problems. Complex umbers a. Evaluate the real ad imagiary parts of j j. π/ Real part = Imagiary part = 0 e Euler s formula says that j = e jπ/, so jπ/ j π/ j j = e = e. Thus the

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

OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES

OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES Peter M. Maurer Why Hashig is θ(). As i biary search, hashig assumes that keys are stored i a array which is idexed by a iteger. However, hashig attempts to bypass

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

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

U8L1: Sec Equations of Lines in R 2

U8L1: Sec Equations of Lines in R 2 MCVU U8L: Sec. 8.9. Equatios of Lies i R Review of Equatios of a Straight Lie (-D) Cosider the lie passig through A (-,) with slope, as show i the diagram below. I poit slope form, the equatio of the lie

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

Definitions and Theorems. where x are the decision variables. c, b, and a are constant coefficients.

Definitions and Theorems. where x are the decision variables. c, b, and a are constant coefficients. Defiitios ad Theorems Remember the scalar form of the liear programmig problem, Miimize, Subject to, f(x) = c i x i a 1i x i = b 1 a mi x i = b m x i 0 i = 1,2,, where x are the decisio variables. c, b,

More information

NUMERICAL METHODS FOR SOLVING EQUATIONS

NUMERICAL METHODS FOR SOLVING EQUATIONS Mathematics Revisio Guides Numerical Methods for Solvig Equatios Page 1 of 11 M.K. HOME TUITION Mathematics Revisio Guides Level: GCSE Higher Tier NUMERICAL METHODS FOR SOLVING EQUATIONS Versio:. Date:

More information

Problem Cosider the curve give parametrically as x = si t ad y = + cos t for» t» ß: (a) Describe the path this traverses: Where does it start (whe t =

Problem Cosider the curve give parametrically as x = si t ad y = + cos t for» t» ß: (a) Describe the path this traverses: Where does it start (whe t = Mathematics Summer Wilso Fial Exam August 8, ANSWERS Problem 1 (a) Fid the solutio to y +x y = e x x that satisfies y() = 5 : This is already i the form we used for a first order liear differetial equatio,

More information

Analysis of Algorithms. Introduction. Contents

Analysis of Algorithms. Introduction. Contents Itroductio The focus of this module is mathematical aspects of algorithms. Our mai focus is aalysis of algorithms, which meas evaluatig efficiecy of algorithms by aalytical ad mathematical methods. We

More information

CS 5150/6150: Assignment 1 Due: Sep 23, 2010

CS 5150/6150: Assignment 1 Due: Sep 23, 2010 CS 5150/6150: Assigmet 1 Due: Sep 23, 2010 Wei Liu September 24, 2010 Q1: (1) Usig master theorem: a = 7, b = 4, f() = O(). Because f() = log b a ε holds whe ε = log b a = log 4 7, we ca apply the first

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

1. By using truth tables prove that, for all statements P and Q, the statement

1. By using truth tables prove that, for all statements P and Q, the statement Author: Satiago Salazar Problems I: Mathematical Statemets ad Proofs. By usig truth tables prove that, for all statemets P ad Q, the statemet P Q ad its cotrapositive ot Q (ot P) are equivalet. I example.2.3

More information

CS / MCS 401 Homework 3 grader solutions

CS / MCS 401 Homework 3 grader solutions CS / MCS 401 Homework 3 grader solutios assigmet due July 6, 016 writte by Jāis Lazovskis maximum poits: 33 Some questios from CLRS. Questios marked with a asterisk were ot graded. 1 Use the defiitio of

More information

CALCULUS BASIC SUMMER REVIEW

CALCULUS BASIC SUMMER REVIEW CALCULUS BASIC SUMMER REVIEW NAME rise y y y Slope of a o vertical lie: m ru Poit Slope Equatio: y y m( ) The slope is m ad a poit o your lie is, ). ( y Slope-Itercept Equatio: y m b slope= m y-itercept=

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

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

Analysis of Algorithms -Quicksort-

Analysis of Algorithms -Quicksort- Aalysis of Algorithms -- Adreas Ermedahl MRTC (Mälardales Real-Time Research Ceter) adreas.ermedahl@mdh.se Autum 2004 Proposed by C.A.R. Hoare i 962 Worst- case ruig time: Θ( 2 ) Expected ruig time: Θ(

More information

Recurrence Relations

Recurrence Relations Recurrece Relatios Aalysis of recursive algorithms, such as: it factorial (it ) { if (==0) retur ; else retur ( * factorial(-)); } Let t be the umber of multiplicatios eeded to calculate factorial(). The

More information

Fortgeschrittene Datenstrukturen Vorlesung 11

Fortgeschrittene Datenstrukturen Vorlesung 11 Fortgeschrittee Datestruture Vorlesug 11 Schriftführer: Marti Weider 19.01.2012 1 Succict Data Structures (ctd.) 1.1 Select-Queries A slightly differet approach, compared to ra, is used for select. B represets

More information

SNAP Centre Workshop. Basic Algebraic Manipulation

SNAP Centre Workshop. Basic Algebraic Manipulation SNAP Cetre Workshop Basic Algebraic Maipulatio 8 Simplifyig Algebraic Expressios Whe a expressio is writte i the most compact maer possible, it is cosidered to be simplified. Not Simplified: x(x + 4x)

More information

We will conclude the chapter with the study a few methods and techniques which are useful

We will conclude the chapter with the study a few methods and techniques which are useful Chapter : Coordiate geometry: I this chapter we will lear about the mai priciples of graphig i a dimesioal (D) Cartesia system of coordiates. We will focus o drawig lies ad the characteristics of the graphs

More information

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) = AN INTRODUCTION TO SCHRÖDER AND UNKNOWN NUMBERS NICK DUFRESNE Abstract. I this article we will itroduce two types of lattice paths, Schröder paths ad Ukow paths. We will examie differet properties of each,

More information

Section 1.1. Calculus: Areas And Tangents. Difference Equations to Differential Equations

Section 1.1. Calculus: Areas And Tangents. Difference Equations to Differential Equations Differece Equatios to Differetial Equatios Sectio. Calculus: Areas Ad Tagets The study of calculus begis with questios about chage. What happes to the velocity of a swigig pedulum as its positio chages?

More information

CS 332: Algorithms. Linear-Time Sorting. Order statistics. Slide credit: David Luebke (Virginia)

CS 332: Algorithms. Linear-Time Sorting. Order statistics. Slide credit: David Luebke (Virginia) 1 CS 332: Algorithms Liear-Time Sortig. Order statistics. Slide credit: David Luebke (Virgiia) Quicksort: Partitio I Words Partitio(A, p, r): Select a elemet to act as the pivot (which?) Grow two regios,

More information

CHAPTER 10 INFINITE SEQUENCES AND SERIES

CHAPTER 10 INFINITE SEQUENCES AND SERIES CHAPTER 10 INFINITE SEQUENCES AND SERIES 10.1 Sequeces 10.2 Ifiite Series 10.3 The Itegral Tests 10.4 Compariso Tests 10.5 The Ratio ad Root Tests 10.6 Alteratig Series: Absolute ad Coditioal Covergece

More information

Divide & Conquer. Divide-and-conquer algorithms. Conventional product of polynomials. Conventional product of polynomials.

Divide & Conquer. Divide-and-conquer algorithms. Conventional product of polynomials. Conventional product of polynomials. Divide-ad-coquer algorithms Divide & Coquer Strategy: Divide the problem ito smaller subproblems of the same type of problem Solve the subproblems recursively Combie the aswers to solve the origial problem

More information

Lecture 1: Basic problems of coding theory

Lecture 1: Basic problems of coding theory Lecture 1: Basic problems of codig theory Error-Correctig Codes (Sprig 016) Rutgers Uiversity Swastik Kopparty Scribes: Abhishek Bhrushudi & Aditya Potukuchi Admiistrivia was discussed at the begiig of

More information

Chapter 10: Power Series

Chapter 10: Power Series Chapter : Power Series 57 Chapter Overview: Power Series The reaso series are part of a Calculus course is that there are fuctios which caot be itegrated. All power series, though, ca be itegrated because

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

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

MAT1026 Calculus II Basic Convergence Tests for Series

MAT1026 Calculus II Basic Convergence Tests for Series MAT026 Calculus II Basic Covergece Tests for Series Egi MERMUT 202.03.08 Dokuz Eylül Uiversity Faculty of Sciece Departmet of Mathematics İzmir/TURKEY Cotets Mootoe Covergece Theorem 2 2 Series of Real

More information

September 2012 C1 Note. C1 Notes (Edexcel) Copyright - For AS, A2 notes and IGCSE / GCSE worksheets 1

September 2012 C1 Note. C1 Notes (Edexcel) Copyright   - For AS, A2 notes and IGCSE / GCSE worksheets 1 September 0 s (Edecel) Copyright www.pgmaths.co.uk - For AS, A otes ad IGCSE / GCSE worksheets September 0 Copyright www.pgmaths.co.uk - For AS, A otes ad IGCSE / GCSE worksheets September 0 Copyright

More information

U8L1: Sec Equations of Lines in R 2

U8L1: Sec Equations of Lines in R 2 MCVU Thursda Ma, Review of Equatios of a Straight Lie (-D) U8L Sec. 8.9. Equatios of Lies i R Cosider the lie passig through A (-,) with slope, as show i the diagram below. I poit slope form, the equatio

More information

UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST. First Round For all Colorado Students Grades 7-12 November 3, 2007

UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST. First Round For all Colorado Students Grades 7-12 November 3, 2007 UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST First Roud For all Colorado Studets Grades 7- November, 7 The positive itegers are,,, 4, 5, 6, 7, 8, 9,,,,. The Pythagorea Theorem says that a + b =

More information

Properties and Tests of Zeros of Polynomial Functions

Properties and Tests of Zeros of Polynomial Functions Properties ad Tests of Zeros of Polyomial Fuctios The Remaider ad Factor Theorems: Sythetic divisio ca be used to fid the values of polyomials i a sometimes easier way tha substitutio. This is show by

More information

Divide and Conquer. 1 Overview. 2 Multiplying Bit Strings. COMPSCI 330: Design and Analysis of Algorithms 1/19/2016 and 1/21/2016

Divide and Conquer. 1 Overview. 2 Multiplying Bit Strings. COMPSCI 330: Design and Analysis of Algorithms 1/19/2016 and 1/21/2016 COMPSCI 330: Desig ad Aalysis of Algorithms 1/19/2016 ad 1/21/2016 Lecturer: Debmalya Paigrahi Divide ad Coquer Scribe: Tiaqi Sog 1 Overview I this lecture, a importat algorithm desig techique called divide-ad-coquer

More information

INTEGRATION BY PARTS (TABLE METHOD)

INTEGRATION BY PARTS (TABLE METHOD) INTEGRATION BY PARTS (TABLE METHOD) Suppose you wat to evaluate cos d usig itegratio by parts. Usig the u dv otatio, we get So, u dv d cos du d v si cos d si si d or si si d We see that it is ecessary

More information

Section 6.4: Series. Section 6.4 Series 413

Section 6.4: Series. Section 6.4 Series 413 ectio 64 eries 4 ectio 64: eries A couple decides to start a college fud for their daughter They pla to ivest $50 i the fud each moth The fud pays 6% aual iterest, compouded mothly How much moey will they

More information

Polynomial Functions and Their Graphs

Polynomial Functions and Their Graphs Polyomial Fuctios ad Their Graphs I this sectio we begi the study of fuctios defied by polyomial expressios. Polyomial ad ratioal fuctios are the most commo fuctios used to model data, ad are used extesively

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms Desig ad Aalysis of Algorithms CSE 53 Lecture 9 Media ad Order Statistics Juzhou Huag, Ph.D. Departmet of Computer Sciece ad Egieerig Dept. CSE, UT Arligto CSE53 Desig ad Aalysis of Algorithms Medias ad

More information

Algorithms and Data Structures Lecture IV

Algorithms and Data Structures Lecture IV Algorithms ad Data Structures Lecture IV Simoas Šalteis Aalborg Uiversity simas@cs.auc.dk September 5, 00 1 This Lecture Aalyzig the ruig time of recursive algorithms (such as divide-ad-coquer) Writig

More 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

CSE 4095/5095 Topics in Big Data Analytics Spring 2017; Homework 1 Solutions

CSE 4095/5095 Topics in Big Data Analytics Spring 2017; Homework 1 Solutions CSE 09/09 Topics i ig Data Aalytics Sprig 2017; Homework 1 Solutios Note: Solutios to problems,, ad 6 are due to Marius Nicolae. 1. Cosider the followig algorithm: for i := 1 to α log e do Pick a radom

More information

The z-transform. 7.1 Introduction. 7.2 The z-transform Derivation of the z-transform: x[n] = z n LTI system, h[n] z = re j

The z-transform. 7.1 Introduction. 7.2 The z-transform Derivation of the z-transform: x[n] = z n LTI system, h[n] z = re j The -Trasform 7. Itroductio Geeralie the complex siusoidal represetatio offered by DTFT to a represetatio of complex expoetial sigals. Obtai more geeral characteristics for discrete-time LTI systems. 7.

More information

Math 113 Exam 3 Practice

Math 113 Exam 3 Practice Math Exam Practice Exam will cover.-.9. This sheet has three sectios. The first sectio will remid you about techiques ad formulas that you should kow. The secod gives a umber of practice questios for you

More information

The Discrete Fourier Transform

The Discrete Fourier Transform The Discrete Fourier Trasform Complex Fourier Series Represetatio Recall that a Fourier series has the form a 0 + a k cos(kt) + k=1 b k si(kt) This represetatio seems a bit awkward, sice it ivolves two

More information

TEACHER CERTIFICATION STUDY GUIDE

TEACHER CERTIFICATION STUDY GUIDE COMPETENCY 1. ALGEBRA SKILL 1.1 1.1a. ALGEBRAIC STRUCTURES Kow why the real ad complex umbers are each a field, ad that particular rigs are ot fields (e.g., itegers, polyomial rigs, matrix rigs) Algebra

More 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

A Probabilistic Analysis of Quicksort

A Probabilistic Analysis of Quicksort A Probabilistic Aalysis of Quicsort You are assumed to be familiar with Quicsort. I each iteratio this sortig algorithm chooses a pivot ad the, by performig comparisios with the pivot, splits the remaider

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

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

Discrete-Time Systems, LTI Systems, and Discrete-Time Convolution

Discrete-Time Systems, LTI Systems, and Discrete-Time Convolution EEL5: Discrete-Time Sigals ad Systems. Itroductio I this set of otes, we begi our mathematical treatmet of discrete-time s. As show i Figure, a discrete-time operates or trasforms some iput sequece x [

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

CSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture)

CSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture) CSI 101 Discrete Structures Witer 01 Prof. Lucia Moura Uiversity of Ottawa Homework Assigmet #4 (100 poits, weight %) Due: Thursday, April, at 1:00pm (i lecture) Program verificatio, Recurrece Relatios

More information

Polynomials with Rational Roots that Differ by a Non-zero Constant. Generalities

Polynomials with Rational Roots that Differ by a Non-zero Constant. Generalities Polyomials with Ratioal Roots that Differ by a No-zero Costat Philip Gibbs The problem of fidig two polyomials P(x) ad Q(x) of a give degree i a sigle variable x that have all ratioal roots ad differ by

More information

Beurling Integers: Part 2

Beurling Integers: Part 2 Beurlig Itegers: Part 2 Isomorphisms Devi Platt July 11, 2015 1 Prime Factorizatio Sequeces I the last article we itroduced the Beurlig geeralized itegers, which ca be represeted as a sequece of real umbers

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

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

Solutions for the Exam 9 January 2012

Solutions for the Exam 9 January 2012 Mastermath ad LNMB Course: Discrete Optimizatio Solutios for the Exam 9 Jauary 2012 Utrecht Uiversity, Educatorium, 15:15 18:15 The examiatio lasts 3 hours. Gradig will be doe before Jauary 23, 2012. Studets

More information

Lecture 9: Hierarchy Theorems

Lecture 9: Hierarchy Theorems IAS/PCMI Summer Sessio 2000 Clay Mathematics Udergraduate Program Basic Course o Computatioal Complexity Lecture 9: Hierarchy Theorems David Mix Barrigto ad Alexis Maciel July 27, 2000 Most of this lecture

More information

7 Sequences of real numbers

7 Sequences of real numbers 40 7 Sequeces of real umbers 7. Defiitios ad examples Defiitio 7... A sequece of real umbers is a real fuctio whose domai is the set N of atural umbers. Let s : N R be a sequece. The the values of s are

More information

ACO Comprehensive Exam 9 October 2007 Student code A. 1. Graph Theory

ACO Comprehensive Exam 9 October 2007 Student code A. 1. Graph Theory 1. Graph Theory Prove that there exist o simple plaar triagulatio T ad two distict adjacet vertices x, y V (T ) such that x ad y are the oly vertices of T of odd degree. Do ot use the Four-Color Theorem.

More information

MA131 - Analysis 1. Workbook 3 Sequences II

MA131 - Analysis 1. Workbook 3 Sequences II MA3 - Aalysis Workbook 3 Sequeces II Autum 2004 Cotets 2.8 Coverget Sequeces........................ 2.9 Algebra of Limits......................... 2 2.0 Further Useful Results........................

More information

MA131 - Analysis 1. Workbook 2 Sequences I

MA131 - Analysis 1. Workbook 2 Sequences I MA3 - Aalysis Workbook 2 Sequeces I Autum 203 Cotets 2 Sequeces I 2. Itroductio.............................. 2.2 Icreasig ad Decreasig Sequeces................ 2 2.3 Bouded Sequeces..........................

More information

Chapter 9 - CD companion 1. A Generic Implementation; The Common-Merge Amplifier. 1 τ is. ω ch. τ io

Chapter 9 - CD companion 1. A Generic Implementation; The Common-Merge Amplifier. 1 τ is. ω ch. τ io Chapter 9 - CD compaio CHAPTER NINE CD-9.2 CD-9.2. Stages With Voltage ad Curret Gai A Geeric Implemetatio; The Commo-Merge Amplifier The advaced method preseted i the text for approximatig cutoff frequecies

More information

Problem Set 2 Solutions

Problem Set 2 Solutions CS271 Radomess & Computatio, Sprig 2018 Problem Set 2 Solutios Poit totals are i the margi; the maximum total umber of poits was 52. 1. Probabilistic method for domiatig sets 6pts Pick a radom subset S

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

Linear Programming and the Simplex Method

Linear Programming and the Simplex Method Liear Programmig ad the Simplex ethod Abstract This article is a itroductio to Liear Programmig ad usig Simplex method for solvig LP problems i primal form. What is Liear Programmig? Liear Programmig is

More information

Disjoint set (Union-Find)

Disjoint set (Union-Find) CS124 Lecture 7 Fall 2018 Disjoit set (Uio-Fid) For Kruskal s algorithm for the miimum spaig tree problem, we foud that we eeded a data structure for maitaiig a collectio of disjoit sets. That is, we eed

More information

USA Mathematical Talent Search Round 3 Solutions Year 27 Academic Year

USA Mathematical Talent Search Round 3 Solutions Year 27 Academic Year /3/27. Fill i each space of the grid with either a or a so that all sixtee strigs of four cosecutive umbers across ad dow are distict. You do ot eed to prove that your aswer is the oly oe possible; you

More information

CALCULATING FIBONACCI VECTORS

CALCULATING FIBONACCI VECTORS THE GENERALIZED BINET FORMULA FOR CALCULATING FIBONACCI VECTORS Stuart D Aderso Departmet of Physics, Ithaca College 953 Daby Road, Ithaca NY 14850, USA email: saderso@ithacaedu ad Dai Novak Departmet

More information

On Random Line Segments in the Unit Square

On Random Line Segments in the Unit Square O Radom Lie Segmets i the Uit Square Thomas A. Courtade Departmet of Electrical Egieerig Uiversity of Califoria Los Ageles, Califoria 90095 Email: tacourta@ee.ucla.edu I. INTRODUCTION Let Q = [0, 1] [0,

More information

10.6 ALTERNATING SERIES

10.6 ALTERNATING SERIES 0.6 Alteratig Series Cotemporary Calculus 0.6 ALTERNATING SERIES I the last two sectios we cosidered tests for the covergece of series whose terms were all positive. I this sectio we examie series whose

More information

Quadratic Functions. Before we start looking at polynomials, we should know some common terminology.

Quadratic Functions. Before we start looking at polynomials, we should know some common terminology. Quadratic Fuctios I this sectio we begi the study of fuctios defied by polyomial expressios. Polyomial ad ratioal fuctios are the most commo fuctios used to model data, ad are used extesively i mathematical

More information

t distribution [34] : used to test a mean against an hypothesized value (H 0 : µ = µ 0 ) or the difference

t distribution [34] : used to test a mean against an hypothesized value (H 0 : µ = µ 0 ) or the difference EXST30 Backgroud material Page From the textbook The Statistical Sleuth Mea [0]: I your text the word mea deotes a populatio mea (µ) while the work average deotes a sample average ( ). Variace [0]: The

More information

6.867 Machine learning, lecture 7 (Jaakkola) 1

6.867 Machine learning, lecture 7 (Jaakkola) 1 6.867 Machie learig, lecture 7 (Jaakkola) 1 Lecture topics: Kerel form of liear regressio Kerels, examples, costructio, properties Liear regressio ad kerels Cosider a slightly simpler model where we omit

More information

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018 CSE 353 Discrete Computatioal Structures Sprig 08 Sequeces, Mathematical Iductio, ad Recursio (Chapter 5, Epp) Note: some course slides adopted from publisher-provided material Overview May mathematical

More information

Lesson 10: Limits and Continuity

Lesson 10: Limits and Continuity www.scimsacademy.com Lesso 10: Limits ad Cotiuity SCIMS Academy 1 Limit of a fuctio The cocept of limit of a fuctio is cetral to all other cocepts i calculus (like cotiuity, derivative, defiite itegrals

More information

w (1) ˆx w (1) x (1) /ρ and w (2) ˆx w (2) x (2) /ρ.

w (1) ˆx w (1) x (1) /ρ and w (2) ˆx w (2) x (2) /ρ. 2 5. Weighted umber of late jobs 5.1. Release dates ad due dates: maximimizig the weight of o-time jobs Oce we add release dates, miimizig the umber of late jobs becomes a sigificatly harder problem. For

More information

CIS 121 Data Structures and Algorithms with Java Spring Code Snippets and Recurrences Monday, February 4/Tuesday, February 5

CIS 121 Data Structures and Algorithms with Java Spring Code Snippets and Recurrences Monday, February 4/Tuesday, February 5 CIS 11 Data Structures ad Algorithms with Java Sprig 019 Code Sippets ad Recurreces Moday, February 4/Tuesday, February 5 Learig Goals Practice provig asymptotic bouds with code sippets Practice solvig

More information

Complex Analysis Spring 2001 Homework I Solution

Complex Analysis Spring 2001 Homework I Solution Complex Aalysis Sprig 2001 Homework I Solutio 1. Coway, Chapter 1, sectio 3, problem 3. Describe the set of poits satisfyig the equatio z a z + a = 2c, where c > 0 ad a R. To begi, we see from the triagle

More information

CS 332: Algorithms. Quicksort

CS 332: Algorithms. Quicksort CS 33: Aorithms Quicsort David Luebe //03 Homewor Assiged today, due ext Wedesday Will be o web page shortly after class Go over ow David Luebe //03 Review: Quicsort Sorts i place Sorts O( ) i the average

More information

Principle Of Superposition

Principle Of Superposition ecture 5: PREIMINRY CONCEP O RUCUR NYI Priciple Of uperpositio Mathematically, the priciple of superpositio is stated as ( a ) G( a ) G( ) G a a or for a liear structural system, the respose at a give

More information

RADICAL EXPRESSION. If a and x are real numbers and n is a positive integer, then x is an. n th root theorems: Example 1 Simplify

RADICAL EXPRESSION. If a and x are real numbers and n is a positive integer, then x is an. n th root theorems: Example 1 Simplify Example 1 Simplify 1.2A Radical Operatios a) 4 2 b) 16 1 2 c) 16 d) 2 e) 8 1 f) 8 What is the relatioship betwee a, b, c? What is the relatioship betwee d, e, f? If x = a, the x = = th root theorems: RADICAL

More information

11. FINITE FIELDS. Example 1: The following tables define addition and multiplication for a field of order 4.

11. FINITE FIELDS. Example 1: The following tables define addition and multiplication for a field of order 4. 11. FINITE FIELDS 11.1. A Field With 4 Elemets Probably the oly fiite fields which you ll kow about at this stage are the fields of itegers modulo a prime p, deoted by Z p. But there are others. Now although

More information

Signals & Systems Chapter3

Signals & Systems Chapter3 Sigals & Systems Chapter3 1.2 Discrete-Time (D-T) Sigals Electroic systems do most of the processig of a sigal usig a computer. A computer ca t directly process a C-T sigal but istead eeds a stream of

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

Linear Regression Demystified

Linear Regression Demystified Liear Regressio Demystified Liear regressio is a importat subject i statistics. I elemetary statistics courses, formulae related to liear regressio are ofte stated without derivatio. This ote iteds to

More information

MATH 205 HOMEWORK #2 OFFICIAL SOLUTION. (f + g)(x) = f(x) + g(x) = f( x) g( x) = (f + g)( x)

MATH 205 HOMEWORK #2 OFFICIAL SOLUTION. (f + g)(x) = f(x) + g(x) = f( x) g( x) = (f + g)( x) MATH 205 HOMEWORK #2 OFFICIAL SOLUTION Problem 2: Do problems 7-9 o page 40 of Hoffma & Kuze. (7) We will prove this by cotradictio. Suppose that W 1 is ot cotaied i W 2 ad W 2 is ot cotaied i W 1. The

More information

Massachusetts Institute of Technology

Massachusetts Institute of Technology 6.0/6.3: Probabilistic Systems Aalysis (Fall 00) Problem Set 8: Solutios. (a) We cosider a Markov chai with states 0,,, 3,, 5, where state i idicates that there are i shoes available at the frot door i

More information

Disjoint Systems. Abstract

Disjoint Systems. Abstract Disjoit Systems Noga Alo ad Bey Sudaov Departmet of Mathematics Raymod ad Beverly Sacler Faculty of Exact Scieces Tel Aviv Uiversity, Tel Aviv, Israel Abstract A disjoit system of type (,,, ) is a collectio

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

1 of 7 7/16/2009 6:06 AM Virtual Laboratories > 6. Radom Samples > 1 2 3 4 5 6 7 6. Order Statistics Defiitios Suppose agai that we have a basic radom experimet, ad that X is a real-valued radom variable

More information

SEQUENCES AND SERIES

SEQUENCES AND SERIES Sequeces ad 6 Sequeces Ad SEQUENCES AND SERIES Successio of umbers of which oe umber is desigated as the first, other as the secod, aother as the third ad so o gives rise to what is called a sequece. Sequeces

More information