In general, we need to describe how much time or memory will be required with respect to one or more variables. The most common variables include:
|
|
- Oswin Claude Merritt
- 5 years ago
- Views:
Transcription
1 2.3 Asymptotic Aalysis It has already bee described qualitatively that if we ited to store othig but objects, that this ca be doe quickly usig a hash table; however, if we wish to store relatioships ad perform queries ad data maipulatios based o that relatioship, it will require more time ad memory. The words quickly ad more are qualitative. I order to make ratioal egieerig decisios about implemetatios of data structures ad algorithms, it is ecessary to describe such properties quatitatively: How much faster? ad How much more memory? The best case to be made is that a ew algorithm may be kow to be faster tha aother algorithm, but that oe word will ot be able to allow ay professioal egieer to determie whether or ot the ewer algorithm is worth the seve perso-weeks required to implemet, itegrate, documet, ad test the ew algorithm. I some cases, it may be simply easier to buy a faster computer Variables of Aalysis I geeral, we eed to describe how much time or memory will be required with respect to oe or more variables. The most commo variables iclude: 1. The umber of objects that are curretly stored i a cotaier, 2. The umber of objects m that the cotaier could possibly hold, or 3. The dimesios of a square matrix. I some cases, we may deal with multiple variables: 1. Whe dealig with objects stored i a cotaier with m memory locatios, 2. Dealig with o-square m matrices, ad 3. Dealig with sparse square matrices where oly m etries are o-zero. We will use the followig code as a example throughout the ext two topics: it fid_max( it *array, it ) { it max = array[0]; for ( it i = 1; i < ; ++i ) { if ( array[i] > max ) { max = array[i]; retur max; Fidig the maximum etry i a array requires that every etry of array to be ispected. We would expect that if we double the size of the array, we would expect it to take twice as log to fid the maximum etry. Page 1 of 12
2 If we multiply a matrix by a -dimesioal vector. Each etry of the matrix is multiplied by oe etry i the vector. Therefore, if we multiply a 2 2 matrix by a 2-dimesioal vector, we would expect four times as may multiplicatios ad therefore it should take about four times as log. The questio is, how ca we express this mathematically? Biary Search versus Liear Search As aother example, cosider searchig a array for a value. If the array is sorted, we ca do a biary search but if the array is ot sorted, we must perform a liear search checkig each etry of the array. Here are two implemetatios of these fuctios. it liear_search( it value, it *array, it ) { for ( it i = 0; i < ; ++i ) { if ( array[i] == value ) { retur i; retur -1; it biary_search( it value, it *array, it ) { it a = 0; it c = - 1; while ( a <= c ) { it b = (a + c)/2; if ( array[b] == value ) { retur b; else if ( array[b] < value ) { a = b + 1; else { c = b - 1; retur -1; I each case, there is a worst case as to how may etries of the array will be checked; however, there is also a average umber of etries that will be checked. Figure 1 shows the worst-case ad average umber of comparisos required by both the liear ad biary searches i searchig a array of size from 1 to 32. Page 2 of 12
3 Figure 1. The average ad worst-case umber of comparisos required for usig a liear search (blue) ad a biary search (red) o a array if size = 1,..., 32. It seems that eve the worst-case for a biary search is sigificatly better tha the average case for a liear search. Also, the umber of comparisos required for a liear search appears to grow, well, liearly, whereas the umber of searches required for a biary search appears to be growig at the same rate as either or l(). Which oe is it ad why? Aother issue is what do we really care about? If Algorithm A rus twice as fast as Algorithm B, it is always possible to simply purchase a faster computer i which case Algorithm B will perform just as well, if ot better tha Algorithm A. A importat questio about the liear search versus the biary search is: ca we purchase a computer fast eough so that liear search will always outperform a biary search implemeted o the 1980s-era processor? Rate of Growth of Polyomials Cosider ay two polyomials of the same degree. If the coefficiets of the leadig term are the same, while the fuctios may be very differet aroud zero, as you plot them o larger ad larger itervals, they will appear to be essetially the same. Figure 2 shows two quadratic polyomials, 2 ad , ad while they appear differet o the iterval [0, 3], o [0, 1000], they are essetially idetical. Page 3 of 12
4 Figure 2. Two quadratic polyomials plotted over [0, 3] ad [0, 1000]. Figure 3 shows two sextic policomials: 6 ad ad while they appear to be very differet o the iterval [ 2, 5], but agai, o the iterval [0, 1000], they appear to be essetially idetical. Figure3. Two sextic polyomials plotted o [ 2, 5] ad agai o [0, 1000]. If two polyomials have the same degree but the coefficiets of the leadig terms are differet, agai, while they may appear to be sigificatly differet aroud the origi, o a larger scale, oe will simply be a scalar multiple of the other Examples of Algorithm Aalysis For example, Selectio Sort Bubble Sort best case worst case describe the umber of istructios required to implemet selectio sort ad bubble sort to sort a list of size, respectively. You ca look at appedix A to see the C++ source code ad disassembled object code produced by g++. Iitially, selectio sort requires sigificatly eve more istructios tha the worst-case for bubble sort; however, for problems of size 18, selectio sort performs better tha the worst-case bubble sort. As the problem size becomes very large, selectio sort falls approximately half way betwee the best ad worst cases of bubble sort. This is show i Figure 4. Page 4 of 12
5 Figure 4. The istructios required to sort a array of size for selectio sort (blue) ad the best ad worst case scearios for bubble sort (red). As the problem size gets larger ad larger, the rate of growth of all three fuctios is similar: the best case for bubble sort will require approximately the umber of istructios for selectio sort ad the worst case will require times the umber of istructios. Because the umber of istructios ca be calculated directly, we ca also approximate the time it will take to execute this code o, for example, a computer ruig at 1 GHz: divide the umber of istructios by However, we ca also, for example, ru selectio sort o a computer that rus at 2 GHz. Figure 5 shows the best ad worst cases for bubble sort ru o a 1 GHz computer; however, the left image shows the time required by selectio sort ru o a 1 GHz computer while the right shows it ru o a 2 GHz computer. Figure 5. Time required to sort a problem of size up to oe millio for bubble sort ru o a 1 GHz computer ad selectio sort ru o 1 ad 2 GHz computers, respectively. Page 5 of 12
6 The critical poit here is that selectio sort is ot sigificatly better or worse tha bubble sort. Ay differet i speed ca be compesated by usig better hardware Big-Oh ad Big-Theta What we eed is a way of sayig that two fuctios are growig at the same rate that is, they are essetially growig at the same rate. To do this, we must recall a cocept from first year: big-oh otatio. This is oe of five Ladau symbols that we will use i this class. You will recall that i first year, you described f() = O(g()) if M > 0 ad N 0 > such that f( ) Mg < wheever > N. If we are dealig with fuctios such as liear combiatios of terms like r or r l() where r is a positive real umber where the fial result is mootoically icreasig ad positive for > 0 (behaviours we would expect from fuctios describig algorithms), the f() = O(g()) is equivalet to sayig that f lim g However, to say that two fuctios are growig at the same rate, we eed a stroger restrictio: two fuctios will be said to be growig at the same rate if ad we will write that f() = Θ(g()). <. f 0 < lim < g For example, two polyomials of the same degree are big-theta of each other because the above limit will be the ratio of the coefficiets of the leadig terms, for example, For real values p 0 ad q 0, it is true that 1. p = Θ( q ) if ad oly if p = q, ad 2. p = O( q ) if ad oly if p q Cosequece = 2 lim If f() ad g() describes either the time required or the umber of istructios required for two differet algorithms to solve a problem of size ad f() = Θ(g()), we ca always make oe fuctio ru faster tha the other by havig sufficietly better hardware. Page 6 of 12
7 2.3.6 Little-oh Cosider the two fuctios f() = ad g() = l(). It is already true that for all > 0, > l(). However, is there a sufficietly small value of c > 0 such that l() > c for all > N for some N? A little thought will probably covice you that o such positive umber exists, for o matter what umber we choose, ( 1 ) l 1 1 lim = lim = lim = 0. c c c Therefore, the logarithm grows sigificatly slower tha the fuctio. We would also like to describe whe oe fuctio f() grows sigificatly slower tha aother fuctio g(), ad therefore we will say that f() = o(g()) (little-oh) if f lim = 0. g Thus, we could write that l() = o(). A ice way of rememberig this is that the little o looks like a zero ad the limit is zero. We may cotiue the aalogy: for real values p 0 ad q 0, it is true that 1. p = Θ( q ) if ad oly if p = q, 2. p = O( q ) if ad oly if p q, ad 3. p = o( q ) if ad oly if p < q Little-omega ad Big-Omega Curret, we have the followig table: Ladau Symbol Limit Descriptio Aalogous Relatioal Operator f() = Θ(g()) 0 < c < f grows at the same rate as g = f() = O(g()) c < f grows at the same rate as or slower tha g f() = o(g()) 0 f grows sigificatly slower tha g < What we are missig are meas of describig if oe fuctios grows faster tha aother fuctio. We will add two more Ladau symbols: ω ad Ω. We will say that f() grows sigificatly faster tha g() if f lim g ad we will write this as f() = ω(g()). Note that little-omega looks like the ifiity symbol. = Page 7 of 12
8 We will also say that f() grows either at the same rate or faster tha g() if ad we will write this as f() = Ω(g()). f lim > 0 g We may cotiue the aalogy: for real values p 0 ad q 0, it is true that 1. p = ω( q ) if ad oly if p > q, ad 2. p = Ω( q ) if ad oly if p q. Thus, we have the full table: Ladau Symbol Limit Descriptio Aalogous Relatioal Operator f() = ω(g()) f grows sigificatly faster tha g > f() = Ω(g()) 0 < c f grows at the same rate as or faster tha g f() = Θ(g()) 0 < c < f grows at the same rate as g = f() = O(g()) c < f grows at the same rate as or slower tha g f() = o(g()) 0 f grows sigificatly slower tha g < Big-Theta as a Equivalece Relatio There are some iterestig characteristics of Ladau symbols with respect to the fuctios that we are iterested i: 1. f() = Θ(f()), 2. f() = Θ(g()) if ad oly if g() = Θ(f()), ad 3. If f() = Θ(g()) ad g() = Θ(h()), it follows that f() = Θ(h()). Therefore, big-theta defies a equivalece relatio o fuctios. Oe of the properties of equivalece relatios is that you ca create equivalece classes of all fuctios that are big-theta of each other. For example, all of the fuctios l() l() grow at the same rate as each other. Therefore, to describe this etire equivalece class of fuctios that grow at the same rate as a quadratic moomial, we will select o member to represet the etire class ad while we could chose , it would make more sese to choose 2 ad call this class of fuctios quadraticly growig fuctios. Page 8 of 12
9 There are specific equivalece classes that appear so ofte i the discussio of algorithm aalysis that we give them special ames. These are listed i Table 1. Table 1. Equivalece classes of equivalet rates of growth. Equivalece Class Represetative Costat 1 Logarithmic l() Liear N -log- l() Quadratic 2 Cubic 3 Expoetials 2, e, 3, etc. Note that with the expoetial fuctios, there is ot oe sigle represetative, for if a < b the a grows slower tha b : a a lim = lim 0 = b b a because 1 b < Little-oh as a Weak Orderig We have already oted that for ay real 0 p < q, it follows that p = o( q ) ad therefore, we ca order the equivalece classes. I additio to these classes, we also ote that ( ) 1 = o l, however, l() = o( p ) for ay p > 0. This ca be see by seeig that l ( 1 ) 1 1 lim lim lim 0 p p 1 p = p = p = as p > 0. Similarly, p = o( q l()) for ay 0 p q ad q l() = o( r ) for ay 0 q < r. Graphically, we ca show this weak orderig as show i Figure 6. Figure 6. The orderig of the equivalece classes of fuctios growig at the same rate. Page 9 of 12
10 Notes (beyod the scope of this class) We could also cosider fuctios that grow accordig to p l q () where p, q 0 as well as fuctios such as l(l()). There are searchig algorithms that ca ru as fast as Θ(l(l())) meaig that a problem of size = requires oly four times loger to solve tha a problem of size = 15. We are restrictig our defiitios to usig limits. To be more correct, we should use the limit supremum ad limit ifimum. Techically, we should say that f() = Θ(g()) if f ( ) f ( ) 0 < limif limsup < g( ) g( ) ad f() = O(g()) if f ( ) limsup <. g What s Next? We will use Ladau symbols to describe the ru-times ad memory usage of various data structures ad algorithms. A algorithm will be said to have polyomial time complexity if its ru time may be described by O( p ) for some p 0. I a geeral sese, problems that ca be solved with kow polyomial time algorithms are said to be efficietly solvable or tractable. Problems for which there are o algorithms that ca solve the problem i polyomial time are said to be itractable. For example, the travellig salesma problem (fid the shortest path that visits each of cities exactly oce) ca oly be solved by a algorithm that is requires Θ( 2 2 ) time: add oe more city ad the algorithm takes more tha twice as log to ru. Add 10 cities ad the algorithm takes more tha 2 10 = 1024 times to ru. Algorithms that require a expoetial amout of time are, for the most part, udesirable. Be sure to ever describe a fuctio with quadratic growth as expoetial. Page 10 of 12
11 Appedix A Source Code void bubble_sort( it *array, it ) { for ( it i = ( - 1); i >= 1; --i ) { for ( it j = 0; j < i; ++j ) { if ( array[j] > array[j + 1] ) { it tmp = array[j]; array[j] = array[j + 1]; array[j + 1] = tmp; Output of % g++ -O -c bubble_sort.cpp % objdump d bubble_sort.o 0: 83 ee 01 sub $0x1,%esi 3: 85 f6 test %esi,%esi 5: 7f 21 jg 28 7: f3 c3 repz retq 9: 8b 0c 87 mov (%rdi,%rax,4),%ecx c: 8b mov 0x4(%rdi,%rax,4),%edx 10: 39 d1 cmp %edx,%ecx 12: 7e 07 jle 1b 14: mov %edx,(%rdi,%rax,4) 17: 89 4c mov %ecx,0x4(%rdi,%rax,4) 1b: c0 01 add $0x1,%rax 1f: 39 c6 cmp %eax,%esi 21: 7f e6 jg 9 23: 83 ee 01 sub $0x1,%esi 26: je 2f 28: b mov $0x0,%eax 2d: eb da jmp 9 2f: f3 c3 repz retq Page 11 of 12
12 Soucre Code void selectio_sort( it *array, it cost ) { for ( it i = ( - 1); i >= 1; --i ) { it pos = 0; for ( it j = 1; j <= i; ++j ) { if ( array[j] > array[pos] ) { pos = j; it tmp = array[i]; array[i] = array[pos]; array[pos] = tmp; Output of % g++ -O -c selectio_sort.cpp % objdump d selectio_sort.o 0: 83 ee 01 sub $0x1,%esi 3: c6 movslq %esi,%rax 6: 85 f6 test %esi,%esi 8: 4c 8d lea (%rdi,%rax,4),%r10 c: 7e 45 jle 53 e: f9 mov %rdi,%r9 11: b mov $0x1,%ecx 16: c0 xor %r8d,%r8d 19: 0f 1f opl 0x0(%rax) 20: 41 8b mov 0x4(%r9),%eax 24: 42 3b cmp (%rdi,%r8,4),%eax 28: d1 movslq %ecx,%rdx 2b: 4c 0f 4f c2 cmovg %rdx,%r8 2f: 83 c1 01 add $0x1,%ecx 32: c1 04 add $0x4,%r9 36: 39 f1 cmp %esi,%ecx 38: 7e e6 jle 20 3a: 4a 8d lea (%rdi,%r8,4),%rdx 3e: 41 8b 0a mov (%r10),%ecx 41: 8b 02 mov (%rdx),%eax 43: mov %eax,(%r10) 46: ea 04 sub $0x4,%r10 4a: 83 ee 01 sub $0x1,%esi 4d: 89 0a mov %ecx,(%rdx) 4f: 75 bd je e 51: f3 c3 repz retq 53: f3 c3 repz retq Page 12 of 12
Advanced Course of Algorithm Design and Analysis
Differet complexity measures Advaced Course of Algorithm Desig ad Aalysis Asymptotic complexity Big-Oh otatio Properties of O otatio Aalysis of simple algorithms A algorithm may may have differet executio
More informationThe Growth of Functions. Theoretical Supplement
The Growth of Fuctios Theoretical Supplemet The Triagle Iequality The triagle iequality is a algebraic tool that is ofte useful i maipulatig absolute values of fuctios. The triagle iequality says that
More informationPolynomial 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 informationAlgorithm Analysis. Algorithms that are equally correct can vary in their utilization of computational resources
Algorithm Aalysis Algorithms that are equally correct ca vary i their utilizatio of computatioal resources time ad memory a slow program it is likely ot to be used a program that demads too much memory
More informationCS 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 information62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +
62. Power series Defiitio 16. (Power series) Give a sequece {c }, the series c x = c 0 + c 1 x + c 2 x 2 + c 3 x 3 + is called a power series i the variable x. The umbers c are called the coefficiets of
More informationRecursive Algorithms. Recurrences. Recursive Algorithms Analysis
Recursive Algorithms Recurreces Computer Sciece & Egieerig 35: Discrete Mathematics Christopher M Bourke cbourke@cseuledu A recursive algorithm is oe i which objects are defied i terms of other objects
More informationCHAPTER 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 informationEE / EEE SAMPLE STUDY MATERIAL. GATE, IES & PSUs Signal System. Electrical Engineering. Postal Correspondence Course
Sigal-EE Postal Correspodece Course 1 SAMPLE STUDY MATERIAL Electrical Egieerig EE / EEE Postal Correspodece Course GATE, IES & PSUs Sigal System Sigal-EE Postal Correspodece Course CONTENTS 1. SIGNAL
More informationLesson 10: Limits and Continuity
www.scimsacademy.com Lesso 10: Limits ad Cotiuity SCIMS Academy 1 Limit of a fuctio The cocept of limit of a fuctio is cetral to all other cocepts i calculus (like cotiuity, derivative, defiite itegrals
More informationIP 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 informationMath 2784 (or 2794W) University of Connecticut
ORDERS OF GROWTH PAT SMITH Math 2784 (or 2794W) Uiversity of Coecticut Date: Mar. 2, 22. ORDERS OF GROWTH. Itroductio Gaiig a ituitive feel for the relative growth of fuctios is importat if you really
More informationOPTIMAL 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 informationModel of Computation and Runtime Analysis
Model of Computatio ad Rutime Aalysis Model of Computatio Model of Computatio Specifies Set of operatios Cost of operatios (ot ecessarily time) Examples Turig Machie Radom Access Machie (RAM) PRAM Map
More informationSequences. Notation. Convergence of a Sequence
Sequeces A sequece is essetially just a list. Defiitio (Sequece of Real Numbers). A sequece of real umbers is a fuctio Z (, ) R for some real umber. Do t let the descriptio of the domai cofuse you; it
More informationSection 11.8: Power Series
Sectio 11.8: Power Series 1. Power Series I this sectio, we cosider geeralizig the cocept of a series. Recall that a series is a ifiite sum of umbers a. We ca talk about whether or ot it coverges ad i
More informationRecurrence Relations
Recurrece Relatios Aalysis of recursive algorithms, such as: it factorial (it ) { if (==0) retur ; else retur ( * factorial(-)); } Let t be the umber of multiplicatios eeded to calculate factorial(). The
More informationClassification of problem & problem solving strategies. classification of time complexities (linear, logarithmic etc)
Classificatio of problem & problem solvig strategies classificatio of time complexities (liear, arithmic etc) Problem subdivisio Divide ad Coquer strategy. Asymptotic otatios, lower boud ad upper boud:
More informationA New Method to Order Functions by Asymptotic Growth Rates Charlie Obimbo Dept. of Computing and Information Science University of Guelph
A New Method to Order Fuctios by Asymptotic Growth Rates Charlie Obimbo Dept. of Computig ad Iformatio Sciece Uiversity of Guelph ABSTRACT A ew method is described to determie the complexity classes of
More informationAnalysis of Algorithms. Introduction. Contents
Itroductio The focus of this module is mathematical aspects of algorithms. Our mai focus is aalysis of algorithms, which meas evaluatig efficiecy of algorithms by aalytical ad mathematical methods. We
More informationData Structures and Algorithm. Xiaoqing Zheng
Data Structures ad Algorithm Xiaoqig Zheg zhegxq@fudaeduc What are algorithms? A sequece of computatioal steps that trasform the iput ito the output Sortig problem: Iput: A sequece of umbers
More informationChapter 22 Developing Efficient Algorithms
Chapter Developig Efficiet Algorithms 1 Executig Time Suppose two algorithms perform the same task such as search (liear search vs. biary search). Which oe is better? Oe possible approach to aswer this
More informationModel of Computation and Runtime Analysis
Model of Computatio ad Rutime Aalysis Model of Computatio Model of Computatio Specifies Set of operatios Cost of operatios (ot ecessarily time) Examples Turig Machie Radom Access Machie (RAM) PRAM Map
More informationOnce we have a sequence of numbers, the next thing to do is to sum them up. Given a sequence (a n ) n=1
. Ifiite Series Oce we have a sequece of umbers, the ext thig to do is to sum them up. Give a sequece a be a sequece: ca we give a sesible meaig to the followig expressio? a = a a a a While summig ifiitely
More informationChapter 6 Infinite Series
Chapter 6 Ifiite Series I the previous chapter we cosidered itegrals which were improper i the sese that the iterval of itegratio was ubouded. I this chapter we are goig to discuss a topic which is somewhat
More informationCh3. Asymptotic Notation
Ch. Asymptotic Notatio copyright 006 Preview of Chapters Chapter How to aalyze the space ad time complexities of program Chapter Review asymptotic otatios such as O, Ω, Θ, o for simplifyig the aalysis
More informationA 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 informationZeros of Polynomials
Math 160 www.timetodare.com 4.5 4.6 Zeros of Polyomials I these sectios we will study polyomials algebraically. Most of our work will be cocered with fidig the solutios of polyomial equatios of ay degree
More informationMAT 271 Project: Partial Fractions for certain rational functions
MAT 7 Project: Partial Fractios for certai ratioal fuctios Prerequisite kowledge: partial fractios from MAT 7, a very good commad of factorig ad complex umbers from Precalculus. To complete this project,
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
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 informationSequences 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 informationINTEGRATION 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 information4.3 Growth Rates of Solutions to Recurrences
4.3. GROWTH RATES OF SOLUTIONS TO RECURRENCES 81 4.3 Growth Rates of Solutios to Recurreces 4.3.1 Divide ad Coquer Algorithms Oe of the most basic ad powerful algorithmic techiques is divide ad coquer.
More informationMAT1026 Calculus II Basic Convergence Tests for Series
MAT026 Calculus II Basic Covergece Tests for Series Egi MERMUT 202.03.08 Dokuz Eylül Uiversity Faculty of Sciece Departmet of Mathematics İzmir/TURKEY Cotets Mootoe Covergece Theorem 2 2 Series of Real
More informationTest One (Answer Key)
CS395/Ma395 (Sprig 2005) Test Oe Name: Page 1 Test Oe (Aswer Key) CS395/Ma395: Aalysis of Algorithms This is a closed book, closed otes, 70 miute examiatio. It is worth 100 poits. There are twelve (12)
More information6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer.
6 Itegers Modulo I Example 2.3(e), we have defied the cogruece of two itegers a,b with respect to a modulus. Let us recall that a b (mod ) meas a b. We have proved that cogruece is a equivalece relatio
More information6.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 informationSums, products and sequences
Sums, products ad sequeces How to write log sums, e.g., 1+2+ (-1)+ cocisely? i=1 Sum otatio ( sum from 1 to ): i 3 = 1 + 2 + + If =3, i=1 i = 1+2+3=6. The ame ii does ot matter. Could use aother letter
More informationENGI Series Page 6-01
ENGI 3425 6 Series Page 6-01 6. Series Cotets: 6.01 Sequeces; geeral term, limits, covergece 6.02 Series; summatio otatio, covergece, divergece test 6.03 Stadard Series; telescopig series, geometric series,
More informationProperties and Tests of Zeros of Polynomial Functions
Properties ad Tests of Zeros of Polyomial Fuctios The Remaider ad Factor Theorems: Sythetic divisio ca be used to fid the values of polyomials i a sometimes easier way tha substitutio. This is show by
More informationInfinite Sequences and Series
Chapter 6 Ifiite Sequeces ad Series 6.1 Ifiite Sequeces 6.1.1 Elemetary Cocepts Simply speakig, a sequece is a ordered list of umbers writte: {a 1, a 2, a 3,...a, a +1,...} where the elemets a i represet
More informationQuadratic 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 informationSECTION 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 informationIf a subset E of R contains no open interval, is it of zero measure? For instance, is the set of irrationals in [0, 1] is of measure zero?
2 Lebesgue Measure I Chapter 1 we defied the cocept of a set of measure zero, ad we have observed that every coutable set is of measure zero. Here are some atural questios: If a subset E of R cotais a
More informationTHE 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 informationContinuous Functions
Cotiuous Fuctios Q What does it mea for a fuctio to be cotiuous at a poit? Aswer- I mathematics, we have a defiitio that cosists of three cocepts that are liked i a special way Cosider the followig defiitio
More informationCS 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 information3.2 Properties of Division 3.3 Zeros of Polynomials 3.4 Complex and Rational Zeros of Polynomials
Math 60 www.timetodare.com 3. Properties of Divisio 3.3 Zeros of Polyomials 3.4 Complex ad Ratioal Zeros of Polyomials I these sectios we will study polyomials algebraically. Most of our work will be cocered
More informationCS583 Lecture 02. Jana Kosecka. some materials here are based on E. Demaine, D. Luebke slides
CS583 Lecture 02 Jaa Kosecka some materials here are based o E. Demaie, D. Luebke slides Previously Sample algorithms Exact ruig time, pseudo-code Approximate ruig time Worst case aalysis Best case aalysis
More informationNUMERICAL 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 informationApply change-of-basis formula to rewrite x as a linear combination of eigenvectors v j.
Eigevalue-Eigevector Istructor: Nam Su Wag eigemcd Ay vector i real Euclidea space of dimesio ca be uiquely epressed as a liear combiatio of liearly idepedet vectors (ie, basis) g j, j,,, α g α g α g α
More informationChapter 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(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 informationThe 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 informationCS161 Handout 05 Summer 2013 July 10, 2013 Mathematical Terms and Identities
CS161 Hadout 05 Summer 2013 July 10, 2013 Mathematical Terms ad Idetities Thaks to Ady Nguye ad Julie Tibshirai for their advice o this hadout. This hadout covers mathematical otatio ad idetities that
More informationKinetics of Complex Reactions
Kietics of Complex Reactios by Flick Colema Departmet of Chemistry Wellesley College Wellesley MA 28 wcolema@wellesley.edu Copyright Flick Colema 996. All rights reserved. You are welcome to use this documet
More informationx a x a Lecture 2 Series (See Chapter 1 in Boas)
Lecture Series (See Chapter i Boas) A basic ad very powerful (if pedestria, recall we are lazy AD smart) way to solve ay differetial (or itegral) equatio is via a series expasio of the correspodig solutio
More informationCALCULATING 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 informationWeb Appendix O - Derivations of the Properties of the z Transform
M. J. Roberts - 2/18/07 Web Appedix O - Derivatios of the Properties of the z Trasform O.1 Liearity Let z = x + y where ad are costats. The ( z)= ( x + y )z = x z + y z ad the liearity property is O.2
More information3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,
3. Z Trasform Referece: Etire Chapter 3 of text. Recall that the Fourier trasform (FT) of a DT sigal x [ ] is ω ( ) [ ] X e = j jω k = xe I order for the FT to exist i the fiite magitude sese, S = x [
More informationSection 1 of Unit 03 (Pure Mathematics 3) Algebra
Sectio 1 of Uit 0 (Pure Mathematics ) Algebra Recommeded Prior Kowledge Studets should have studied the algebraic techiques i Pure Mathematics 1. Cotet This Sectio should be studied early i the course
More informationMathematical Foundation. CSE 6331 Algorithms Steve Lai
Mathematical Foudatio CSE 6331 Algorithms Steve Lai Complexity of Algorithms Aalysis of algorithm: to predict the ruig time required by a algorithm. Elemetary operatios: arithmetic & boolea operatios:
More informationLecture 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 informationB = B is a 3 4 matrix; b 32 = 3 and b 2 4 = 3. Scalar Multiplication
MATH 37 Matrices Dr. Neal, WKU A m matrix A = (a i j ) is a array of m umbers arraged ito m rows ad colums, where a i j is the etry i the ith row, jth colum. The values m are called the dimesios (or size)
More informationCHAPTER 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 informationCS / MCS 401 Homework 3 grader solutions
CS / MCS 401 Homework 3 grader solutios assigmet due July 6, 016 writte by Jāis Lazovskis maximum poits: 33 Some questios from CLRS. Questios marked with a asterisk were ot graded. 1 Use the defiitio of
More informationThe natural exponential function
The atural expoetial fuctio Attila Máté Brookly College of the City Uiversity of New York December, 205 Cotets The atural expoetial fuctio for real x. Beroulli s iequality.....................................2
More informationNotes #3 Sequences Limit Theorems Monotone and Subsequences Bolzano-WeierstraßTheorem Limsup & Liminf of Sequences Cauchy Sequences and Completeness
Notes #3 Sequeces Limit Theorems Mootoe ad Subsequeces Bolzao-WeierstraßTheorem Limsup & Limif of Sequeces Cauchy Sequeces ad Completeess This sectio of otes focuses o some of the basics of sequeces of
More informationSequences, Series, and All That
Chapter Te Sequeces, Series, ad All That. Itroductio Suppose we wat to compute a approximatio of the umber e by usig the Taylor polyomial p for f ( x) = e x at a =. This polyomial is easily see to be 3
More informationSequences and Series of Functions
Chapter 6 Sequeces ad Series of Fuctios 6.1. Covergece of a Sequece of Fuctios Poitwise Covergece. Defiitio 6.1. Let, for each N, fuctio f : A R be defied. If, for each x A, the sequece (f (x)) coverges
More informationPolynomials 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 informationChapter 4. Fourier Series
Chapter 4. Fourier Series At this poit we are ready to ow cosider the caoical equatios. Cosider, for eample the heat equatio u t = u, < (4.) subject to u(, ) = si, u(, t) = u(, t) =. (4.) Here,
More informationTaylor Series (BC Only)
Studet Study Sessio Taylor Series (BC Oly) Taylor series provide a way to fid a polyomial look-alike to a o-polyomial fuctio. This is doe by a specific formula show below (which should be memorized): Taylor
More informationLast time, we talked about how Equation (1) can simulate Equation (2). We asserted that Equation (2) can also simulate Equation (1).
6896 Quatum Complexity Theory Sept 23, 2008 Lecturer: Scott Aaroso Lecture 6 Last Time: Quatum Error-Correctio Quatum Query Model Deutsch-Jozsa Algorithm (Computes x y i oe query) Today: Berstei-Vazirii
More informationSome examples of vector spaces
Roberto s Notes o Liear Algebra Chapter 11: Vector spaces Sectio 2 Some examples of vector spaces What you eed to kow already: The te axioms eeded to idetify a vector space. What you ca lear here: Some
More informationw (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 informationsin(n) + 2 cos(2n) n 3/2 3 sin(n) 2cos(2n) n 3/2 a n =
60. Ratio ad root tests 60.1. Absolutely coverget series. Defiitio 13. (Absolute covergece) A series a is called absolutely coverget if the series of absolute values a is coverget. The absolute covergece
More informationAddition: Property Name Property Description Examples. a+b = b+a. a+(b+c) = (a+b)+c
Notes for March 31 Fields: A field is a set of umbers with two (biary) operatios (usually called additio [+] ad multiplicatio [ ]) such that the followig properties hold: Additio: Name Descriptio Commutativity
More informationMEI Casio Tasks for Further Pure
Task Complex Numbers: Roots of Quadratic Equatios. Add a ew Equatio scree: paf 2. Chage the Complex output to a+bi: LpNNNNwd 3. Select Polyomial ad set the Degree to 2: wq 4. Set a=, b=5 ad c=6: l5l6l
More informationChapter Vectors
Chapter 4. Vectors fter readig this chapter you should be able to:. defie a vector. add ad subtract vectors. fid liear combiatios of vectors ad their relatioship to a set of equatios 4. explai what it
More informationPrinciple 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 informationSeunghee Ye Ma 8: Week 5 Oct 28
Week 5 Summary I Sectio, we go over the Mea Value Theorem ad its applicatios. I Sectio 2, we will recap what we have covered so far this term. Topics Page Mea Value Theorem. Applicatios of the Mea Value
More informationCSE 202 Homework 1 Matthias Springer, A Yes, there does always exist a perfect matching without a strong instability.
CSE 0 Homework 1 Matthias Spriger, A9950078 1 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
More informationAxioms of Measure Theory
MATH 532 Axioms of Measure Theory Dr. Neal, WKU I. The Space Throughout the course, we shall let X deote a geeric o-empty set. I geeral, we shall ot assume that ay algebraic structure exists o X so that
More informationCHAPTER 5. Theory and Solution Using Matrix Techniques
A SERIES OF CLASS NOTES FOR 2005-2006 TO INTRODUCE LINEAR AND NONLINEAR PROBLEMS TO ENGINEERS, SCIENTISTS, AND APPLIED MATHEMATICIANS DE CLASS NOTES 3 A COLLECTION OF HANDOUTS ON SYSTEMS OF ORDINARY DIFFERENTIAL
More informationKNOWLEDGE OF NUMBER SENSE, CONCEPTS, AND OPERATIONS
DOMAIN I. COMPETENCY.0 MATHEMATICS KNOWLEDGE OF NUMBER SENSE, CONCEPTS, AND OPERATIONS Skill. Apply ratio ad proportio to solve real-world problems. A ratio is a compariso of umbers. If a class had boys
More informationMath 155 (Lecture 3)
Math 55 (Lecture 3) September 8, I this lecture, we ll cosider the aswer to oe of the most basic coutig problems i combiatorics Questio How may ways are there to choose a -elemet subset of the set {,,,
More informationMATH 320: Probability and Statistics 9. Estimation and Testing of Parameters. Readings: Pruim, Chapter 4
MATH 30: Probability ad Statistics 9. Estimatio ad Testig of Parameters Estimatio ad Testig of Parameters We have bee dealig situatios i which we have full kowledge of the distributio of a radom variable.
More informationAbstract. Keywords: conjecture; divisor function; divisor summatory function; prime numbers; Dirichlet's divisor problem
A ew cojecture o the divisor summatory fuctio offerig a much higher predictio accuracy tha Dirichlet's divisor problem approach * Wiki-like trasdiscipliary article (Ope developmet iterval: 28 -?) - workig
More informationMath 312 Lecture Notes One Dimensional Maps
Math 312 Lecture Notes Oe Dimesioal Maps Warre Weckesser Departmet of Mathematics Colgate Uiversity 21-23 February 25 A Example We begi with the simplest model of populatio growth. Suppose, for example,
More informationGoodness-of-Fit Tests and Categorical Data Analysis (Devore Chapter Fourteen)
Goodess-of-Fit Tests ad Categorical Data Aalysis (Devore Chapter Fourtee) MATH-252-01: Probability ad Statistics II Sprig 2019 Cotets 1 Chi-Squared Tests with Kow Probabilities 1 1.1 Chi-Squared Testig................
More informationAdvanced Analysis. Min Yan Department of Mathematics Hong Kong University of Science and Technology
Advaced Aalysis Mi Ya Departmet of Mathematics Hog Kog Uiversity of Sciece ad Techology September 3, 009 Cotets Limit ad Cotiuity 7 Limit of Sequece 8 Defiitio 8 Property 3 3 Ifiity ad Ifiitesimal 8 4
More informationMAS111 Convergence and Continuity
MAS Covergece ad Cotiuity Key Objectives At the ed of the course, studets should kow the followig topics ad be able to apply the basic priciples ad theorems therei to solvig various problems cocerig covergece
More informationMath 10A final exam, December 16, 2016
Please put away all books, calculators, cell phoes ad other devices. You may cosult a sigle two-sided sheet of otes. Please write carefully ad clearly, USING WORDS (ot just symbols). Remember that the
More informationMath 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 informationCALCULUS II. Sequences and Series. Paul Dawkins
CALCULUS II Sequeces ad Series Paul Dawkis Table of Cotets Preface... ii Sequeces ad Series... 3 Itroductio... 3 Sequeces... 5 More o Sequeces...5 Series The Basics... Series Covergece/Divergece...7 Series
More information1 Approximating Integrals using Taylor Polynomials
Seughee Ye Ma 8: Week 7 Nov Week 7 Summary This week, we will lear how we ca approximate itegrals usig Taylor series ad umerical methods. Topics Page Approximatig Itegrals usig Taylor Polyomials. Defiitios................................................
More information7.1 Finding Rational Solutions of Polynomial Equations
Name Class Date 7.1 Fidig Ratioal Solutios of Polyomial Equatios Essetial Questio: How do you fid the ratioal roots of a polyomial equatio? Resource Locker Explore Relatig Zeros ad Coefficiets of Polyomial
More informationEigenvalues and Eigenvectors
5 Eigevalues ad Eigevectors 5.3 DIAGONALIZATION DIAGONALIZATION Example 1: Let. Fid a formula for A k, give that P 1 1 = 1 2 ad, where Solutio: The stadard formula for the iverse of a 2 2 matrix yields
More informationCHAPTER 1 SEQUENCES AND INFINITE SERIES
CHAPTER SEQUENCES AND INFINITE SERIES SEQUENCES AND INFINITE SERIES (0 meetigs) Sequeces ad limit of a sequece Mootoic ad bouded sequece Ifiite series of costat terms Ifiite series of positive terms Alteratig
More information