Relation of BSTs to Quicksort, Analysis of Random BST. Lecture 9
|
|
- Ashley Cameron
- 5 years ago
- Views:
Transcription
1 Reltio o BSTs to Quicsort, Alysis o Rdom BST Lecture 9
2 Biry-serch-tree sort T Crete empty BST or i = to do TREE-INSERT(T, A[i]) Perorm iorder tree wl o T. Emple: 3 A = [ ] 8 Tree-wl time = O(), but how log does it te to build the BST? L9.2
3 Alysis o BST sort BST sort perorms the sme comprisos s quicsort, but i dieret order! The epected time to build the tree is symptoticlly the sme s the ruig time o quicsort. L9.3
4 Node depth The depth o ode = the umber o comprisos mde durig TREE-INSERT. Assumig ll iput permuttios re eqully liely, we hve Averge ode depth E # comprisos i O( lg ) O(lg ). to isert ode (quicsort lysis) i L9.4
5 Epected tree height But, verge ode depth o rdomly built BST = O(lg ) does ot ecessrily me tht its epected height is lso O(lg ) (lthough it is). Emple. lg Ave. depth lg O(lg ) 2 h L9.5
6 Height o rdomly built biry serch tree Outlie o the lysis: Prove Jese s iequlity, which sys tht (E[X]) E[(X)] or y cove uctio d rdom vrible X. Alyze the epoetil height o rdomly built BST o odes, which is the rdom vrible = 2 X, where X is the rdom vrible deotig the height o the BST. Prove tht 2 E[X ] E[2 X ] = E[ ] = O( 3 ), d hece tht E[X ] = O(lg ). L9.6
7 Cove uctios A uctio : R R is cove i or ll,b 0 such tht + b =, we hve or ll,y R. ( + by) () + b(y) () + b(y) (y) () ( + by) + by y L9.7
8 Coveity lemm Lemm. Let : R R be cove uctio, d let {, 2,, } be set o oegtive costts such tht =. The, or y set {, 2,, } o rel umbers, we hve ( Proo. By iductio o. For =, we hve =, d hece ( ) ( ) trivilly. ). L9.8
9 L9.9 Proo (cotiued) ) ( Iductive step: Algebr.
10 L9.0 Proo (cotiued) ) ( ) ( ) ( Iductive step: Coveity.
11 L9. Proo (cotiued) ) ( ) ( ) ( ) ( ) ( ) ( Iductive step: Iductio.
12 L9.2 Proo (cotiued) ) ( ) ( ) ( ) ( ) ( ) ( ) ( Iductive step: Algebr..
13 Jese s iequlity Lemm. Let be cove uctio, d let X be rdom vrible. The, (E[X]) E[ (X)]. Proo. ( E[ X ]) Pr{ X } Deiitio o epecttio. L9.3
14 Jese s iequlity Lemm. Let be cove uctio, d let X be rdom vrible. The, (E[X]) E[ (X)]. Proo. ( E[ X ]) Pr{ X } ( ) Pr{ X } Coveity lemm (geerlized). L9.4
15 Jese s iequlity Lemm. Let be cove uctio, d let X be rdom vrible. The, (E[X]) E[ (X)]. Proo. ( E[ X ]) Pr{ X } ( ) Pr{ X } E[ ( X )]. Tricy step, but true thi bout it. L9.5
16 Alysis o BST height Let X be the rdom vrible deotig the height o rdomly built biry serch tree o odes, d let = 2 X be its epoetil height. I the root o the tree hs r, the X = + m{x, X }, sice ech o the let d right subtrees o the root re rdomly built. Hece, we hve = 2 m{, }. L9.6
17 Alysis (cotiued) Deie the idictor rdom vrible Z s Z = i the root hs r, 0 otherwise. Thus, Pr{Z = } = E[Z ] = /, d Z 2 m{,. } L9.7
18 Epoetil height recurrece E Z 2 m{, E } Te epecttio o both sides. L9.8
19 L9.9 Epoetil height recurrece Z E Z E E }, m{ 2 }, m{ 2 Lierity o epecttio.
20 L9.20 Epoetil height recurrece E Z E Z E Z E E }], [m{ ] [ 2 }, m{ 2 }, m{ 2 Idepedece o the r o the root rom the rs o subtree roots.
21 L9.2 Epoetil height recurrece E E Z E Z E Z E E ] [ 2 }], [m{ ] [ 2 }, m{ 2 }, m{ 2 The m o two oegtive umbers is t most their sum, d E[Z ] = /.
22 L9.22 Epoetil height recurrece 0 ] [ 4 ] [ 2 }], [m{ ] [ 2 }, m{ 2 }, m{ 2 E E E Z E Z E Z E E Ech term ppers twice, d reide.
23 Solvig the recurrece Use substitutio to show tht E[ ] c 3 or some positive costt c, which we c pic suicietly lrge to hdle the iitil coditios. 4 E[ 0 E ] L9.23
24 Solvig the recurrece Use substitutio to show tht E[ ] c 3 or some positive costt c, which we c pic suicietly lrge to hdle the iitil coditios. E E[ c 3 Substitutio. ] L9.24
25 Solvig the recurrece Use substitutio to show tht E[ ] c 3 or some positive costt c, which we c pic suicietly lrge to hdle the iitil coditios. E 4 4 4c E[ c 3 3 d Itegrl method. ] L9.25
26 Solvig the recurrece Use substitutio to show tht E[ ] c 3 or some positive costt c, which we c pic suicietly lrge to hdle the iitil coditios. E 4 4 4c 4c E[ c d Solve the itegrl. ] L9.26
27 Solvig the recurrece Use substitutio to show tht E[ ] c 3 or some positive costt c, which we c pic suicietly lrge to hdle the iitil coditios. E 4 4 4c 4c c E[ c d ] 4. Algebr. L9.27
28 The grd ile Puttig it ll together, we hve 2 E[X ] E[2 X ] Jese s iequlity, sice () = 2 is cove. L9.28
29 The grd ile Puttig it ll together, we hve 2 E[X ] E[2 X ] = E[ ] Deiitio. L9.29
30 The grd ile Puttig it ll together, we hve 2 E[X ] E[2 X ] = E[ ] c 3. Wht we just showed. L9.30
31 The grd ile Puttig it ll together, we hve 2 E[X ] E[2 X ] = E[ ] c 3. Tig the lg o both sides yields E[X ] 3 lg +O(). L9.3
32 Post mortem Q. Does the lysis hve to be this hrd? Q. Why bother with lyzig epoetil height? Q. Why ot just develop the recurrece o directly? X = + m{x, X } L9.32
33 Post mortem (cotiued) A. The iequlity m{, b} + b. provides poor upper boud, sice the RHS pproches the LHS slowly s b icreses. The boud m{2, 2 b } b llows the RHS to pproch the LHS r more quicly s b icreses. By usig the coveity o () = 2 vi Jese s iequlity, we c mipulte the sum o epoetils, resultig i tight lysis. L9.33
34 Thought eercises See wht hppes whe you try to do the lysis o X directly. Try to uderstd better why the proo uses epoetil. Will qudrtic do? See i you c id simpler rgumet. (This rgumet is little simpler th the oe i the boo I hope it s correct!) L9.34
Introduction to Algorithms
Itroductio to Algorithms 6.046J/8.40J/SMA5503 Lecture 9 Pro. Charles E. Leiserso Biary-search-tree sort T Create a empty BST or i to do TREE-INSERT(T, A[i]) Perorm a iorder tree wal o T. Eample: A [3 8
More informationIntroduction to Algorithms
Itroductio to Algorithms 6.046J/8.40J LECTURE 9 Radomly built biary search trees Epected ode depth Aalyzig height Coveity lemma Jese s iequality Epoetial height Post mortem Pro. Eri Demaie October 7, 2005
More informationMerge Sort. Outline and Reading. Divide-and-Conquer. Divide-and-conquer paradigm ( 4.1.1) Merge-sort ( 4.1.1)
Merge Sort 7 2 9 4 2 4 7 9 7 2 2 7 9 4 4 9 7 7 2 2 9 9 4 4 Merge Sort versio 1.3 1 Outlie d Redig Divide-d-coquer prdigm ( 4.1.1 Merge-sort ( 4.1.1 Algorithm Mergig two sorted sequeces Merge-sort tree
More information5. Solving recurrences
5. Solvig recurreces Time Complexity Alysis of Merge Sort T( ) 0 if 1 2T ( / 2) otherwise sortig oth hlves mergig Q. How to prove tht the ru-time of merge sort is O( )? A. 2 Time Complexity Alysis of Merge
More informationSimilar idea to multiplication in N, C. Divide and conquer approach provides unexpected improvements. Naïve matrix multiplication
Next. Covered bsics of simple desig techique (Divided-coquer) Ch. of the text.. Next, Strsse s lgorithm. Lter: more desig d coquer lgorithms: MergeSort. Solvig recurreces d the Mster Theorem. Similr ide
More informationSection IV.6: The Master Method and Applications
Sectio IV.6: The Mster Method d Applictios Defiitio IV.6.1: A fuctio f is symptoticlly positive if d oly if there exists rel umer such tht f(x) > for ll x >. A cosequece of this defiitio is tht fuctio
More informationLecture 4 Recursive Algorithm Analysis. Merge Sort Solving Recurrences The Master Theorem
Lecture 4 Recursive Algorithm Alysis Merge Sort Solvig Recurreces The Mster Theorem Merge Sort MergeSortA, left, right) { if left < right) { mid = floorleft + right) / 2); MergeSortA, left, mid); MergeSortA,
More information1. (25 points) Use the limit definition of the definite integral and the sum formulas to compute. [1 x + x2
Mth 3, Clculus II Fil Exm Solutios. (5 poits) Use the limit defiitio of the defiite itegrl d the sum formuls to compute 3 x + x. Check your swer by usig the Fudmetl Theorem of Clculus. Solutio: The limit
More information[ 20 ] 1. Inequality exists only between two real numbers (not complex numbers). 2. If a be any real number then one and only one of there hold.
[ 0 ]. Iequlity eists oly betwee two rel umbers (ot comple umbers).. If be y rel umber the oe d oly oe of there hold.. If, b 0 the b 0, b 0.. (i) b if b 0 (ii) (iii) (iv) b if b b if either b or b b if
More informationMultiplicative Versions of Infinitesimal Calculus
Multiplictive Versios o Iiitesiml Clculus Wht hppes whe you replce the summtio o stdrd itegrl clculus with multiplictio? Compre the revited deiitio o stdrd itegrl D å ( ) lim ( ) D i With ( ) lim ( ) D
More informationRecurrece reltio & Recursio 9 Chpter 3 Recurrece reltio & Recursio Recurrece reltio : A recurrece is equtio or iequlity tht describes fuctio i term of itself with its smller iputs. T T The problem of size
More informationf(bx) dx = f dx = dx l dx f(0) log b x a + l log b a 2ɛ log b a.
Eercise 5 For y < A < B, we hve B A f fb B d = = A B A f d f d For y ɛ >, there re N > δ >, such tht d The for y < A < δ d B > N, we hve ba f d f A bb f d l By ba A A B A bb ba fb d f d = ba < m{, b}δ
More informationPOWER SERIES R. E. SHOWALTER
POWER SERIES R. E. SHOWALTER. sequeces We deote by lim = tht the limit of the sequece { } is the umber. By this we me tht for y ε > 0 there is iteger N such tht < ε for ll itegers N. This mkes precise
More informationWhy study large deviations? The problem of estimating buer overow frequency The performance of many systems is limited by events which have a small pr
Why study lrge devitios? The problem of estimtig buer overow frequecy The performce of my systems is ited by evets which hve smll probbility of occurrig, but which hve severe cosequeces whe they occur.
More informationTHE NATIONAL UNIVERSITY OF IRELAND, CORK COLÁISTE NA hollscoile, CORCAIGH UNIVERSITY COLLEGE, CORK SUMMER EXAMINATION 2005 FIRST ENGINEERING
OLLSCOIL NA héireann, CORCAIGH THE NATIONAL UNIVERSITY OF IRELAND, CORK COLÁISTE NA hollscoile, CORCAIGH UNIVERSITY COLLEGE, CORK SUMMER EXAMINATION 2005 FIRST ENGINEERING MATHEMATICS MA008 Clculus d Lier
More informationPre-Calculus - Chapter 3 Sections Notes
Pre-Clculus - Chpter 3 Sectios 3.1-3.4- Notes Properties o Epoets (Review) 1. ( )( ) = + 2. ( ) =, (c) = 3. 0 = 1 4. - = 1/( ) 5. 6. c Epoetil Fuctios (Sectio 3.1) Deiitio o Epoetil Fuctios The uctio deied
More informationChapter 25 Sturm-Liouville problem (II)
Chpter 5 Sturm-Liouville problem (II Speer: Lug-Sheg Chie Reerece: [] Veerle Ledou, Study o Specil Algorithms or solvig Sturm-Liouville d Schrodiger Equtios. [] 王信華教授, chpter 8, lecture ote o Ordiry Dieretil
More information) 2 2(2. Assume that
lg lg W W W W W W W Assume tht lg log. 0. with for, W W W For ot power of, W 0 W W W for hrd to lyze this cse exctly ecuse of the floors d ceiligs. usig iductio rgumet lie the oe i Ex B.5 i Appedix B,
More informationMath 2414 Activity 17 (Due with Final Exam) Determine convergence or divergence of the following alternating series: a 3 5 2n 1 2n 1
Mth 44 Activity 7 (Due with Fil Exm) Determie covergece or divergece of the followig ltertig series: l 4 5 6 4 7 8 4 {Hit: Loo t 4 } {Hit: } 5 {Hit: AST or just chec out the prtil sums} {Hit: AST or just
More informationChapter 7 Infinite Series
MA Ifiite Series Asst.Prof.Dr.Supree Liswdi Chpter 7 Ifiite Series Sectio 7. Sequece A sequece c be thought of s list of umbers writte i defiite order:,,...,,... 2 The umber is clled the first term, 2
More informationLecture 4 Recursive Algorithm Analysis. Merge Sort Solving Recurrences The Master Theorem
Lecture 4 Recursive Algorithm Alysis Merge Sort Solvig Recurreces The Mster Theorem Merge Sort MergeSortA, left, right) { if left < right) { mid floorleft right) / 2); MergeSortA, left, mid); MergeSortA,
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 informationSUTCLIFFE S NOTES: CALCULUS 2 SWOKOWSKI S CHAPTER 11
UTCLIFFE NOTE: CALCULU WOKOWKI CHAPTER Ifiite eries Coverget or Diverget eries Cosider the sequece If we form the ifiite sum 0, 00, 000, 0 00 000, we hve wht is clled ifiite series We wt to fid the sum
More informationA GENERAL METHOD FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS: THE FROBENIUS (OR SERIES) METHOD
Diol Bgoo () A GENERAL METHOD FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS: THE FROBENIUS (OR SERIES) METHOD I. Itroductio The first seprtio of vribles (see pplictios to Newto s equtios) is ver useful method
More informationReview of Sections
Review of Sectios.-.6 Mrch 24, 204 Abstrct This is the set of otes tht reviews the mi ides from Chpter coverig sequeces d series. The specific sectios tht we covered re s follows:.: Sequces..2: Series,
More information{ } { S n } is monotonically decreasing if Sn
Sequece A sequece is fuctio whose domi of defiitio is the set of turl umers. Or it c lso e defied s ordered set. Nottio: A ifiite sequece is deoted s { } S or { S : N } or { S, S, S,...} or simply s {
More informationMath 104: Final exam solutions
Mth 14: Fil exm solutios 1. Suppose tht (s ) is icresig sequece with coverget subsequece. Prove tht (s ) is coverget sequece. Aswer: Let the coverget subsequece be (s k ) tht coverges to limit s. The there
More informationContent: Essential Calculus, Early Transcendentals, James Stewart, 2007 Chapter 1: Functions and Limits., in a set B.
Review Sheet: Chpter Cotet: Essetil Clculus, Erly Trscedetls, Jmes Stewrt, 007 Chpter : Fuctios d Limits Cocepts, Defiitios, Lws, Theorems: A fuctio, f, is rule tht ssigs to ech elemet i set A ectly oe
More informationCS 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 informationEigenfunction Expansion. For a given function on the internal a x b the eigenfunction expansion of f(x):
Eigefuctio Epsio: For give fuctio o the iterl the eigefuctio epsio of f(): f ( ) cmm( ) m 1 Eigefuctio Epsio (Geerlized Fourier Series) To determie c s we multiply oth sides y Φ ()r() d itegrte: f ( )
More informationThis Lecture. Divide and Conquer. Merge Sort: Algorithm. Merge Sort Algorithm. MergeSort (Example) - 1. MergeSort (Example) - 2
This Lecture Divide-ad-coquer techique for algorithm desig. Example the merge sort. Writig ad solvig recurreces Divide ad Coquer Divide-ad-coquer method for algorithm desig: Divide: If the iput size is
More informationAlgorithms and Data Structures Lecture IV
Algorithms ad Data Structures Lecture IV Simoas Šalteis Aalborg Uiversity simas@cs.auc.dk September 5, 00 1 This Lecture Aalyzig the ruig time of recursive algorithms (such as divide-ad-coquer) Writig
More informationINTEGRATION TECHNIQUES (TRIG, LOG, EXP FUNCTIONS)
Mthemtics Revisio Guides Itegrtig Trig, Log d Ep Fuctios Pge of MK HOME TUITION Mthemtics Revisio Guides Level: AS / A Level AQA : C Edecel: C OCR: C OCR MEI: C INTEGRATION TECHNIQUES (TRIG, LOG, EXP FUNCTIONS)
More informationINFINITE SERIES. ,... having infinite number of terms is called infinite sequence and its indicated sum, i.e., a 1
Appedix A.. Itroductio As discussed i the Chpter 9 o Sequeces d Series, sequece,,...,,... hvig ifiite umber of terms is clled ifiite sequece d its idicted sum, i.e., + + +... + +... is clled ifite series
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 information1 Section 8.1: Sequences. 2 Section 8.2: Innite Series. 1.1 Limit Rules. 1.2 Common Sequence Limits. 2.1 Denition. 2.
Clculus II d Alytic Geometry Sectio 8.: Sequeces. Limit Rules Give coverget sequeces f g; fb g with lim = A; lim b = B. Sum Rule: lim( + b ) = A + B, Dierece Rule: lim( b ) = A B, roduct Rule: lim b =
More informationNumbers (Part I) -- Solutions
Ley College -- For AMATYC SML Mth Competitio Cochig Sessios v.., [/7/00] sme s /6/009 versio, with presettio improvemets Numbers Prt I) -- Solutios. The equtio b c 008 hs solutio i which, b, c re distict
More informationInterpolation. 1. What is interpolation?
Iterpoltio. Wht is iterpoltio? A uctio is ote give ol t discrete poits such s:.... How does oe id the vlue o t other vlue o? Well cotiuous uctio m e used to represet the + dt vlues with pssig through the
More informationCompletion of a Dislocated Metric Space
69 Chpter-3 Completio o Dislocte Metric Spce 3 Itrouctio: metric o X [] i We recll tht istce uctio o set X is si to be islocte i) y ) ii) 0 implies y iii) z) z or ll y z i X I is islocte metric o X the
More informationUNIVERSITY OF BRISTOL. Examination for the Degrees of B.Sc. and M.Sci. (Level C/4) ANALYSIS 1B, SOLUTIONS MATH (Paper Code MATH-10006)
UNIVERSITY OF BRISTOL Exmitio for the Degrees of B.Sc. d M.Sci. (Level C/4) ANALYSIS B, SOLUTIONS MATH 6 (Pper Code MATH-6) My/Jue 25, hours 3 miutes This pper cotis two sectios, A d B. Plese use seprte
More informationApproximate Integration
Study Sheet (7.7) Approimte Itegrtio I this sectio, we will ler: How to fid pproimte vlues of defiite itegrls. There re two situtios i which it is impossile to fid the ect vlue of defiite itegrl. Situtio:
More informationDiscrete Mathematics I Tutorial 12
Discrete Mthemtics I Tutoril Refer to Chpter 4., 4., 4.4. For ech of these sequeces fid recurrece reltio stisfied by this sequece. (The swers re ot uique becuse there re ifiitely my differet recurrece
More informationThe Weierstrass Approximation Theorem
The Weierstrss Approximtio Theorem Jmes K. Peterso Deprtmet of Biologicl Scieces d Deprtmet of Mthemticl Scieces Clemso Uiversity Februry 26, 2018 Outlie The Wierstrss Approximtio Theorem MtLb Implemettio
More informationReview of the Riemann Integral
Chpter 1 Review of the Riem Itegrl This chpter provides quick review of the bsic properties of the Riem itegrl. 1.0 Itegrls d Riem Sums Defiitio 1.0.1. Let [, b] be fiite, closed itervl. A prtitio P of
More informationf(t)dt 2δ f(x) f(t)dt 0 and b f(t)dt = 0 gives F (b) = 0. Since F is increasing, this means that
Uiversity of Illiois t Ur-Chmpig Fll 6 Mth 444 Group E3 Itegrtio : correctio of the exercises.. ( Assume tht f : [, ] R is cotiuous fuctio such tht f(x for ll x (,, d f(tdt =. Show tht f(x = for ll x [,
More informationFOURIER SERIES PART I: DEFINITIONS AND EXAMPLES. To a 2π-periodic function f(x) we will associate a trigonometric series. a n cos(nx) + b n sin(nx),
FOURIER SERIES PART I: DEFINITIONS AND EXAMPLES To -periodic fuctio f() we will ssocite trigoometric series + cos() + b si(), or i terms of the epoetil e i, series of the form c e i. Z For most of the
More informationNumerical Methods. Lecture 5. Numerical integration. dr hab. inż. Katarzyna Zakrzewska, prof. AGH. Numerical Methods lecture 5 1
Numeril Methods Leture 5. Numeril itegrtio dr h. iż. Ktrzy Zkrzewsk, pro. AGH Numeril Methods leture 5 Outlie Trpezoidl rule Multi-segmet trpezoidl rule Rihrdso etrpoltio Romerg's method Simpso's rule
More informationGRAPHING LINEAR EQUATIONS. Linear Equations. x l ( 3,1 ) _x-axis. Origin ( 0, 0 ) Slope = change in y change in x. Equation for l 1.
GRAPHING LINEAR EQUATIONS Qudrt II Qudrt I ORDERED PAIR: The first umer i the ordered pir is the -coordite d the secod umer i the ordered pir is the y-coordite. (, ) Origi ( 0, 0 ) _-is Lier Equtios Qudrt
More informationFrequency-domain Characteristics of Discrete-time LTI Systems
requecy-domi Chrcteristics of Discrete-time LTI Systems Prof. Siripog Potisuk LTI System descriptio Previous bsis fuctio: uit smple or DT impulse The iput sequece is represeted s lier combitio of shifted
More informationy udv uv y v du 7.1 INTEGRATION BY PARTS
7. INTEGRATION BY PARTS Ever differetitio rule hs correspodig itegrtio rule. For istce, the Substitutio Rule for itegrtio correspods to the Chi Rule for differetitio. The rule tht correspods to the Product
More informationCertain sufficient conditions on N, p n, q n k summability of orthogonal series
Avilble olie t www.tjs.com J. Nolier Sci. Appl. 7 014, 7 77 Reserch Article Certi sufficiet coditios o N, p, k summbility of orthogol series Xhevt Z. Krsiqi Deprtmet of Mthemtics d Iformtics, Fculty of
More informationb a 2 ((g(x))2 (f(x)) 2 dx
Clc II Fll 005 MATH Nme: T3 Istructios: Write swers to problems o seprte pper. You my NOT use clcultors or y electroic devices or otes of y kid. Ech st rred problem is extr credit d ech is worth 5 poits.
More informationB. Examples 1. Finite Sums finite sums are an example of Riemann Sums in which each subinterval has the same length and the same x i
Mth 06 Clculus Sec. 5.: The Defiite Itegrl I. Riem Sums A. Def : Give y=f(x):. Let f e defied o closed itervl[,].. Prtitio [,] ito suitervls[x (i-),x i ] of legth Δx i = x i -x (i-). Let P deote the prtitio
More information9.1 Sequences & Series: Convergence & Divergence
Notes 9.: Cov & Div of Seq & Ser 9. Sequeces & Series: Covergece & Divergece A sequece is simply list of thigs geerted by rule More formlly, sequece is fuctio whose domi is the set of positive itegers,
More informationStudent Success Center Elementary Algebra Study Guide for the ACCUPLACER (CPT)
Studet Success Ceter Elemetry Algebr Study Guide for the ACCUPLACER (CPT) The followig smple questios re similr to the formt d cotet of questios o the Accuplcer Elemetry Algebr test. Reviewig these smples
More informationLimit of a function:
- Limit of fuctio: We sy tht f ( ) eists d is equl with (rel) umer L if f( ) gets s close s we wt to L if is close eough to (This defiitio c e geerlized for L y syig tht f( ) ecomes s lrge (or s lrge egtive
More informationIntegral Operator Defined by k th Hadamard Product
ITB Sci Vol 4 A No 35-5 35 Itegrl Opertor Deied by th Hdmrd Product Msli Drus & Rbh W Ibrhim School o Mthemticl Scieces Fculty o sciece d Techology Uiversiti Kebgs Mlysi Bgi 436 Selgor Drul Ehs Mlysi Emil:
More informationHomework 2 solutions
Sectio 2.1: Ex 1,3,6,11; AP 1 Sectio 2.2: Ex 3,4,9,12,14 Homework 2 solutios 1. Determie i ech uctio hs uique ixed poit o the speciied itervl. gx = 1 x 2 /4 o [0,1]. g x = -x/2, so g is cotiuous d decresig
More informationInfinite Series Sequences: terms nth term Listing Terms of a Sequence 2 n recursively defined n+1 Pattern Recognition for Sequences Ex:
Ifiite Series Sequeces: A sequece i defied s fuctio whose domi is the set of positive itegers. Usully it s esier to deote sequece i subscript form rther th fuctio ottio.,, 3, re the terms of the sequece
More informationSection 6.3: Geometric Sequences
40 Chpter 6 Sectio 6.: Geometric Sequeces My jobs offer ul cost-of-livig icrese to keep slries cosistet with ifltio. Suppose, for exmple, recet college grdute fids positio s sles mger erig ul slry of $6,000.
More informationDefinite Integral. The Left and Right Sums
Clculus Li Vs Defiite Itegrl. The Left d Right Sums The defiite itegrl rises from the questio of fidig the re betwee give curve d x-xis o itervl. The re uder curve c be esily clculted if the curve is give
More informationLecture 38 (Trapped Particles) Physics Spring 2018 Douglas Fields
Lecture 38 (Trpped Prticles) Physics 6-01 Sprig 018 Dougls Fields Free Prticle Solutio Schrödiger s Wve Equtio i 1D If motio is restricted to oe-dimesio, the del opertor just becomes the prtil derivtive
More informationSM2H. Unit 2 Polynomials, Exponents, Radicals & Complex Numbers Notes. 3.1 Number Theory
SMH Uit Polyomils, Epoets, Rdicls & Comple Numbers Notes.1 Number Theory .1 Addig, Subtrctig, d Multiplyig Polyomils Notes Moomil: A epressio tht is umber, vrible, or umbers d vribles multiplied together.
More informationTaylor Polynomials. The Tangent Line. (a, f (a)) and has the same slope as the curve y = f (x) at that point. It is the best
Tylor Polyomils Let f () = e d let p() = 1 + + 1 + 1 6 3 Without usig clcultor, evlute f (1) d p(1) Ok, I m still witig With little effort it is possible to evlute p(1) = 1 + 1 + 1 (144) + 6 1 (178) =
More informationThe Definite Integral
The Defiite Itegrl A Riem sum R S (f) is pproximtio to the re uder fuctio f. The true re uder the fuctio is obtied by tkig the it of better d better pproximtios to the re uder f. Here is the forml defiitio,
More informationMATH 118 HW 7 KELLY DOUGAN, ANDREW KOMAR, MARIA SIMBIRSKY, BRANDEN LASKE
MATH 118 HW 7 KELLY DOUGAN, ANDREW KOMAR, MARIA SIMBIRSKY, BRANDEN LASKE Prt 1. Let be odd rime d let Z such tht gcd(, 1. Show tht if is qudrtic residue mod, the is qudrtic residue mod for y ositive iteger.
More informationBC Calculus Review Sheet
BC Clculus Review Sheet Whe you see the words. 1. Fid the re of the ubouded regio represeted by the itegrl (sometimes 1 f ( ) clled horizotl improper itegrl). This is wht you thik of doig.... Fid the re
More informationChapter 5. The Riemann Integral. 5.1 The Riemann integral Partitions and lower and upper integrals. Note: 1.5 lectures
Chpter 5 The Riem Itegrl 5.1 The Riem itegrl Note: 1.5 lectures We ow get to the fudmetl cocept of itegrtio. There is ofte cofusio mog studets of clculus betwee itegrl d tiderivtive. The itegrl is (iformlly)
More informationLinear Programming. Preliminaries
Lier Progrmmig Prelimiries Optimiztio ethods: 3L Objectives To itroduce lier progrmmig problems (LPP To discuss the stdrd d coicl form of LPP To discuss elemetry opertio for lier set of equtios Optimiztio
More information(200 terms) equals Let f (x) = 1 + x + x 2 + +x 100 = x101 1
SECTION 5. PGE 78.. DMS: CLCULUS.... 5. 6. CHPTE 5. Sectio 5. pge 78 i + + + INTEGTION Sums d Sigm Nottio j j + + + + + i + + + + i j i i + + + j j + 5 + + j + + 9 + + 7. 5 + 6 + 7 + 8 + 9 9 i i5 8. +
More informationMATRIX ALGEBRA, Systems Linear Equations
MATRIX ALGEBRA, Systes Lier Equtios Now we chge to the LINEAR ALGEBRA perspective o vectors d trices to reforulte systes of lier equtios. If you fid the discussio i ters of geerl d gets lost i geerlity,
More informationMA123, Chapter 9: Computing some integrals (pp )
MA13, Chpter 9: Computig some itegrls (pp. 189-05) Dte: Chpter Gols: Uderstd how to use bsic summtio formuls to evlute more complex sums. Uderstd how to compute its of rtiol fuctios t ifiity. Uderstd how
More informationChapter 10: The Z-Transform Adapted from: Lecture notes from MIT, Binghamton University Dr. Hamid R. Rabiee Fall 2013
Sigls & Systems Chpter 0: The Z-Trsform Adpted from: Lecture otes from MIT, Bighmto Uiversity Dr. Hmid R. Rbiee Fll 03 Lecture 5 Chpter 0 Lecture 6 Chpter 0 Outlie Itroductio to the -Trsform Properties
More informationMATH 104: INTRODUCTORY ANALYSIS SPRING 2009/10 PROBLEM SET 8 SOLUTIONS. and x i = a + i. i + n(n + 1)(2n + 1) + 2a. (b a)3 6n 2
MATH 104: INTRODUCTORY ANALYSIS SPRING 2009/10 PROBLEM SET 8 SOLUTIONS 6.9: Let f(x) { x 2 if x Q [, b], 0 if x (R \ Q) [, b], where > 0. Prove tht b. Solutio. Let P { x 0 < x 1 < < x b} be regulr prtitio
More information( a n ) converges or diverges.
Chpter Ifiite Series Pge of Sectio E Rtio Test Chpter : Ifiite Series By the ed of this sectio you will be ble to uderstd the proof of the rtio test test series for covergece by pplyig the rtio test pprecite
More information2a a a 2a 4a. 3a/2 f(x) dx a/2 = 6i) Equation of plane OAB is r = λa + µb. Since C lies on the plane OAB, c can be expressed as c = λa +
-6-5 - - - - 5 6 - - - - - - / GCE A Level H Mths Nov Pper i) z + z 6 5 + z 9 From GC, poit of itersectio ( 8, 9 6, 5 ). z + z 6 5 9 From GC, there is o solutio. So p, q, r hve o commo poits of itersectio.
More informationHIGHER SCHOOL CERTIFICATE EXAMINATION MATHEMATICS 4 UNIT (ADDITIONAL) Time allowed Three hours (Plus 5 minutes reading time)
HIGHER SCHOOL CERTIFICATE EXAMINATION 998 MATHEMATICS 4 UNIT (ADDITIONAL) Time llowed Three hours (Plus 5 miutes redig time) DIRECTIONS TO CANDIDATES Attempt ALL questios ALL questios re of equl vlue All
More informationFACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures
FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING Lectures MODULE 0 FURTHER CALCULUS II. Sequeces d series. Rolle s theorem d me vlue theorems 3. Tlor s d Mcluri s theorems 4. L Hopitl
More information9.5. Alternating series. Absolute convergence and conditional convergence
Chpter 9: Ifiite Series I this Chpter we will be studyig ifiite series, which is just other me for ifiite sums. You hve studied some of these i the pst whe you looked t ifiite geometric sums of the form:
More informationProbability and Stochastic Processes: A Friendly Introduction for Electrical and Computer Engineers Roy D. Yates and David J.
Probbility d Stochstic Processes: A Friedly Itroductio for Electricl d Computer Egieers Roy D. Ytes d Dvid J. Goodm Problem Solutios : Ytes d Goodm,4..4 4..4 4..7 4.4. 4.4. 4..6 4.6.8 4.6.9 4.7.4 4.7.
More informationCIS 121 Data Structures and Algorithms with Java Spring Code Snippets and Recurrences Monday, February 4/Tuesday, February 5
CIS 11 Data Structures ad Algorithms with Java Sprig 019 Code Sippets ad Recurreces Moday, February 4/Tuesday, February 5 Learig Goals Practice provig asymptotic bouds with code sippets Practice solvig
More informationGraphing Review Part 3: Polynomials
Grphig Review Prt : Polomils Prbols Recll, tht the grph of f ( ) is prbol. It is eve fuctio, hece it is smmetric bout the bout the -is. This mes tht f ( ) f ( ). Its grph is show below. The poit ( 0,0)
More informationSOLUTION OF SYSTEM OF LINEAR EQUATIONS. Lecture 4: (a) Jacobi's method. method (general). (b) Gauss Seidel method.
SOLUTION OF SYSTEM OF LINEAR EQUATIONS Lecture 4: () Jcobi's method. method (geerl). (b) Guss Seidel method. Jcobi s Method: Crl Gustv Jcob Jcobi (804-85) gve idirect method for fidig the solutio of system
More informationWe will begin by supplying the proof to (a).
(The solutios of problem re mostly from Jeffrey Mudrock s HWs) Problem 1. There re three sttemet from Exmple 5.4 i the textbook for which we will supply proofs. The sttemets re the followig: () The spce
More informationOptions: Calculus. O C.1 PG #2, 3b, 4, 5ace O C.2 PG.24 #1 O D PG.28 #2, 3, 4, 5, 7 O E PG #1, 3, 4, 5 O F PG.
O C. PG.-3 #, 3b, 4, 5ce O C. PG.4 # Optios: Clculus O D PG.8 #, 3, 4, 5, 7 O E PG.3-33 #, 3, 4, 5 O F PG.36-37 #, 3 O G. PG.4 #c, 3c O G. PG.43 #, O H PG.49 #, 4, 5, 6, 7, 8, 9, 0 O I. PG.53-54 #5, 8
More informationSecond Mean Value Theorem for Integrals By Ng Tze Beng. The Second Mean Value Theorem for Integrals (SMVT) Statement of the Theorem
Secod Me Vlue Theorem for Itegrls By Ng Tze Beg This rticle is out the Secod Me Vlue Theorem for Itegrls. This theorem, first proved y Hoso i its most geerlity d with extesio y ixo, is very useful d lmost
More informationA GENERALIZATION OF HERMITE-HADAMARD S INEQUALITY
Krgujevc Jourl o Mthemtics Volume 4() (7), Pges 33 38. A GENERALIZATION OF HERMITE-HADAMARD S INEQUALITY MOHAMMAD W. ALOMARI Abstrct. I literture the Hermite-Hdmrd iequlity ws eligible or my resos, oe
More informationIn an algebraic expression of the form (1), like terms are terms with the same power of the variables (in this case
Chpter : Algebr: A. Bckgroud lgebr: A. Like ters: I lgebric expressio of the for: () x b y c z x y o z d x... p x.. we cosider x, y, z to be vribles d, b, c, d,,, o,.. to be costts. I lgebric expressio
More information0 otherwise. sin( nx)sin( kx) 0 otherwise. cos( nx) sin( kx) dx 0 for all integers n, k.
. Computtio of Fourier Series I this sectio, we compute the Fourier coefficiets, f ( x) cos( x) b si( x) d b, i the Fourier series To do this, we eed the followig result o the orthogolity of the trigoometric
More informationExponential and Logarithmic Functions (4.1, 4.2, 4.4, 4.6)
WQ017 MAT16B Lecture : Mrch 8, 017 Aoucemets W -4p Wellm 115-4p Wellm 115 Q4 ue F T 3/1 10:30-1:30 FINAL Expoetil Logrithmic Fuctios (4.1, 4., 4.4, 4.6) Properties of Expoets Let b be positive rel umbers.
More informationFast Fourier Transform 1) Legendre s Interpolation 2) Vandermonde Matrix 3) Roots of Unity 4) Polynomial Evaluation
Algorithm Desig d Alsis Victor Admchi CS 5-45 Sprig 4 Lecture 3 J 7, 4 Cregie Mello Uiversit Outlie Fst Fourier Trsform ) Legedre s Iterpoltio ) Vdermode Mtri 3) Roots of Uit 4) Polomil Evlutio Guss (777
More informationSUTCLIFFE S NOTES: CALCULUS 2 SWOKOWSKI S CHAPTER 11
SUTCLIFFE S NOTES: CALCULUS SWOKOWSKI S CHAPTER Ifiite Series.5 Altertig Series d Absolute Covergece Next, let us cosider series with both positive d egtive terms. The simplest d most useful is ltertig
More informationPROGRESSIONS AND SERIES
PROGRESSIONS AND SERIES A sequece is lso clled progressio. We ow study three importt types of sequeces: () The Arithmetic Progressio, () The Geometric Progressio, () The Hrmoic Progressio. Arithmetic Progressio.
More informationMATH 104 FINAL SOLUTIONS. 1. (2 points each) Mark each of the following as True or False. No justification is required. y n = x 1 + x x n n
MATH 04 FINAL SOLUTIONS. ( poits ech) Mrk ech of the followig s True or Flse. No justifictio is required. ) A ubouded sequece c hve o Cuchy subsequece. Flse b) A ifiite uio of Dedekid cuts is Dedekid cut.
More informationANALYSIS HW 3. f(x + y) = f(x) + f(y) for all real x, y. Demonstration: Let f be such a function. Since f is smooth, f exists.
ANALYSIS HW 3 CLAY SHONKWILER () Fid ll smooth fuctios f : R R with the property f(x + y) = f(x) + f(y) for ll rel x, y. Demostrtio: Let f be such fuctio. Sice f is smooth, f exists. The The f f(x + h)
More informationAbel type inequalities, complex numbers and Gauss Pólya type integral inequalities
Mthemticl Commuictios 31998, 95-101 95 Abel tye iequlities, comlex umbers d Guss Póly tye itegrl iequlities S. S. Drgomir, C. E. M. Perce d J. Šude Abstrct. We obti iequlities of Abel tye but for odecresig
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 informationMAS221 Analysis, Semester 2 Exercises
MAS22 Alysis, Semester 2 Exercises Srh Whitehouse (Exercises lbelled * my be more demdig.) Chpter Problems: Revisio Questio () Stte the defiitio of covergece of sequece of rel umbers, ( ), to limit. (b)
More informationConvergence rates of approximate sums of Riemann integrals
Jourl of Approximtio Theory 6 (9 477 49 www.elsevier.com/locte/jt Covergece rtes of pproximte sums of Riem itegrls Hiroyuki Tski Grdute School of Pure d Applied Sciece, Uiversity of Tsukub, Tsukub Ibrki
More informationDiscrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Lecture 17
CS 70 Discrete Mthemtics d Proility Theory Sprig 206 Ro d Wlrd Lecture 7 Vrice We hve see i the previous ote tht if we toss coi times with is p, the the expected umer of heds is p. Wht this mes is tht
More information