Exact Minimization of # of Joins
|
|
- Juniper Horn
- 5 years ago
- Views:
Transcription
1 A Quer Rewriing Algorihm: Ec Minimizion of # of Joins Emple (movie bse) selec.irecor from movie, movie, movie m3, scheule, scheule s2 where.irecor =.irecor n.cor = m3.cor n.ile =.ile n m3.ile = s2.ile Noe: number of joins in corresponing lgebr epression is (number of uples in FROM cluse) 1 Gol: minimize he number of uples in he FROM cluse k join minimizion Ec Minimizion of # of Joins Emple (movie bse) selec.irecor from movie, movie, movie m3, scheule, scheule s2 where.irecor =.irecor n.cor = m3.cor n.ile =.ile n m3.ile = s2.ile Cn his be simplifie? 1
2 Ec Minimizion of # of Joins Emple (movie bse) selec.irecor from movie, movie, movie m3, scheule, scheule s2 where.irecor =.irecor n.cor = m3.cor n.ile =.ile n m3.ile = s2.ile More inuiive represenion: movie ile irecor cor scheule heer ile m3 s2 71 Ec Minimizion of # of Joins Emple (movie bse) Cn his be simplifie? Clim: i is enough o keep n in he pern Reson:.cor cn pl he role of cn pl he role of movie ile irecor cor scheule heer ile m3 s2 72 2
3 Ec Minimizion of # of Joins Emple (movie bse) Cn his be simplifie? Clim: i is enough o keep n in he pern Reson:.cor cn pl he role of cn pl he role of movie ile irecor cor scheule heer ile 73 Ec Minimizion of # of Joins Emple (movie bse) Simplifie SQL quer: selec.irecor from movie, scheule where.ile =.ile movie ile irecor cor scheule heer ile 74 3
4 Ec Minimizion of # of Joins 4 joins selec.irecor from movie, movie, movie m3, scheule, scheule s2 where.irecor =.irecor n.cor = m3.cor n.ile =.ile n m3.ile = s2.ile 1 join selec.irecor from movie, scheule where.ile =.ile 75 Ec Minimizion of # of Joins Anoher emple: using consrins (k semnic opimizion) Fin heers showing ile b Bero n ile in which Winger cs selec.heer from scheule, scheule s2, movie, movie where.heer = s2.heer n.ile =.ile n.irecor = Bero n s2.ile =.ile n.cor = Winger movie ile irecor cor scheule heer ile Bero Winger s2 76 4
5 Ec Minimizion of # of Joins Anoher emple: using consrins Fin heers showing ile b Bero n ile in which Winger cs Suppose ech ile hs onl one irecor n ech heer shows onl one ile Then = n.irecor = Bero movie ile irecor cor scheule heer ile Bero Winger s2 77 Ec Minimizion of # of Joins Anoher emple: using consrins Fin heers showing ile b Bero n ile in which Winger cs Suppose ech ile hs onl one irecor n ech heer shows onl one ile Then = n.irecor = Bero movie ile irecor cor scheule heer ile Bero Bero Winger s2 78 5
6 Ec Minimizion of # of Joins Anoher emple: using consrins Fin heers showing ile b Bero n ile in which Winger cs Suppose ech ile hs onl one irecor n ech heer shows onl one ile Then = n.irecor = Bero movie ile irecor cor scheule heer ile Bero Winger 79 Ec Minimizion of # of Joins Anoher emple: using consrins Fin heers showing ile b Bero n ile in which Winger cs selec.heer from scheule, movie where.ile =.ile n.irecor = Bero n.cor = Winger movie ile irecor cor scheule heer ile Bero Winger 80 6
7 Ec Minimizion of # of Joins 3 joins selec.heer from scheule, scheule s2, movie, movie where.heer = s2.heer n.ile =.ile n.irecor = Bero n s2.ile =.ile n.cor = Winger 1 join selec.heer from scheule, movie where.ile =.ile n.irecor = Bero n.cor = Winger 81 Ec Minimizion of # of Joins How o reunn joins rise? Comple queries wrien b humns especill on lrge schems wih consrins Queries resuling from view unfoling see ne emple Ver comple SQL queries genere b ools 82 7
8 Dbse: Emple: Join reunncies from view unfoling Pien pi hospil oci Docor oci ocnme View (Scripps ocors): cree view ScrippsDoc s selec 1.* from Docor 1, Pien p1 where p1.hospil = Scripps n p1.oci = 1.oci View (Scripps piens): cree view ScrippsPien s selec p2.* from Pien p2 where p2.hospil = Scripps Scripps quer (using views): selec p.pi,.ocnme from ScrippsPien p, ScrippsDoc where p.oci =.oci 83 Quer on bse obine b view unfoling quer using view view1 view2 selec p.pi,.ocnme from ScrippsPien p, ScrippsDoc where p.oci =.oci cree view ScrippsDoc s selec 1.* from Docor 1, Pien p1 where p1.hospil = Scripps n p1.oci = 1.oci cree view ScrippsPien s selec p2.* from Pien p2 where p2.hospil = Scripps resul of view unfoling selec p.pi,.ocnme from Pien p, Docor, Pien p1 where p.oci =.oci n p.hospil = Scripps n p1.hospil = Scripps n p1.oci =.oci 84 8
9 Resuling quer hs reunn join selec p.pi,.ocnme from Pien p, Docor, Pien p1 where p.oci =.oci n p.hospil = Scripps n p1.hospil = Scripps n p1.oci =.oci Pien pi hospil oci Docor oci ocnme p j Scripps i i n p1 Scripps i reunn nswer pi ocnme j n 85 Pien pi hospil oci Docor oci ocnme p j Scripps i i n nswer pi ocnme j n Minimize SQL quer hs one join: Selec p.pi,.ocnme From Pien p, Docor Where p.hospil = Scripps n p.oci =.oci 86 9
10 Ec Minimizion of # of Joins Minimizion lgorihm for conjuncive SQL queries: SQL quer whose where cluse is conjuncion of equliies Bsic ie: SQL quer simplifie SQL quer QBE pern minimize QBE pern 87 QBE perns Sme s QBE, ecep (for beer rebili): no unerscore o mrk vribles wilcrs re eplicil enoe b inse of blnk no inser I. in he nswer relion movie ile irecor cor scheule heer ile nswer irecor 88 10
11 From SQL conjuncive queries o QBE perns 1. Rewrie he SQL quer using uple vribles 2. For ech uple vrible in he from cluse lising relion R inser corresponing QBE row in R 3. Use repee vribles n consns o epress he equliies in he where cluse if conricion rises (wo ifferen consns re me equl) hen oupu 4. The QBE nswer relion conins row whose vribles occur in he coorines specifie in he selec cluse 5. Coorines no involve in n equli n no in he nswer re wilcrs 89 From SQL conjuncive queries o QBE perns Emple selec.irecor from movie, movie, movie m3, scheule, scheule s2 where.irecor =.irecor n.cor = m3.cor n.ile =.ile n m3.ile = s2.ile movie ile irecor cor scheule heer ile m3 nswer irecor s
12 From SQL conjuncive queries o QBE perns Emple selec.irecor from movie, movie, movie m3, scheule, scheule s2 where.irecor =.irecor n.cor = m3.cor n.ile =.ile n m3.ile = s2.ile movie ile irecor cor scheule heer ile nswer irecor 91 From SQL conjuncive queries o QBE perns Anoher emple selec.heer from scheule, scheule s2, movie, movie where.heer = s2.heer n.ile =.ile n.irecor = Bero n s2.ile =.ile n.cor = Winger movie ile irecor cor scheule heer ile Bero Winger s2 nswer heer 92 12
13 From SQL conjuncive queries o QBE perns Anoher emple selec.heer from scheule, scheule s2, movie, movie where.heer = s2.heer n.ile =.ile n.irecor = Bero n s2.ile =.ile n.cor = Winger movie ile irecor cor scheule heer ile Bero Winger nswer heer 93 Quer efine b pern: ll nswers obine b mching he pern ino he bse (jus like QBE) scheule heer ile scheule heer ile Hillcres Tngo Plom Gofher. movie ile irecor cor movie ile irecor cor Tngo Bero Brno Gofher Coppol Brno nswer irecor nswer irecor Bero 94 13
14 Quer efine b pern: ll nswers obine b mching he pern ino he bse (jus like QBE) scheule heer ile scheule heer ile Hillcres Tngo Plom Gofher. movie ile irecor cor movie ile irecor cor Tngo Bero Brno Gofher Coppol Brno nswer irecor nswer irecor Coppol 95 Bck o emple: Pern Minimizion movie ile irecor cor scheule heer ile m3 s2 nswer irecor Inuiion: rows, m3, s2 re reunn Wh: if n re presen, hen he enire pern is sisfie 96 14
15 Bck o emple: Pern Minimizion movie ile irecor cor scheule heer ile m3 nswer irecor s2 Inuiion: rows, m3, s2 re reunn More precisel:, m3 cn be mppe o, n s2 o.cor 97 Pern Minimizion Formll: pern foling (k homomorphism) mpping f on vribles, consns n wilcrs of pern P such h f() = for nswer vribles n consns ever row of P is mppe o n eising row of P in he sme relion movie ile irecor cor scheule heer ile m3 s2 nswer irecor 98 f() =.cor = f(.ile) = ; f() = f(m3.irecor) = f(s2.heer) =.heer = f() = 15
16 Pern Minimizion Formll: pern foling (k homomorphism) mpping f on vribles, consns n wilcrs of pern P such h f() = for nswer vribles n consns ever row of P is mppe o n eising row of P in he sme relion Theorem: if P is pern n f is foling of P hen f(p) efines he sme quer s P 99 Theorem: P n f(p) efine he sme quer. Proof ie bse R P f(p) : nswer Mus show h nswer of P on R = nswer of f(p) on R
17 Theorem: P n f(p) efine he sme quer. Proof ie bse R h P f(p) h() h : nswer nswer of P on R nswer of f(p) on R Since f(p) P, n mching h of P in bse R is lso mching of f(p) 101 Theorem: P n f(p) efine he sme quer. Proof ie bse R P h f(p) h() h nswer of f(p) on R nswer of P on R
18 Theorem: P n f(p) efine he sme quer. Proof ie bse R h f P f(p) (h f) () h f nswer of f(p) on R nswer of P on R If h is mching of f(p) in R hen h f is mching of P in R n (h f) () = h (f()) = h(). 103 Pern minimizion lgorihm Repeel elimine reunn rows is reunn if here is foling f of P such h f(p) movie ile irecor cor scheule heer ile reunn reunn reunn nswer irecor
19 Pern minimizion lgorihm Repeel elimine reunn rows is reunn if here is foling f of P such h f(p) movie ile irecor cor scheule heer ile nswer irecor Miniml pern 105 Anoher emple R nswer A B C b c A B C b 1 c 1 -- b c 1 b b 2 c 2 b 1 c B ril n error, we cn elimine rows 3 n 4 using he foling mpping b 2 o b 1 n leving ll oher vribles unchnge. R A B C b 1 c 1 -- b c 1 2 b 1 c nswer A B C b c minimize pern 19
20 From minimize pern bck o SQL quer Emple: R A B C b 1 c 1 -- b c 1 2 b 1 c nswer A B C b c selec 1.A, 2.B, 3.C from R 1, R 2, R 3 where 1.B = 3.B n 1.C = 2.C 107 A complee emple R: ABC SQL conjuncive quer: Pern: c Minimize pern: selec 1.A, 2.B, 3.C from R 1, R 2, R 3 where 2.A = 3.A n 1.B = 5 n 2.B = 3.B n 2.B = 1.B R A B C nswer A B C R A B C nswer A B C c c 5 c Minimize SQL quer: selec 1.A, 5 s B, 3.C from R 1, R 3 where 1.B = 5 n 3.B = 5 20
21 Theorem: he minimizion lgorihm prouces n SQL quer wih minimum number of joins mong ll conjuncive SQL queries equivlen o he originl one on ll bses. Bu we cn o even beer: ke ino ccoun consrins (semnic quer opimizion). To see how his works, we een he lgorihm wih funcionl epenencies. 109 D Depenencies (k consrins) Semens bou vli Kes SSN uniquel eermines ll ribues of emploee Referenil inegri Ever suen is person Funcionl epenencies: eension of kes Ech emploee works in no more hn one eprmen NAME DEPARTMENT Use of epenencies: check inegri quer opimizion schem esign norml forms
22 Funcionl Depenencies Generlizion of ke consrins emploee ssn nme ci zip-coe se primr ke: ssn ``ssn eermines ll oher ribues`` ssn nme ci zip-coe se more generll: some ribues m eermine oher ribues wihou being kes: zip-coe se 111 Funcionl Depenencies Funcionl epenenc on R: epression X Y where X, Y (R) An insnce of R sisfies X Y iff whenever wo uples gree on X, he lso gree on Y e.g. SCHEDULE THEATER TITLE l joll killer omoes hillcres ngo Sisfies THEATER TITLE SCHEDULE THEATER TITLE l joll killer omoes hillcres ngo hillcres splenor Violes THEATER TITLE sisfies TITLE THEATER
23 Using FDs in quer opimizion Emple revisie: suppose ile irecor, heer ile Fin heers showing ile b Bero n ile in which Winger cs selec.heer from scheule, scheule s2, movie, movie where.heer = s2.heer n.ile =.ile n.irecor = Bero n s2.ile =.ile n.cor = Winger movie ile irecor cor scheule heer ile Bero Winger s2 nswer heer 113 movie ile irecor cor scheule heer ile Bero Winger s2 nswer heer This pern is miniml. However, we know h ile irecor, heer ile. Since he bse sisfies heer ile, = in ever mching. Ne, since ile irecor n =,.irecor =.irecor = Bero. We obin he following pern: movie ile irecor cor scheule heer ile Bero Bero Winger 114 nswer heer 23
24 movie ile irecor cor scheule heer ile Bero Bero Winger nswer heer Minimize pern: movie ile irecor cor scheule heer ile Bero Winger nswer heer 115 In generl: cn simplif pern P if he bse sisfies se F of FDs. Algorihm: The Chse Inpu: pern P, se F of FDs Oupu: bleu CHASE F (P) equivlen o P on ll relions sisfing F Inuiion: he chse moifies P so h i sisfies ll FDs in F Noe: ssume wihou loss of generli h FDs in F re of he form X A where A is one ribue
25 Bsic chse sep wih X A If pern conins wo rows h gree on X n isgree on A, chnge hem so h he lso gree on A X X A A 117 The Chse in eil Repe unil no chnge For ech X A in F o For ll rows 1, 2 in P such h 1 (X) = 2 (X), 1 (A) 2 (A) o if 1 (A), 2 (A) re non-nswer vribles hen replce one b he oher everwhere in P if 1 (A) is non-nswer vrible n 2 (A) is wilcr, hen replce 2 (A) b 1 (A) everwhere in P If 1 (A), 2 (A) re wilcrs, replce boh wih new vrible if 1 (A) is n nswer vrible n 2 (A) is vrible or wilcr, hen replce 2 (A) b 1 (A) everwhere in P if 1 (A) is consn, 2 (A) is vrible or wilcr, hen replce 2 (A) b 1 (A) everwhere in P if 1 (A) is consn, 2 (A) is consn hen STOP n oupu
26 Opimizion of SQL conjuncive queries wih FDs Inpu: SQL conjuncive quer Q, se of FDs F buil he pern P of Q compue CHASE F (P) minimize CHASE F (P) consruc he SQL quer corresponing o he miniml pern Clim: he bove prouces n SQL quer equivlen o Q on ll bses sisfing F, h hs he minimum possible number of joins 119 Emple selec 1.A, 1.B, 2.C from R 1, R 2 where 1.A = 5 n 1.B = 2.B R:ABC sisfies B A 1. Pern: R A B C nswer A B C 1 5 b -- 5 b c 2 -- b c 2. Chse wih B A: R A B C nswer A B C 1 5 b -- 5 b c 2 5 b c 3. Minimize: R A B C nswer A B C 5 b c 5 b c selec * from R where A =
27 Emple selec 2.A, 2.B, 1.C from R 1, R 2 where 1.A = 5 n 2.A = 6 n 1.B = 2.B R: ABC sisfies B A 1. Pern: R A B C nswer A B C 1 5 b c 6 b c 2 6 b Chse wih B A: 5 6 so he resul is emp 3. Minimize quer: 121 Emple selec 1.A, 3.B from R 1, R 2, R 3, R 4 where 1.A = 2.A n 2.A = 4.A n 1.B = 3.B n 4.B = 5 n 2.C = 3.C R: ABC sisfies A B 1. Pern: R A B C nswer A B 1 b -- b 2 -- c 3 -- b c Chse wih A B: R A B C nswer A B 5 c c 3. Minimize: R A B C 5 c 122 selec A, 5 s B from R where B = 5 27
September 20 Homework Solutions
College of Engineering nd Compuer Science Mechnicl Engineering Deprmen Mechnicl Engineering A Seminr in Engineering Anlysis Fll 7 Number 66 Insrucor: Lrry Creo Sepember Homework Soluions Find he specrum
More informationContraction Mapping Principle Approach to Differential Equations
epl Journl of Science echnology 0 (009) 49-53 Conrcion pping Principle pproch o Differenil Equions Bishnu P. Dhungn Deprmen of hemics, hendr Rn Cmpus ribhuvn Universiy, Khmu epl bsrc Using n eension of
More informationProperties of Logarithms. Solving Exponential and Logarithmic Equations. Properties of Logarithms. Properties of Logarithms. ( x)
Properies of Logrihms Solving Eponenil nd Logrihmic Equions Properies of Logrihms Produc Rule ( ) log mn = log m + log n ( ) log = log + log Properies of Logrihms Quoien Rule log m = logm logn n log7 =
More information4.8 Improper Integrals
4.8 Improper Inegrls Well you ve mde i hrough ll he inegrion echniques. Congrs! Unforunely for us, we sill need o cover one more inegrl. They re clled Improper Inegrls. A his poin, we ve only del wih inegrls
More informationA Simple Method to Solve Quartic Equations. Key words: Polynomials, Quartics, Equations of the Fourth Degree INTRODUCTION
Ausrlin Journl of Bsic nd Applied Sciences, 6(6): -6, 0 ISSN 99-878 A Simple Mehod o Solve Quric Equions Amir Fhi, Poo Mobdersn, Rhim Fhi Deprmen of Elecricl Engineering, Urmi brnch, Islmic Ad Universi,
More informatione t dt e t dt = lim e t dt T (1 e T ) = 1
Improper Inegrls There re wo ypes of improper inegrls - hose wih infinie limis of inegrion, nd hose wih inegrnds h pproch some poin wihin he limis of inegrion. Firs we will consider inegrls wih infinie
More informationREAL ANALYSIS I HOMEWORK 3. Chapter 1
REAL ANALYSIS I HOMEWORK 3 CİHAN BAHRAN The quesions re from Sein nd Shkrchi s e. Chper 1 18. Prove he following sserion: Every mesurble funcion is he limi.e. of sequence of coninuous funcions. We firs
More informationA Kalman filtering simulation
A Klmn filering simulion The performnce of Klmn filering hs been esed on he bsis of wo differen dynmicl models, ssuming eiher moion wih consn elociy or wih consn ccelerion. The former is epeced o beer
More informationS Radio transmission and network access Exercise 1-2
S-7.330 Rdio rnsmission nd nework ccess Exercise 1 - P1 In four-symbol digil sysem wih eqully probble symbols he pulses in he figure re used in rnsmission over AWGN-chnnel. s () s () s () s () 1 3 4 )
More information1 jordan.mcd Eigenvalue-eigenvector approach to solving first order ODEs. -- Jordan normal (canonical) form. Instructor: Nam Sun Wang
jordnmcd Eigenvlue-eigenvecor pproch o solving firs order ODEs -- ordn norml (cnonicl) form Insrucor: Nm Sun Wng Consider he following se of coupled firs order ODEs d d x x 5 x x d d x d d x x x 5 x x
More informationPhysics 2A HW #3 Solutions
Chper 3 Focus on Conceps: 3, 4, 6, 9 Problems: 9, 9, 3, 41, 66, 7, 75, 77 Phsics A HW #3 Soluions Focus On Conceps 3-3 (c) The ccelerion due o grvi is he sme for boh blls, despie he fc h he hve differen
More informationThe solution is often represented as a vector: 2xI + 4X2 + 2X3 + 4X4 + 2X5 = 4 2xI + 4X2 + 3X3 + 3X4 + 3X5 = 4. 3xI + 6X2 + 6X3 + 3X4 + 6X5 = 6.
[~ o o :- o o ill] i 1. Mrices, Vecors, nd Guss-Jordn Eliminion 1 x y = = - z= The soluion is ofen represened s vecor: n his exmple, he process of eliminion works very smoohly. We cn elimine ll enries
More informationMore on Magnetically C Coupled Coils and Ideal Transformers
Appenix ore on gneiclly C Couple Coils Iel Trnsformers C. Equivlen Circuis for gneiclly Couple Coils A imes, i is convenien o moel mgneiclly couple coils wih n equivlen circui h oes no involve mgneic coupling.
More informationChapter 2: Evaluative Feedback
Chper 2: Evluive Feedbck Evluing cions vs. insrucing by giving correc cions Pure evluive feedbck depends olly on he cion ken. Pure insrucive feedbck depends no ll on he cion ken. Supervised lerning is
More informationLecture 2: Network Flow. c 14
Comp 260: Avne Algorihms Tufs Universiy, Spring 2016 Prof. Lenore Cowen Srie: Alexner LeNil Leure 2: Nework Flow 1 Flow Neworks s 16 12 13 10 4 20 14 4 Imgine some nework of pipes whih rry wer, represene
More informationPHYSICS 1210 Exam 1 University of Wyoming 14 February points
PHYSICS 1210 Em 1 Uniersiy of Wyoming 14 Februry 2013 150 poins This es is open-noe nd closed-book. Clculors re permied bu compuers re no. No collborion, consulion, or communicion wih oher people (oher
More information(b) 10 yr. (b) 13 m. 1.6 m s, m s m s (c) 13.1 s. 32. (a) 20.0 s (b) No, the minimum distance to stop = 1.00 km. 1.
Answers o Een Numbered Problems Chper. () 7 m s, 6 m s (b) 8 5 yr 4.. m ih 6. () 5. m s (b).5 m s (c).5 m s (d) 3.33 m s (e) 8. ().3 min (b) 64 mi..3 h. ().3 s (b) 3 m 4..8 mi wes of he flgpole 6. (b)
More informationSolutions to Problems from Chapter 2
Soluions o Problems rom Chper Problem. The signls u() :5sgn(), u () :5sgn(), nd u h () :5sgn() re ploed respecively in Figures.,b,c. Noe h u h () :5sgn() :5; 8 including, bu u () :5sgn() is undeined..5
More informationINTEGRALS. Exercise 1. Let f : [a, b] R be bounded, and let P and Q be partitions of [a, b]. Prove that if P Q then U(P ) U(Q) and L(P ) L(Q).
INTEGRALS JOHN QUIGG Eercise. Le f : [, b] R be bounded, nd le P nd Q be priions of [, b]. Prove h if P Q hen U(P ) U(Q) nd L(P ) L(Q). Soluion: Le P = {,..., n }. Since Q is obined from P by dding finiely
More informationPART V. Wavelets & Multiresolution Analysis
Wveles 65 PART V Wveles & Muliresoluion Anlysis ADDITIONAL REFERENCES: A. Cohen, Numericl Anlysis o Wvele Mehods, Norh-Hollnd, (003) S. Mll, A Wvele Tour o Signl Processing, Acdemic Press, (999) I. Dubechies,
More informationENGR 1990 Engineering Mathematics The Integral of a Function as a Function
ENGR 1990 Engineering Mhemics The Inegrl of Funcion s Funcion Previously, we lerned how o esime he inegrl of funcion f( ) over some inervl y dding he res of finie se of rpezoids h represen he re under
More informationHow to Prove the Riemann Hypothesis Author: Fayez Fok Al Adeh.
How o Prove he Riemnn Hohesis Auhor: Fez Fok Al Adeh. Presiden of he Srin Cosmologicl Socie P.O.Bo,387,Dmscus,Sri Tels:963--77679,735 Emil:hf@scs-ne.org Commens: 3 ges Subj-Clss: Funcionl nlsis, comle
More informationMotion. Part 2: Constant Acceleration. Acceleration. October Lab Physics. Ms. Levine 1. Acceleration. Acceleration. Units for Acceleration.
Moion Accelerion Pr : Consn Accelerion Accelerion Accelerion Accelerion is he re of chnge of velociy. = v - vo = Δv Δ ccelerion = = v - vo chnge of velociy elpsed ime Accelerion is vecor, lhough in one-dimensionl
More informationrank Additionally system of equation only independent atfect Gawp (A) possible ( Alb ) easily process form rang A. Proposition with Definition
Defiion nexivnol numer ler dependen rows mrix sid row Gwp elimion mehod does no fec h numer end process i possile esily red rng fc for mrix form der zz rn rnk wih m dcussion i holds rr o Proposiion ler
More information5.1-The Initial-Value Problems For Ordinary Differential Equations
5.-The Iniil-Vlue Problems For Ordinry Differenil Equions Consider solving iniil-vlue problems for ordinry differenil equions: (*) y f, y, b, y. If we know he generl soluion y of he ordinry differenil
More informationcan be viewed as a generalized product, and one for which the product of f and g. That is, does
Boyce/DiPrim 9 h e, Ch 6.6: The Convoluion Inegrl Elemenry Differenil Equion n Bounry Vlue Problem, 9 h eiion, by Willim E. Boyce n Richr C. DiPrim, 9 by John Wiley & Son, Inc. Someime i i poible o wrie
More informationNeural assembly binding in linguistic representation
Neurl ssembly binding in linguisic represenion Frnk vn der Velde & Mrc de Kmps Cogniive Psychology Uni, Universiy of Leiden, Wssenrseweg 52, 2333 AK Leiden, The Neherlnds, vdvelde@fsw.leidenuniv.nl Absrc.
More informationReinforcement learning
CS 75 Mchine Lening Lecue b einfocemen lening Milos Huskech milos@cs.pi.edu 539 Senno Sque einfocemen lening We wn o len conol policy: : X A We see emples of bu oupus e no given Insed of we ge feedbck
More informationPhysics Worksheet Lesson 4: Linear Motion Section: Name:
Physics Workshee Lesson 4: Liner Moion Secion: Nme: 1. Relie Moion:. All moion is. b. is n rbirry coorine sysem wih reference o which he posiion or moion of somehing is escribe or physicl lws re formule.
More informationP441 Analytical Mechanics - I. Coupled Oscillators. c Alex R. Dzierba
Lecure 3 Mondy - Deceber 5, 005 Wrien or ls upded: Deceber 3, 005 P44 Anlyicl Mechnics - I oupled Oscillors c Alex R. Dzierb oupled oscillors - rix echnique In Figure we show n exple of wo coupled oscillors,
More informationSOME USEFUL MATHEMATICS
SOME USEFU MAHEMAICS SOME USEFU MAHEMAICS I is esy o mesure n preic he behvior of n elecricl circui h conins only c volges n currens. However, mos useful elecricl signls h crry informion vry wih ime. Since
More informationThe Fundamental Theorems of Calculus
FunamenalTheorems.nb 1 The Funamenal Theorems of Calculus You have now been inrouce o he wo main branches of calculus: ifferenial calculus (which we inrouce wih he angen line problem) an inegral calculus
More informationBipartite Matching. Matching. Bipartite Matching. Maxflow Formulation
Mching Inpu: undireced grph G = (V, E). Biprie Mching Inpu: undireced, biprie grph G = (, E).. Mching Ern Myr, Hrld äcke Biprie Mching Inpu: undireced, biprie grph G = (, E). Mflow Formulion Inpu: undireced,
More informationControl with binary code. William Sandqvist
Control with binry code Dec Bin He Oct 218 10 11011010 2 DA 16 332 8 E 1.1c Deciml to Binäry binry weights: 1024 512 256 128 64 32 16 8 4 2 1 71 10? 2 E 1.1c Deciml to Binäry binry weights: 1024 512 256
More informationEXERCISE - 01 CHECK YOUR GRASP
UNIT # 09 PARABOLA, ELLIPSE & HYPERBOLA PARABOLA EXERCISE - 0 CHECK YOUR GRASP. Hin : Disnce beween direcri nd focus is 5. Given (, be one end of focl chord hen oher end be, lengh of focl chord 6. Focus
More informationAlgebra Of Matrices & Determinants
lgebr Of Mtrices & Determinnts Importnt erms Definitions & Formule 0 Mtrix - bsic introduction: mtrix hving m rows nd n columns is clled mtrix of order m n (red s m b n mtrix) nd mtrix of order lso in
More information0 for t < 0 1 for t > 0
8.0 Sep nd del funcions Auhor: Jeremy Orloff The uni Sep Funcion We define he uni sep funcion by u() = 0 for < 0 for > 0 I is clled he uni sep funcion becuse i kes uni sep = 0. I is someimes clled he Heviside
More informationESSLLI 2007 COURSE READER. ESSLLI is the Annual Summer School of FoLLI, The Association for Logic, Language and Information
ESSLLI 2007 19h Europen Summer School in Logic, Lnguge nd Inormion Augus 6-17, 2007 hp://www.cs.cd.ie/esslli2007 Triniy College Dulin Irelnd COURSE READER ESSLLI is he Annul Summer School o FoLLI, The
More informationSome Inequalities variations on a common theme Lecture I, UL 2007
Some Inequliies vriions on common heme Lecure I, UL 2007 Finbrr Hollnd, Deprmen of Mhemics, Universiy College Cork, fhollnd@uccie; July 2, 2007 Three Problems Problem Assume i, b i, c i, i =, 2, 3 re rel
More informationProbability, Estimators, and Stationarity
Chper Probbiliy, Esimors, nd Sionriy Consider signl genered by dynmicl process, R, R. Considering s funcion of ime, we re opering in he ime domin. A fundmenl wy o chrcerize he dynmics using he ime domin
More informationAn object moving with speed v around a point at distance r, has an angular velocity. m/s m
Roion The mosphere roes wih he erh n moions wihin he mosphere clerly follow cure phs (cyclones, nicyclones, hurricnes, ornoes ec.) We nee o epress roion quniiely. For soli objec or ny mss h oes no isor
More informationHow to prove the Riemann Hypothesis
Scholrs Journl of Phsics, Mhemics nd Sisics Sch. J. Phs. Mh. S. 5; (B:5-6 Scholrs Acdemic nd Scienific Publishers (SAS Publishers (An Inernionl Publisher for Acdemic nd Scienific Resources *Corresonding
More informationCSC 373: Algorithm Design and Analysis Lecture 9
CSC 373: Algorihm Deign n Anlyi Leure 9 Alln Boroin Jnury 28, 2013 1 / 16 Leure 9: Announemen n Ouline Announemen Prolem e 1 ue hi Friy. Term Te 1 will e hel nex Mony, Fe in he uoril. Two nnounemen o follow
More information14. The fundamental theorem of the calculus
4. The funmenl heorem of he clculus V 20 00 80 60 40 20 0 0 0.2 0.4 0.6 0.8 v 400 200 0 0 0.2 0.5 0.8 200 400 Figure : () Venriculr volume for subjecs wih cpciies C = 24 ml, C = 20 ml, C = 2 ml n (b) he
More informationLinear Circuit Elements
1/25/2011 inear ircui Elemens.doc 1/6 inear ircui Elemens Mos microwave devices can be described or modeled in erms of he hree sandard circui elemens: 1. ESISTANE () 2. INDUTANE () 3. APAITANE () For he
More informationAdvanced Integration Techniques: Integration by Parts We may differentiate the product of two functions by using the product rule:
Avance Inegraion Techniques: Inegraion by Pars We may iffereniae he prouc of wo funcions by using he prouc rule: x f(x)g(x) = f (x)g(x) + f(x)g (x). Unforunaely, fining an anierivaive of a prouc is no
More informationAverage & instantaneous velocity and acceleration Motion with constant acceleration
Physics 7: Lecure Reminders Discussion nd Lb secions sr meeing ne week Fill ou Pink dd/drop form if you need o swich o differen secion h is FULL. Do i TODAY. Homework Ch. : 5, 7,, 3,, nd 6 Ch.: 6,, 3 Submission
More informationMATH 124 AND 125 FINAL EXAM REVIEW PACKET (Revised spring 2008)
MATH 14 AND 15 FINAL EXAM REVIEW PACKET (Revised spring 8) The following quesions cn be used s review for Mh 14/ 15 These quesions re no cul smples of quesions h will pper on he finl em, bu hey will provide
More informationAho-Corasick Automata
Aho-Corsick Auom Sring D Srucures Over he nex few dys, we're going o be exploring d srucures specificlly designed for sring processing. These d srucures nd heir vrins re frequenly used in prcice Looking
More informationMinimum Squared Error
Minimum Squred Error LDF: Minimum Squred-Error Procedures Ide: conver o esier nd eer undersood prolem Percepron y i > for ll smples y i solve sysem of liner inequliies MSE procedure y i = i for ll smples
More information4.5 JACOBI ITERATION FOR FINDING EIGENVALUES OF A REAL SYMMETRIC MATRIX. be a real symmetric matrix. ; (where we choose θ π for.
4.5 JACOBI ITERATION FOR FINDING EIGENVALUES OF A REAL SYMMETRIC MATRIX Some reliminries: Let A be rel symmetric mtrix. Let Cos θ ; (where we choose θ π for Cos θ 4 purposes of convergence of the scheme)
More informationMinimum Squared Error
Minimum Squred Error LDF: Minimum Squred-Error Procedures Ide: conver o esier nd eer undersood prolem Percepron y i > 0 for ll smples y i solve sysem of liner inequliies MSE procedure y i i for ll smples
More informationSome basic notation and terminology. Deterministic Finite Automata. COMP218: Decision, Computation and Language Note 1
COMP28: Decision, Compuion nd Lnguge Noe These noes re inended minly s supplemen o he lecures nd exooks; hey will e useful for reminders ou noion nd erminology. Some sic noion nd erminology An lphe is
More informationHomework 5 for BST 631: Statistical Theory I Solutions, 09/21/2006
Homewok 5 fo BST 63: Sisicl Theoy I Soluions, 9//6 Due Time: 5:PM Thusy, on 9/8/6. Polem ( oins). Book olem.8. Soluion: E = x f ( x) = ( x) f ( x) + ( x ) f ( x) = xf ( x) + xf ( x) + f ( x) f ( x) Accoing
More informationECE Microwave Engineering. Fall Prof. David R. Jackson Dept. of ECE. Notes 10. Waveguides Part 7: Transverse Equivalent Network (TEN)
EE 537-635 Microwve Engineering Fll 7 Prof. Dvid R. Jcson Dep. of EE Noes Wveguides Pr 7: Trnsverse Equivlen Newor (N) Wveguide Trnsmission Line Model Our gol is o come up wih rnsmission line model for
More informationd 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3
and d = c b - b c c d = c b - b c c This process is coninued unil he nh row has been compleed. The complee array of coefficiens is riangular. Noe ha in developing he array an enire row may be divided or
More informationDuality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.
Dulity #. Second itertion for HW problem Recll our LP emple problem we hve been working on, in equlity form, is given below.,,,, 8 m F which, when written in slightly different form, is 8 F Recll tht we
More informationMTH 146 Class 11 Notes
8.- Are of Surfce of Revoluion MTH 6 Clss Noes Suppose we wish o revolve curve C round n is nd find he surfce re of he resuling solid. Suppose f( ) is nonnegive funcion wih coninuous firs derivive on he
More information2D Motion WS. A horizontally launched projectile s initial vertical velocity is zero. Solve the following problems with this information.
Nme D Moion WS The equions of moion h rele o projeciles were discussed in he Projecile Moion Anlsis Acii. ou found h projecile moes wih consn eloci in he horizonl direcion nd consn ccelerion in he ericl
More informationData Structures LECTURE 10. Huffman coding. Example. Coding: problem definition
Dt Strutures, Spring 24 L. Joskowiz Dt Strutures LEURE Humn oing Motivtion Uniquel eipherle oes Prei oes Humn oe onstrution Etensions n pplitions hpter 6.3 pp 385 392 in tetook Motivtion Suppose we wnt
More informationEXISTENCE AND UNIQUENESS OF SOLUTIONS FOR A SECOND-ORDER ITERATIVE BOUNDARY-VALUE PROBLEM
Elecronic Journl of Differenil Equions, Vol. 208 (208), No. 50, pp. 6. ISSN: 072-669. URL: hp://ejde.mh.xse.edu or hp://ejde.mh.un.edu EXISTENCE AND UNIQUENESS OF SOLUTIONS FOR A SECOND-ORDER ITERATIVE
More informationTopic 1 Notes Jeremy Orloff
Topic 1 Notes Jerem Orloff 1 Introduction to differentil equtions 1.1 Gols 1. Know the definition of differentil eqution. 2. Know our first nd second most importnt equtions nd their solutions. 3. Be ble
More information3 Motion with constant acceleration: Linear and projectile motion
3 Moion wih consn ccelerion: Liner nd projecile moion cons, In he precedin Lecure we he considered moion wih consn ccelerion lon he is: Noe h,, cn be posiie nd neie h leds o rie of behiors. Clerl similr
More informationPhysics 101 Lecture 4 Motion in 2D and 3D
Phsics 11 Lecure 4 Moion in D nd 3D Dr. Ali ÖVGÜN EMU Phsics Deprmen www.ogun.com Vecor nd is componens The componens re he legs of he righ ringle whose hpoenuse is A A A A A n ( θ ) A Acos( θ) A A A nd
More informationAn integral having either an infinite limit of integration or an unbounded integrand is called improper. Here are two examples.
Improper Inegrls To his poin we hve only considered inegrls f(x) wih he is of inegrion nd b finie nd he inegrnd f(x) bounded (nd in fc coninuous excep possibly for finiely mny jump disconinuiies) An inegrl
More informationAQA Further Pure 2. Hyperbolic Functions. Section 2: The inverse hyperbolic functions
Hperbolic Functions Section : The inverse hperbolic functions Notes nd Emples These notes contin subsections on The inverse hperbolic functions Integrtion using the inverse hperbolic functions Logrithmic
More informationQuestion Details Int Vocab 1 [ ] Question Details Int Vocab 2 [ ]
/3/5 Assignmen Previewer 3 Bsic: Definie Inegrls (67795) Due: Wed Apr 5 5 9: AM MDT Quesion 3 5 6 7 8 9 3 5 6 7 8 9 3 5 6 Insrucions Red ody's Noes nd Lerning Gols. Quesion Deils In Vocb [37897] The chnge
More informationThis is an example to show you how SMath can calculate the movement of kinematic mechanisms.
Dec :5:6 - Kinemaics model of Simple Arm.sm This file is provided for educaional purposes as guidance for he use of he sofware ool. I is no guaraeed o be free from errors or ommissions. The mehods and
More information[5] Solving Multiple Linear Equations A system of m linear equations and n unknown variables:
[5] Solving Muliple Liner Equions A syse of liner equions nd n unknown vribles: + + + nn = b + + + = b n n : + + + nn = b n n A= b, where A =, : : : n : : : : n = : n A = = = ( ) where, n j = ( ); = :
More informationA LOG IS AN EXPONENT.
Ojeives: n nlze nd inerpre he ehvior of rihmi funions, inluding end ehvior nd smpoes. n solve rihmi equions nlill nd grphill. n grph rihmi funions. n deermine he domin nd rnge of rihmi funions. n deermine
More informationSOLUTIONS TO ECE 3084
SOLUTIONS TO ECE 384 PROBLEM 2.. For each sysem below, specify wheher or no i is: (i) memoryless; (ii) causal; (iii) inverible; (iv) linear; (v) ime invarian; Explain your reasoning. If he propery is no
More informationForms of Energy. Mass = Energy. Page 1. SPH4U: Introduction to Work. Work & Energy. Particle Physics:
SPH4U: Inroducion o ork ork & Energy ork & Energy Discussion Definiion Do Produc ork of consn force ork/kineic energy heore ork of uliple consn forces Coens One of he os iporn conceps in physics Alernive
More informationOperations with Matrices
Section. Equlit of Mtrices Opertions with Mtrices There re three ws to represent mtri.. A mtri cn be denoted b n uppercse letter, such s A, B, or C.. A mtri cn be denoted b representtive element enclosed
More informationFlow Networks Alon Efrat Slides courtesy of Charles Leiserson with small changes by Carola Wenk. Flow networks. Flow networks CS 445
CS 445 Flow Nework lon Efr Slide corey of Chrle Leieron wih mll chnge by Crol Wenk Flow nework Definiion. flow nework i direced grph G = (V, E) wih wo diingihed erice: orce nd ink. Ech edge (, ) E h nonnegie
More informationSECTION 9-4 Translation of Axes
9-4 Trnsltion of Aes 639 Rdiotelescope For the receiving ntenn shown in the figure, the common focus F is locted 120 feet bove the verte of the prbol, nd focus F (for the hperbol) is 20 feet bove the verte.
More information5.2 Exponent Properties Involving Quotients
5. Eponent Properties Involving Quotients Lerning Objectives Use the quotient of powers property. Use the power of quotient property. Simplify epressions involving quotient properties of eponents. Use
More informationChapter 2. Motion along a straight line. 9/9/2015 Physics 218
Chper Moion long srigh line 9/9/05 Physics 8 Gols for Chper How o describe srigh line moion in erms of displcemen nd erge elociy. The mening of insnneous elociy nd speed. Aerge elociy/insnneous elociy
More informationChapter 7: Solving Trig Equations
Haberman MTH Secion I: The Trigonomeric Funcions Chaper 7: Solving Trig Equaions Le s sar by solving a couple of equaions ha involve he sine funcion EXAMPLE a: Solve he equaion sin( ) The inverse funcions
More informationf(x) dx with An integral having either an infinite limit of integration or an unbounded integrand is called improper. Here are two examples dx x x 2
Impope Inegls To his poin we hve only consideed inegls f() wih he is of inegion nd b finie nd he inegnd f() bounded (nd in fc coninuous ecep possibly fo finiely mny jump disconinuiies) An inegl hving eihe
More informationES.182A Topic 30 Notes Jeremy Orloff
ES82A opic 3 Notes Jerem Orloff 3 Non-independent vribles: chin rule Recll the chin rule: If w = f, ; nd = r, t, = r, t then = + r t r t r t = + t t t r nfortuntel, sometimes there re more complicted reltions
More informationapproaches as n becomes larger and larger. Since e > 1, the graph of the natural exponential function is as below
. Eponentil nd rithmic functions.1 Eponentil Functions A function of the form f() =, > 0, 1 is clled n eponentil function. Its domin is the set of ll rel f ( 1) numbers. For n eponentil function f we hve.
More informationA Time Truncated Improved Group Sampling Plans for Rayleigh and Log - Logistic Distributions
ISSNOnline : 39-8753 ISSN Prin : 347-67 An ISO 397: 7 Cerified Orgnizion Vol. 5, Issue 5, My 6 A Time Trunced Improved Group Smpling Plns for Ryleigh nd og - ogisic Disribuions P.Kvipriy, A.R. Sudmni Rmswmy
More informationTHE DISCRIMINANT & ITS APPLICATIONS
THE DISCRIMINANT & ITS APPLICATIONS The discriminnt ( Δ ) is the epression tht is locted under the squre root sign in the qudrtic formul i.e. Δ b c. For emple: Given +, Δ () ( )() The discriminnt is used
More informationf t f a f x dx By Lin McMullin f x dx= f b f a. 2
Accumulion: Thoughs On () By Lin McMullin f f f d = + The gols of he AP* Clculus progrm include he semen, Sudens should undersnd he definie inegrl s he ne ccumulion of chnge. 1 The Topicl Ouline includes
More informationOperations with Polynomials
38 Chpter P Prerequisites P.4 Opertions with Polynomils Wht you should lern: How to identify the leding coefficients nd degrees of polynomils How to dd nd subtrct polynomils How to multiply polynomils
More informationHonours Introductory Maths Course 2011 Integration, Differential and Difference Equations
Honours Inroducory Mhs Course 0 Inegrion, Differenil nd Difference Equions Reding: Ching Chper 4 Noe: These noes do no fully cover he meril in Ching, u re men o supplemen your reding in Ching. Thus fr
More informationSocial groups and social network formation [Online Appendix]
Social groups an social nework formaion [Online Appenix] Bassel Tarbush Alexaner Teyelboym Sepember 2, 25 This appenix provies supplemenary maerial for he paper Social groups an social nework formaion
More informationECE Microwave Engineering
EE 537-635 Microwve Engineering Adped from noes y Prof. Jeffery T. Willims Fll 8 Prof. Dvid R. Jcson Dep. of EE Noes Wveguiding Srucures Pr 7: Trnsverse Equivlen Newor (N) Wveguide Trnsmission Line Model
More information3. Renewal Limit Theorems
Virul Lborories > 14. Renewl Processes > 1 2 3 3. Renewl Limi Theorems In he inroducion o renewl processes, we noed h he rrivl ime process nd he couning process re inverses, in sens The rrivl ime process
More informationfractions Let s Learn to
5 simple lgebric frctions corne lens pupil retin Norml vision light focused on the retin concve lens Shortsightedness (myopi) light focused in front of the retin Corrected myopi light focused on the retin
More informationME 141. Engineering Mechanics
ME 141 Engineeing Mechnics Lecue 13: Kinemics of igid bodies hmd Shhedi Shkil Lecue, ep. of Mechnicl Engg, UET E-mil: sshkil@me.bue.c.bd, shkil6791@gmil.com Websie: eche.bue.c.bd/sshkil Couesy: Veco Mechnics
More informationUnit 1 Exponentials and Logarithms
HARTFIELD PRECALCULUS UNIT 1 NOTES PAGE 1 Unit 1 Eponentils nd Logrithms (2) Eponentil Functions (3) The number e (4) Logrithms (5) Specil Logrithms (7) Chnge of Bse Formul (8) Logrithmic Functions (10)
More informationLogarithms. Logarithm is another word for an index or power. POWER. 2 is the power to which the base 10 must be raised to give 100.
Logrithms. Logrithm is nother word for n inde or power. THIS IS A POWER STATEMENT BASE POWER FOR EXAMPLE : We lred know tht; = NUMBER 10² = 100 This is the POWER Sttement OR 2 is the power to which the
More informationPreview 11/1/2017. Greedy Algorithms. Coin Change. Coin Change. Coin Change. Coin Change. Greedy algorithms. Greedy Algorithms
Preview Greed Algorithms Greed Algorithms Coin Chnge Huffmn Code Greed lgorithms end to e simple nd strightforwrd. Are often used to solve optimiztion prolems. Alws mke the choice tht looks est t the moment,
More informationTax Audit and Vertical Externalities
T Audi nd Vericl Eernliies Hidey Ko Misuyoshi Yngihr Ngoy Keizi Universiy Ngoy Universiy 1. Inroducion The vericl fiscl eernliies rise when he differen levels of governmens, such s he federl nd se governmens,
More informationTopics in Combinatorial Optimization May 11, Lecture 22
8.997 Topics in Combinaorial Opimizaion May, 004 Lecure Lecurer: Michel X. Goemans Scribe: Alanha Newman Muliflows an Disjoin Pahs Le G = (V,E) be a graph an le s,,s,,...s, V be erminals. Our goal is o
More informationCS344: Introduction to Artificial Intelligence
CS344: Introduction to Artiicil Intelligence Lecture: 22-23 Herbrnd s Theorem roving stisibilit o logic ormule using semntic trees rom Smbolic logic nd mechnicl theorem proving B Runk ilni Under the guidnce
More information1.0 Electrical Systems
. Elecricl Sysems The ypes of dynmicl sysems we will e sudying cn e modeled in erms of lgeric equions, differenil equions, or inegrl equions. We will egin y looking fmilir mhemicl models of idel resisors,
More informationPhysic 231 Lecture 4. Mi it ftd l t. Main points of today s lecture: Example: addition of velocities Trajectories of objects in 2 = =
Mi i fd l Phsic 3 Lecure 4 Min poins of od s lecure: Emple: ddiion of elociies Trjecories of objecs in dimensions: dimensions: g 9.8m/s downwrds ( ) g o g g Emple: A foobll pler runs he pern gien in he
More informationIntroduction To Matrices MCV 4UI Assignment #1
Introduction To Mtrices MCV UI Assignment # INTRODUCTION: A mtrix plurl: mtrices) is rectngulr rry of numbers rrnged in rows nd columns Exmples: ) b) c) [ ] d) Ech number ppering in the rry is sid to be
More information