Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, Divide-and-Conquer
|
|
- Bathsheba Robbins
- 5 years ago
- Views:
Transcription
1 Presettio for use with the textook, Algorithm Desig d Applictios, y M. T. Goodrich d R. Tmssi, Wiley, 25 Divide-d-Coquer
2 Divide-d-Coquer Divide-d coquer is geerl lgorithm desig prdigm: Divide: divide the iput dt S i two or more disjoit susets S, S 2, Coquer: solve the suprolems recursively Comie: comie the solutios for S, S 2,, ito solutio for S The se cse for the recursio re suprolems of costt size Alysis c e doe usig recurrece equtios 2
3 Mxim Set Prolem We c visulize vrious trde-offs for optimizig two-dimesiol dt, such s poits represetig hotels ccordig to their pool size d resturt qulity, y plottig ech s two-dimesiol poit, (x, y), where x is the pool size d y is the resturt qulity score. We sy tht such poit is mximum poit i set there is o other poit, (x, y ), i tht set such tht x x d y y. The mximum poits re the est potetil choices sed o these two dimesios d fidig ll of them is the mxim set prolem. We c efficietly fid ll the mxim poits y divide-d-coquer. Here the mxim set is {A,H,I,G,D}.
4 Solvig the Mxim Set Prolem A poit (x, y) is mximum poit i S there is o other poit, (x, y ), i S such tht x x d y y. To fid mxim set for set, S, of poits i the ple, we my divide S ito two equl prts. We compre two poits i S usig lexicogrphic orderig of the poits i S, tht is, where we order sed primrily o x- coordites d the y y-coordites there re ties.
5 Divide-d-Coquer Solutio Bse cse: If, the mxim set is just S itself. Divide: let p = (x p, y p ) e the medi poit i S ccordig to the lexicogrphic order. The x = x p is lie dividig S ito two hlves. Coquer: we recursively solve the mxim-set prolem for the set of poits o the left of this lie d lso for the poits o the right. Comie: The mxim set of poits o the right re lso mxim poits for S. 5
6 Exmple for the Comie Step 6
7 Divide-d-Coquer Solutio Bse cse: If, the mxim set is just S itself. Divide: let p = (x p, y p ) e the medi poit i S ccordig to the lexicogrphic order. The x = x p is lie dividig S ito two hlves. Coquer: we recursively solve the mxim-set prolem for the set of poits o the left of this lie d lso for the poits o the right. Comie: The mxim set of poits o the right re lso mxim poits for S. But some of the mxim poits for the left set might e domited y poit from the right, mely the poit, q, tht is leftmost. So the we do sc of the left set of mxim, removig y poits tht re domited y q. The uio of remiig set of mxim from the left d the mxim set from the right is the set of mxim for S. 7
8 Pseudo-code 8
9 A Little Implemettio Detil There is the issue of how to efficietly fid the poit, p, tht is the medi poit i lexicogrphicl orderig of the poits i S ccordig to their (x, y)-coordites. There re two immedite possiilities: Oe choice is to use lier-time medi-fidig lgorithm, such s tht give i Sectio 9.2. O() for ech recursive cll. Aother choice is to sort the poits i S lexicogrphiclly y their (x, y)-coordites s preprocessig step, prior to cllig the MxmSet lgorithm o S. O( ()) for preprocessig d O() for ech recursive cll, to fid the middle of the list. 9
10 Alysis I either cse, the rest of the o-recursive steps c e performed i O() time, so this implies tht, igorig floor d ceilig fuctios, the ruig time for the divide-d-coquer mxim-set lgorithm c e specied s follows (where is costt): T ( ) 2T ( / 2) Thus, ccordig to the merge sort exmple, this lgorithm rus i O( ) time. 2 2
11 Itertive Sustitutio I the itertive sustitutio, or plug-d-chug, techique, we itertively pply the recurrece equtio to itself d see we c fid ptter: T ( ) 2T ( / 2) 2 2(2T ( / 2 )) ( / 2)) T ( / 2 ) T ( / 2 ) T ( / 2 ) 4... i i 2 T ( / 2 ) i Note tht se, T()=, cse occurs whe 2 i =. Tht is, i =. So, T( ) Thus, T() is O( ).
12 The Recursio Tree Drw the recursio tree for the recurrece reltio d look for ptter: 2 T ( ) 2T ( / 2) 2 depth T s size time 2 /2 i 2 i /2 i Totl time = + (lst level plus ll previous levels) 2
13 Guess-d-Test Method I the guess-d-test method, we guess closed form solutio d the try to prove it is true y iductio: 2 T ( ) 2T ( / 2) 2 Guess: T() c. T ( ) 2T ( / 2) 2( c( / 2) ( / 2)) c( 2) c c c ( c ) We c coclude tht e e less th T() c c. 3
14 Guess-d-Test Method I the guess-d-test method, we guess closed form solutio d the try to prove it is true y iductio: 2 T ( ) 2T ( / 2) 2 Guess: T() c. T ( ) 2T ( / 2) 2( c( / 2) ( / 2)) c( 2) c c Wrog: we cot mke this lst lie e less th c 4
15 Guess-d-Test Method, (cot.) Recll the recurrece equtio: T ( ) 2T ( / 2) Guess #2: T() c T ( ) 2T ( / 2) 2( c( / 2) c( 2) c c ( / 2)) 2 2c c c. So, T() is O( 2 ). I geerl, to use this method, you eed to hve good guess d you eed to e good t iductio proofs. 5
16 6 Mster Method My divide-d-coquer recurrece equtios hve the form: The Mster Theorem: d f T d c T ) ( ) / ( ) (. for some ) ( ) / ( provided )), ( ( is ) ( the ), ( is ) ( 3. ) ( is ) ( the ), ( is ) ( 2. ) ( is ) ( the ), ( is ) (. f f f T f T f T O f k k
17 Mster Method, Exmple The form: The Mster Theorem: provided Exmple: T ( ) f ( ) is O( f ( ) is ( f ( ) is ( c T( / ) f ( / ) f ( ) T( ) f ( ) ), the T ( ) is ( k for some. ), the T ( ) is ( ), the T ( ) is ( f ( )), 4T ( / 2) ) d d k ) Solutio: =2, so cse sys T() is O( 2 ). 7
18 Mster Method, Exmple 2 The form: The Mster Theorem: provided Exmple: T ( ) f ( ) is O( f ( ) is ( f ( ) is ( c T( / ) f ( / ) f ( ) f ( ) ), the T ( ) is ( k for some. ), the T ( ) is ( ), the T ( ) is ( f ( )), T( ) 2T ( / 2) ) d d k ) Solutio: =, so cse 2 sys T() is O( 2 ). 8
19 Mster Method, Exmple 3 The form: The Mster Theorem: provided Exmple: T ( ) f ( ) is O( f ( ) is ( f ( ) is ( c T( / ) f ( / ) f ( ) f ( ) ), the T ( ) is ( T( ) T( /3) k for some. ), the T ( ) is ( ), the T ( ) is ( f ( )), ) d d k ) Solutio: =, so cse 3 sys T() is O( ). 9
20 Mster Method, Exmple 4 The form: The Mster Theorem: provided Exmple: T ( ) f ( ) is O( f ( ) is ( f ( ) is ( c T( / ) f ( / ) f ( ) f ( ) ), the T ( ) is ( k for some. ), the T ( ) is ( ), the T ( ) is ( f ( )), T( ) 8T ( / 2) Solutio: =3, so cse sys T() is O( 3 ). 2 ) d d k ) 2
21 Mster Method, Exmple 5 The form: The Mster Theorem: provided Exmple: T ( ) f ( ) is O( f ( ) is ( f ( ) is ( c T( / ) f ( / ) f ( ) f ( ) ), the T ( ) is ( k for some. ), the T ( ) is ( ), the T ( ) is ( f ( )), T( ) 9T ( /3) Solutio: =2, so cse 3 sys T() is O( 3 ). 3 ) d d k ) 2
22 Mster Method, Exmple 6 The form: The Mster Theorem: provided Exmple: T ( ) f ( ) is O( f ( ) is ( f ( ) is ( c T( / ) f ( / ) f ( ) f ( ) ), the T ( ) is ( k for some. ), the T ( ) is ( ), the T ( ) is ( f ( )), T( ) T( / 2) ) d d k ) (iry serch) Solutio: =, so cse 2 sys T() is O( ). 22
23 Mster Method, Exmple 7 The form: The Mster Theorem: provided Exmple: T ( ) f ( ) is O( f ( ) is ( f ( ) is ( c T( / ) f ( / ) f ( ) f ( ) ), the T ( ) is ( k for some. ), the T ( ) is ( ), the T ( ) is ( f ( )), T( ) 2T ( / 2) ) d d k ) (hep costructio) Solutio: =, so cse sys T() is O(). 23
24 Iteger Additio Additio. Give two -it itegers d, compute +. Grde-school. () it opertios. crry + Remrk: Grde-school dditio lgorithm is optiml. 24
25 25 Iteger Multiplictio Multiplictio. Give two -it itegers d, compute. Grde-school. ( 2 ) it opertios. Q. Is grde-school multiplictio lgorithm optiml?
26 Divide-d-Coquer Multiplictio: Wrmup To multiply two -it itegers d : Multiply four ½-it itegers, recursively. Add d sht to oti result. 2 /2 2 /2 2 /2 2 2 /2 2 /2 Ex. = = 26
27 Recursio T() Tree 4T(/2) otherwise T() lg 2 k 2 lg 2 2 k 2 T() T(/2) T(/2) T(/2) T(/2) 4(/2) T(/4) T(/4) T(/4) T(/4)... T(/4) T(/4) T(/4) T(/4) 6(/4) T( / 2 k ) 4 k ( / 2 k ) T(2) T(2) T(2) T(2)... T(2) T(2) T(2) T(2) 4 lg () 27
28 Krtsu Multiplictio To multiply two -it itegers d : Add two ½ it itegers. Multiply three ½-it itegers, recursively. Add, sutrct, d sht to oti result. 2 /2 2 /2 2 2 /2 2 2 /2 ( )( )
29 Krtsu Multiplictio To multiply two -it itegers d : Add two ½ it itegers. Multiply three ½-it itegers, recursively. Add, sutrct, d sht to oti result. 2 /2 2 /2 2 2 /2 2 2 /2 ( )( )
30 Dot Product Dot product. Give two legth vectors d, compute c =. Grde-school. () rithmetic opertios. i i i (.7.3) (.2.4) (..3).32 Remrk. Grde-school dot product lgorithm is optiml. 3
31 Mtrix Multiplictio Mtrix multiplictio. Give two -y- mtrices A d B, compute C = AB. Grde-school. ( 3 ) rithmetic opertios. c ij ik kj k c c 2 L c c 2 c 22 L c 2 M M O M c c 2 L c 2 L 2 22 L 2 M M O M 2 L 2 L 2 22 L 2 M M O M 2 L Q. Is grde-school mtrix multiplictio lgorithm optiml? 3
32 Block Mtrix Multiplictio C A A 2 B B 2 C A B A 2 B
33 Mtrix Multiplictio: Wrmup To multiply two -y- mtrices A d B: Divide: prtitio A d B ito ½-y-½ locks. Coquer: multiply 8 pirs of ½-y-½ mtrices, recursively. Comie: dd pproprite products usig 4 mtrix dditios. C C 2 A A 2 B B 2 C 2 C 22 A 2 A 22 B 2 B 22 A 2 B 2 A 2 B 22 A 22 B 2 A 22 B 22 C A B C 2 A B 2 C 2 A 2 B C 22 A 2 B 2 33
34 Fst Mtrix Multiplictio Key ide. multiply 2-y-2 locks with oly 7 multiplictios. C C 2 A A 2 B B 2 P A (B 2 B 22 ) C 2 C 22 A 2 A 22 B 2 B 22 P 2 ( A A 2 ) B 22 C P 5 P 4 P 2 P 6 C 2 P P 2 C 2 P 3 P 4 C 22 P 5 P P 3 P 7 P 3 ( A 2 A 22 ) B P 4 A 22 (B 2 B ) P 5 ( A A 22 ) (B B 22 ) P 6 ( A 2 A 22 ) (B 2 B 22 ) P 7 ( A A 2 ) (B B 2 ) 7 multiplictios. 8 = 8 + dditios d sutrctios. 34
35 Fst Mtrix Multiplictio To multiply two -y- mtrices A d B: [Strsse 969] Divide: prtitio A d B ito ½-y-½ locks. Compute: 4 ½-y-½ mtrices vi mtrix dditios. Coquer: multiply 7 pirs of ½-y-½ mtrices, recursively. Comie: 7 products ito 4 terms usig 8 mtrix dditios. Alysis. Assume is power of 2. T() = # rithmetic opertios. 35
36 Fst Mtrix Multiplictio To multiply two -y- mtrices A d B: [Strsse 969] 36
37 Fst Mtrix Multiplictio: Prctice Implemettio issues. Sprsity. Cchig effects. Numericl stility. Odd mtrix dimesios. Crossover to clssicl lgorithm roud = 28. Commo misperceptio. Strsse is oly theoreticl curiosity. Apple reports 8x speedup o G4 Velocity Egie whe 2,5. Rge of istces where it's useful is suject of cotroversy. Remrk. C "Strsseize" Ax =, determit, eigevlues,. 37
38 Fst Mtrix Multiplictio: Theory Q. Multiply two 2-y-2 mtrices with 7 sclr multiplictios? A. Yes! [Strsse 969] Q. Multiply two 2-y-2 mtrices with 6 sclr multiplictios? A. Impossile. [Hopcroft d Kerr 97] Q. Two 3-y-3 mtrices with 2 sclr multiplictios? A. Also impossile. ( 2 7 ) O( 2.87 ) ( 2 6 ) O( 2.59 ) ( 3 2 ) O( 2.77 ) Begu, the deciml wrs hve. [P, Bii et l, Schöhge, ] Two 2-y-2 mtrices with 4,46 sclr multiplictios. Two 48-y-48 mtrices with 47,27 sclr multiplictios. A yer lter. Decemer, 979. Jury, 98. O( 2.85 ) O( 2.78 ) O( ) O( ) O( ) 38
39 Fst Mtrix Multiplictio: Theory Best kow. O( ) [Coppersmith-Wiogrd, 987] Cojecture. O( 2+ ) for y >. Cvet. Theoreticl improvemets to Strsse re progressively less prcticl. 39
40 Exercise Give mxm mtrix M d positive iteger, how to compute M efficietly? 4
Merge 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 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 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 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 informationDivide-and-Conquer. Divide-and-Conquer 1
Divide-d-Coquer 7 9 4 4 7 9 7 7 9 4 4 9 7 7 9 9 4 4 Divide-d-Coquer 1 Outie d Redig Divide-d-coquer prdigm 5. Review Merge-sort 4.1.1 Recurrece Equtios 5..1 tertive sustitutio Recursio trees Guess-d-test
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 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 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 informationPresentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, Divide-and-Conquer
Presettio or use wit te textook, Agoritm Desig Appictios, y M. T. Gooric R. Tmssi, Wiey, 015 Divie--Coquer 015 Gooric Tmssi Divie--Coquer 1 Appictio: Mxim Sets We c visuize te vrious tre-os or optimizig
More informationICS141: Discrete Mathematics for Computer Science I
ICS4: Discrete Mthemtics for Computer Sciece I Dept. Iformtio & Computer Sci., J Stelovsky sed o slides y Dr. Bek d Dr. Still Origils y Dr. M. P. Frk d Dr. J.L. Gross Provided y McGrw-Hill 3- Quiz. gcd(84,96).
More informationIntroduction to Algorithms 6.046J/18.401J
Itrodutio to Algorithms.04J/8.40J The divide-d-oquer desig prdigm. Divide the problem (iste) ito subproblems.. Coquer the subproblems by solvig them reursively. 3. Combie subproblem solutios. Leture 3
More informationHandout #2. Introduction to Matrix: Matrix operations & Geometric meaning
Hdout # Title: FAE Course: Eco 8/ Sprig/5 Istructor: Dr I-Mig Chiu Itroductio to Mtrix: Mtrix opertios & Geometric meig Mtrix: rectgulr rry of umers eclosed i pretheses or squre rckets It is covetiolly
More informationAdvanced Algorithmic Problem Solving Le 6 Math and Search
Advced Algorithmic Prolem Solvig Le Mth d Serch Fredrik Heitz Dept of Computer d Iformtio Sciece Liköpig Uiversity Outlie Arithmetic (l. d.) Solvig lier equtio systems (l. d.) Chiese remider theorem (l.5
More informationVectors. Vectors in Plane ( 2
Vectors Vectors i Ple ( ) The ide bout vector is to represet directiol force Tht mes tht every vector should hve two compoets directio (directiol slope) d mgitude (the legth) I the ple we preset vector
More informationWeek 13 Notes: 1) Riemann Sum. Aim: Compute Area Under a Graph. Suppose we want to find out the area of a graph, like the one on the right:
Week 1 Notes: 1) Riem Sum Aim: Compute Are Uder Grph Suppose we wt to fid out the re of grph, like the oe o the right: We wt to kow the re of the red re. Here re some wys to pproximte the re: We cut the
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 informationStatistics for Financial Engineering Session 1: Linear Algebra Review March 18 th, 2006
Sttistics for Ficil Egieerig Sessio : Lier Algebr Review rch 8 th, 6 Topics Itroductio to trices trix opertios Determits d Crmer s rule Eigevlues d Eigevectors Quiz The cotet of Sessio my be fmilir to
More informationThe Elementary Arithmetic Operators of Continued Fraction
Americ-Eursi Jourl of Scietific Reserch 0 (5: 5-63, 05 ISSN 88-6785 IDOSI Pulictios, 05 DOI: 0.589/idosi.ejsr.05.0.5.697 The Elemetry Arithmetic Opertors of Cotiued Frctio S. Mugssi d F. Mistiri Deprtmet
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 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 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 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 informationWestchester Community College Elementary Algebra Study Guide for the ACCUPLACER
Westchester Commuity College Elemetry Alger Study Guide for the ACCUPLACER Courtesy of Aims Commuity College The followig smple questios re similr to the formt d cotet of questios o the Accuplcer Elemetry
More informationChapter Real Numbers
Chpter. - Rel Numbers Itegers: coutig umbers, zero, d the egtive of the coutig umbers. ex: {,-3, -, -,,,, 3, } Rtiol Numbers: quotiets of two itegers with ozero deomitor; termitig or repetig decimls. ex:
More informationChapter System of Equations
hpter 4.5 System of Equtios After redig th chpter, you should be ble to:. setup simulteous lier equtios i mtrix form d vice-vers,. uderstd the cocept of the iverse of mtrix, 3. kow the differece betwee
More informationCS 331 Design and Analysis of Algorithms. -- Divide and Conquer. Dr. Daisy Tang
CS 33 Desig d Alysis of Algorithms -- Divide d Coquer Dr. Disy Tg Divide-Ad-Coquer Geerl ide: Divide problem ito subproblems of the sme id; solve subproblems usig the sme pproh, d ombie prtil solutios,
More informationALGEBRA II CHAPTER 7 NOTES. Name
ALGEBRA II CHAPTER 7 NOTES Ne Algebr II 7. th Roots d Rtiol Expoets Tody I evlutig th roots of rel ubers usig both rdicl d rtiol expoet ottio. I successful tody whe I c evlute th roots. It is iportt for
More informationThe total number of permutations of S is n!. We denote the set of all permutations of S by
DETERMINNTS. DEFINITIONS Def: Let S {,,, } e the set of itegers from to, rrged i scedig order. rerrgemet jjj j of the elemets of S is clled permuttio of S. S. The totl umer of permuttios of S is!. We deote
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 informationCH 39 USING THE GCF TO REDUCE FRACTIONS
359 CH 39 USING THE GCF TO EDUCE FACTIONS educig Algeric Frctios M ost of us lered to reduce rithmetic frctio dividig the top d the ottom of the frctio the sme (o-zero) umer. For exmple, 30 30 5 75 75
More informationAssessment Center Elementary Algebra Study Guide for the ACCUPLACER (CPT)
Assessmet Ceter Elemetr Alger Stud Guide for the ACCUPLACER (CPT) The followig smple questios re similr to the formt d cotet of questios o the Accuplcer Elemetr Alger test. Reviewig these smples will give
More informationNorthwest High School s Algebra 2
Northwest High School s Algebr Summer Review Pcket 0 DUE August 8, 0 Studet Nme This pcket hs bee desiged to help ou review vrious mthemticl topics tht will be ecessr for our success i Algebr. Istructios:
More informationApproximations of Definite Integrals
Approximtios of Defiite Itegrls So fr we hve relied o tiderivtives to evlute res uder curves, work doe by vrible force, volumes of revolutio, etc. More precisely, wheever we hve hd to evlute defiite itegrl
More informationLesson 4 Linear Algebra
Lesso Lier Algebr A fmily of vectors is lierly idepedet if oe of them c be writte s lier combitio of fiitely my other vectors i the collectio. Cosider m lierly idepedet equtios i ukows:, +, +... +, +,
More informationThe Reimann Integral is a formal limit definition of a definite integral
MATH 136 The Reim Itegrl The Reim Itegrl is forml limit defiitio of defiite itegrl cotiuous fuctio f. The costructio is s follows: f ( x) dx for Reim Itegrl: Prtitio [, ] ito suitervls ech hvig the equl
More informationUnit 1. Extending the Number System. 2 Jordan School District
Uit Etedig the Number System Jord School District Uit Cluster (N.RN. & N.RN.): Etedig Properties of Epoets Cluster : Etedig properties of epoets.. Defie rtiol epoets d eted the properties of iteger epoets
More informationImproving XOR-Dominated Circuits by Exploiting Dependencies between Operands. Ajay K. Verma and Paolo Ienne. csda
Improvig XOR-Domited Circuits y Exploitig Depedecies etwee Operds Ajy K. Verm d Polo Iee csd Processor Architecture Lortory LAP & Cetre for Advced Digitl Systems CSDA Ecole Polytechique Fédérle de Luse
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 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 informationFig. 1. I a. V ag I c. I n. V cg. Z n Z Y. I b. V bg
ymmetricl Compoets equece impedces Although the followig focuses o lods, the results pply eqully well to lies, or lies d lods. Red these otes together with sectios.6 d.9 of text. Cosider the -coected lced
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 informationLecture 2. Rational Exponents and Radicals. 36 y. b can be expressed using the. Rational Exponent, thus b. b can be expressed using the
Lecture. Rtiol Epoets d Rdicls Rtiol Epoets d Rdicls Lier Equtios d Iequlities i Oe Vrile Qudrtic Equtios Appedi A6 Nth Root - Defiitio Rtiol Epoets d Rdicls For turl umer, c e epressed usig the r is th
More informationSection 7.3, Systems of Linear Algebraic Equations; Linear Independence, Eigenvalues, Eigenvectors (the variable vector of the system) and
Sec. 7., Boyce & DiPrim, p. Sectio 7., Systems of Lier Algeric Equtios; Lier Idepedece, Eigevlues, Eigevectors I. Systems of Lier Algeric Equtios.. We c represet the system...... usig mtrices d vectors
More informationAlgorithms Design & Analysis. Divide & Conquer
Algorithms Desig & Aalysis Divide & Coquer Recap Direct-accessible table Hash tables Hash fuctios Uiversal hashig Perfect Hashig Ope addressig 2 Today s topics The divide-ad-coquer desig paradigm Revised
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 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 informationMathacle. PSet Stats, Concepts In Statistics Level Number Name: Date:
APPENDEX I. THE RAW ALGEBRA IN STATISTICS A I-1. THE INEQUALITY Exmple A I-1.1. Solve ech iequlity. Write the solutio i the itervl ottio..) 2 p - 6 p -8.) 2x- 3 < 5 Solutio:.). - 4 p -8 p³ 2 or pî[2, +
More information1.3 Continuous Functions and Riemann Sums
mth riem sums, prt 0 Cotiuous Fuctios d Riem Sums I Exmple we sw tht lim Lower() = lim Upper() for the fuctio!! f (x) = + x o [0, ] This is o ccidet It is exmple of the followig theorem THEOREM Let f be
More informationIntroduction to Algorithms 6.046J/18.401J LECTURE 3 Divide and conquer Binary search Powering a number Fibonacci numbers Matrix multiplication
Itroductio to Algorithms 6.046J/8.40J LECTURE 3 Divide ad coquer Biary search Powerig a umber Fiboacci umbers Matrix multiplicatio Strasse s algorithm VLSI tree layout Prof. Charles E. Leiserso The divide-ad-coquer
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 informationM3P14 EXAMPLE SHEET 1 SOLUTIONS
M3P14 EXAMPLE SHEET 1 SOLUTIONS 1. Show tht for, b, d itegers, we hve (d, db) = d(, b). Sice (, b) divides both d b, d(, b) divides both d d db, d hece divides (d, db). O the other hd, there exist m d
More informationis an ordered list of numbers. Each number in a sequence is a term of a sequence. n-1 term
Mthemticl Ptters. Arithmetic Sequeces. Arithmetic Series. To idetify mthemticl ptters foud sequece. To use formul to fid the th term of sequece. To defie, idetify, d pply rithmetic sequeces. To defie rithmetic
More informationNotes 17 Sturm-Liouville Theory
ECE 638 Fll 017 Dvid R. Jckso Notes 17 Sturm-Liouville Theory Notes re from D. R. Wilto, Dept. of ECE 1 Secod-Order Lier Differetil Equtios (SOLDE) A SOLDE hs the form d y dy 0 1 p ( x) + p ( x) + p (
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 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 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 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 informationLincoln Land Community College Placement and Testing Office
Licol Ld Commuity College Plcemet d Testig Office Elemetry Algebr Study Guide for the ACCUPLACER (CPT) A totl of questios re dmiistered i this test. The first type ivolves opertios with itegers d rtiol
More informationGeneral properties of definite integrals
Roerto s Notes o Itegrl Clculus Chpter 4: Defiite itegrls d the FTC Sectio Geerl properties of defiite itegrls Wht you eed to kow lredy: Wht defiite Riem itegrl is. Wht you c ler here: Some key properties
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 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 informationChapter Real Numbers
Chpter. - Rel Numbers Itegers: coutig umbers, zero, d the egtive of the coutig umbers. ex: {,-3, -, -, 0,,, 3, } Rtiol Numbers: quotiets of two itegers with ozero deomitor; termitig or repetig decimls.
More informationModule 4. Signal Representation and Baseband Processing. Version 2 ECE IIT, Kharagpur
Module 4 Sigl Represettio d Bsed Processig Versio ECE IIT, Khrgpur Lesso 5 Orthogolity Versio ECE IIT, Khrgpur Ater redig this lesso, you will ler out Bsic cocept o orthogolity d orthoormlity; Strum -
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 informationData Structures Lecture 9
Fall 2017 Fag Yu Software Security Lab. Dept. Maagemet Iformatio Systems, Natioal Chegchi Uiversity Data Structures Lecture 9 Midterm o Dec. 7 (9:10-12:00am, 106) Lec 1-9, TextBook Ch1-8, 11,12 How to
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 informationSome New Iterative Methods Based on Composite Trapezoidal Rule for Solving Nonlinear Equations
Itertiol Jourl of Mthemtics d Sttistics Ivetio (IJMSI) E-ISSN: 31 767 P-ISSN: 31-759 Volume Issue 8 August. 01 PP-01-06 Some New Itertive Methods Bsed o Composite Trpezoidl Rule for Solvig Nolier Equtios
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 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 informationSect Simplifying Radical Expressions. We can use our properties of exponents to establish two properties of radicals: and
128 Sect 10.3 - Simplifyig Rdicl Expressios Cocept #1 Multiplictio d Divisio Properties of Rdicls We c use our properties of expoets to estlish two properties of rdicls: () 1/ 1/ 1/ & ( Multiplictio d
More information( ) 2 3 ( ) I. Order of operations II. Scientific Notation. Simplify. Write answers in scientific notation. III.
Assessmet Ceter Elemetry Alger Study Guide for the ACCUPLACER (CPT) The followig smple questios re similr to the formt d otet of questios o the Aupler Elemetry Alger test. Reviewig these smples will give
More informationNumerical Solutions of Fredholm Integral Equations Using Bernstein Polynomials
Numericl Solutios of Fredholm Itegrl Equtios Usig erstei Polyomils A. Shiri, M. S. Islm Istitute of Nturl Scieces, Uited Itertiol Uiversity, Dhk-, gldesh Deprtmet of Mthemtics, Uiversity of Dhk, Dhk-,
More informationMatrix Multiplication. Data Structures and Algorithms Andrei Bulatov
Matrix Multiplicatio Data Structures ad Algorithms Adrei Bulatov Algorithms Matrix Multiplicatio 7- Matrix Multiplicatio Matrix multiplicatio. Give two -by- matrices A ad B, compute A B. k kj ik ij b a
More informationLaws of Integral Indices
A Lws of Itegrl Idices A. Positive Itegrl Idices I, is clled the se, is clled the idex lso clled the expoet. mes times.... Exmple Simplify 5 6 c Solutio 8 5 6 c 6 Exmple Simplify Solutio The results i
More informationSequence and Series of Functions
6 Sequece d Series of Fuctios 6. Sequece of Fuctios 6.. Poitwise Covergece d Uiform Covergece Let J be itervl i R. Defiitio 6. For ech N, suppose fuctio f : J R is give. The we sy tht sequece (f ) of fuctios
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 informationConvergence rates of approximate sums of Riemann integrals
Covergece rtes of pproximte sums of Riem itegrls Hiroyuki Tski Grdute School of Pure d Applied Sciece, Uiversity of Tsuku Tsuku Irki 5-857 Jp tski@mth.tsuku.c.jp Keywords : covergece rte; Riem sum; Riem
More informationAccuplacer Elementary Algebra Study Guide
Testig Ceter Studet Suess Ceter Aupler Elemetry Alger Study Guide The followig smple questios re similr to the formt d otet of questios o the Aupler Elemetry Alger test. Reviewig these smples will give
More informationIntroduction to Computational Molecular Biology. Suffix Trees
18.417 Itroductio to Computtiol Moleculr Biology Lecture 11: October 14, 004 Scribe: Athich Muthitchroe Lecturer: Ross Lippert Editor: Toy Scelfo Suffix Trees This is oe of the most complicted dt structures
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 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 informationElementary Linear Algebra
Elemetry Lier Alger Ato & Rorres, th Editio Lecture Set Chpter : Systems of Lier Equtios & Mtrices Chpter Cotets Itroductio to System of Lier Equtios Gussi Elimitio Mtrices d Mtri Opertios Iverses; Rules
More informationSchrödinger Equation Via Laplace-Beltrami Operator
IOSR Jourl of Mthemtics (IOSR-JM) e-issn: 78-578, p-issn: 39-765X. Volume 3, Issue 6 Ver. III (Nov. - Dec. 7), PP 9-95 www.iosrjourls.org Schrödiger Equtio Vi Lplce-Beltrmi Opertor Esi İ Eskitşçioğlu,
More informationMTH 146 Class 16 Notes
MTH 46 Clss 6 Notes 0.4- Cotiued Motivtio: We ow cosider the rc legth of polr curve. Suppose we wish to fid the legth of polr curve curve i terms of prmetric equtios s: r f where b. We c view the cos si
More informationYOUR FINAL IS THURSDAY, MAY 24 th from 10:30 to 12:15
Algebr /Trig Fil Em Study Guide (Sprig Semester) Mrs. Duphy YOUR FINAL IS THURSDAY, MAY 4 th from 10:30 to 1:15 Iformtio About the Fil Em The fil em is cumultive for secod semester, coverig Chpters, 3,
More informationTrapezoidal Rule of Integration
Trpezoidl Rule o Itegrtio Mjor: All Egieerig Mjors Authors: Autr Kw, Chrlie Brker Trsormig Numericl Methods Eductio or STEM Udergrdutes /0/200 Trpezoidl Rule o Itegrtio Wht is Itegrtio Itegrtio: The process
More informationCape Cod Community College
Cpe Cod Couity College Deprtetl Syllus Prepred y the Deprtet of Mthetics Dte of Deprtetl Approvl: Noveer, 006 Dte pproved y Curriculu d Progrs: Jury 9, 007 Effective: Fll 007 1. Course Nuer: MAT110 Course
More informationSurds, Indices, and Logarithms Radical
MAT 6 Surds, Idices, d Logrithms Rdicl Defiitio of the Rdicl For ll rel, y > 0, d ll itegers > 0, y if d oly if y where is the ide is the rdicl is the rdicd. Surds A umber which c be epressed s frctio
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 informationLinear Algebra. Lecture 1 September 19, 2011
Lier Algebr Lecture September 9, Outlie Course iformtio Motivtio Outlie of the course Wht is lier lgebr? Chpter. Systems of Lier Equtios. Solvig Lier Systems. Vectors d Mtrices Course iformtio Istructor:
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 informationCS473-Algorithms I. Lecture 3. Solving Recurrences. Cevdet Aykanat - Bilkent University Computer Engineering Department
CS473-Algorthms I Lecture 3 Solvg Recurreces Cevdet Aykt - Blket Uversty Computer Egeerg Deprtmet Solvg Recurreces The lyss of merge sort Lecture requred us to solve recurrece. Recurreces re lke solvg
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 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 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 informationlecture 16: Introduction to Least Squares Approximation
97 lecture 16: Itroductio to Lest Squres Approximtio.4 Lest squres pproximtio The miimx criterio is ituitive objective for pproximtig fuctio. However, i my cses it is more ppelig (for both computtio d
More informationEXERCISE a a a 5. + a 15 NEETIIT.COM
- Dowlod our droid App. Sigle choice Type Questios EXERCISE -. The first term of A.P. of cosecutive iteger is p +. The sum of (p + ) terms of this series c be expressed s () (p + ) () (p + ) (p + ) ()
More informationInner Product Spaces (Chapter 5)
Ier Product Spces Chpter 5 I this chpter e ler out :.Orthogol ectors orthogol suspces orthogol mtrices orthogol ses. Proectios o ectors d o suspces Orthogol Suspces We ko he ectors re orthogol ut ht out
More informationAlgebra II, Chapter 7. Homework 12/5/2016. Harding Charter Prep Dr. Michael T. Lewchuk. Section 7.1 nth roots and Rational Exponents
Algebr II, Chpter 7 Hrdig Chrter Prep 06-07 Dr. Michel T. Lewchuk Test scores re vilble olie. I will ot discuss the test. st retke opportuit Sturd Dec. If ou hve ot tke the test, it is our resposibilit
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 information