3. Object Oriented Programming
|
|
- Donna Baldwin
- 5 years ago
- Views:
Transcription
1 D Types 3. Obje Oriened Progrmming D ype. Se of vlues nd operions on hose vlues. Jv hs 8 primiive ypes.! Lnguge suppor for ommon operions: + - * / % &&!! boolen, hr,, bye, shor, long, flo, double D Type boolen double Se of Vlues rue, flse ny of 2 32 possible egers ny of 2 64 possible rels Buil-In Operions no, nd, or, xor dd, subr, muliply dd, subr, muliply We wn o wrie progrms h proess oher ypes of d.! s, piures, srings, inpu srems.! Complex numbers, mries, rionl numbers, polynomils,...! Pos, lines, rengles, irles, spheres,... Inroduion o Compuer Siene Rober Sedgewik nd Kevin Wyne Copyrigh 25 hp:// 2 Objes Consruors nd Mehods Obje. Holds d ype vlue; vrible nme refers o obje. Imp. Enbles us o ree our own d ypes; define operions on hem; nd egre o our progrms. To onsru new obje: Use keyword new nd nme of d ype. To pply n operion: Use nme of obje, he do operor, nd he nme of he mehod. D Type Sring 24 bis Se of Vlues sequene of hrers Operions ge red omponen, brighen Piure 2D rry of olors ge/se olor of pixel (i, j) lengh, subsring, ge ih hr Sring s = new Sring(""); N = s.lengh(); Sring = s.subsring(2, 4); 3 4
2 s 3.1. Using D Types. A sension in he eye from eleromgnei rdiion. Se of vlues (RGB represenion): possible vlues, whih qunify he moun of red, green, nd blue, eh on sle of o. R G B Inroduion o Compuer Siene Rober Sedgewik nd Kevin Wyne Copyrigh 25 hp:// 6 s Using s in Jv. A sension in he eye from eleromgnei rdiion. One use of objes. Sore ggrege d in one vrible. Se of vlues (RGB represenion): possible vlues, whih qunify he moun of red, green, nd blue, eh on sle of o. Operions (pril): for vrible. Operion.geRed().geGreen().geBlue().brigher().drker().oSring() Desripion reurn red omponen reurn green omponen reurn blue omponen reurn brigher version of reurn drker version of reurn sring represenion of Reurn ype Sring Referene: hp://jv.sun.om/j2se/1.5./dos/pi/jv/w/.hml use impor o ess Jv librry impor jv.w.; publi lss Tes { publi si void min(sring[] rgs) { SdDrw.ree(6, 6); mgen = new (,, ); sienn = new (16, 82, 45); SdDrw.moveTo(.5,.5); SdDrw.se(mgen); SdDrw.spo(.667); SdDrw.se(sienn); SdDrw.spo(.5,.5); SdDrw.se(mgen); SdDrw.spo(.333); SdDrw.show(); 7 8
3 Monohrome Luminne OOP Conex for Monohrome luminne (Y). Effeive brighness of olor. Possible memory represenion. Appliion: Whih fon olors will be mos redble wih wh bkground olors on TV nd ompuer sreens? D D1 D2 D3 D4 D5 D6 15 D7 15 D8 15 NTSC formul: grysle =.2989r +.587g +.114b. publi si ogry( ) { r =.gered(); g =.gegreen(); b =.geblue(); luminne = () (.2989*r +.587*g +.114*b); gry = new (luminne, luminne, luminne); reurn gry; More uses. Pss olors o funions; reurn olors from funions. A B mgen gry D D6 ddress ddress Boom line: we re wriing progrms h mnipule olor. 9 1 Rser Grphis Imge Proessing: Monohrome Luminne (, ) j Rser grphis: bsis for imge proessing. Gol. Conver olor imge o grysle ording o NTSC formul. Se of vlues: 2D rry of objes (pixels). i impor jv.w.; Operions: for Piure vrible pi. Operion Desripion pi.geheigh() reurn heigh of imge pi.gewidh() reurn widh of imge pi.ge(i, j) reurn olor of pixel (i, j) pi.se(i, j, ) se olor of pixel (i, j) o pi.show() disply he piure in window pi.sve(s) sve he piure o file s Referene: hp:// Reurn ype void void void publi lss Grysle { publi si void min(sring rgs[]) { Piure pi1 = new Piure(rgs[]); widh = pi1.widh(); heigh = pi1.heigh(); Piure pi2 = new Piure(widh, heigh); for ( i = ; i < widh; i++) { for ( j = ; j < heigh; j++) { = pi.ge(i, j); gry = ogry(); pi2.se(i, j, gry); pi1.show(); pi2.show(); 11 12
4 Imge Proessing: Monohrome Luminne Imge Proessing: Swirl Filer Grysle.jv. Crees wo Piure objes nd windows. Swirl.jv. Crees wo Piure objes nd windows Imge Proessing: Swirl Filer More Imge Proessing Effes Gol. Cree swirl speil effe by seing olor of oupu pixel (i, j) o olor of some oher inpu pixel (ii, jj). double i =.5 * widh; double j =.5 * heigh; for ( i = ; i < widh; i++) { for ( j = ; j < heigh; j++) { double di = i - i; double dj = j - j; double r = Mh.sqr(di*di +dj*dj); double = Mh.PI / 256 * r; ii = ()(-di*mh.os() + dj*mh.sin() + i); jj = ()( di*mh.sin() + dj*mh.os() + j); if (ii >= && ii < widh && jj >= && jj < heigh) pi2.se(i, j, pi1.ge(ii, jj)); RGB olor seprion Wve 15 Glss Sobel Edge Deeion 16
5 OOP Conex for Piure Srings Immubiliy. Cn' hnge obje's vlue one reed. Mubiliy. Cn hnge Piure obje's vlue. Sring d ype: bsis for ex proessing. Se of vlues: sequene of Uniode hrers. Operions (pril): for Sring vrible s. = pi.ge(, ); pi.se(3,, ); D D4 D8 Operion s.lengh() s.hra(1) Desripion reurn lengh of s reurn hr of s index 1 s Reurn 5 e DC s.subsring(1, 4) reurn subsring of s from 1 (inlusive) o 4 (exlusive) ell s.ouppercse() reurn upperse version of s HELLO Obje referene is nlogous o vrible nme. s.endswih(".om") does s end wih.om? nn.om rue! We n mnipule he vlue h i holds.! We n pss i o funion / mehod. s.ompreto("bye") reurn posiive eger, negive eger or zero bsed on sring omprison -1 Referene: hp://jv.sun.om/j2se/1.5./dos/pi/jv/lng/sring.hml Soring Srings Redundny Deeor Anlysis of lgorihms leure: quiksor rry of rel numbers. To sor srings:! Reple ll ourrenes of double wih Sring. Longes repeed subsring. Given sring, find he longes subsring h ppers les wie. g g si void exh(sring[], i, j) { Sring swp = [i]; [i] = [j]; [j] = swp;! Rewrie less o ompre elemens lexiogrphilly. Brue fore.! Try ll indies i nd j for sr of possible mh.! Compue longes ommon prefix for eh pir (qudri). g g i j si boolen less(sring s, Sring ) { reurn (s.ompreto() < ); Appliions.! Compuionl moleulr biology.! Burrows-Wheeler rnsform for d ompression. 19 2
6 Longes Repeed Subsring: A Soring Soluion Longes Repeed Subsring: Jv Implemenion A soring soluion.! Form suffixes, nd sor hem o bring repeed subsrings ogeher.! Compue longes prefix beween N-1 djen suffixes. g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g Suffix soring implemenion. N = s.lengh(); Sring[] suffixes = new Sring[N]; for ( i = ; i < N; i++) suffixes[i] = s.subsring(i, N); Arrys.sor(suffixes); Longes repeed subsring. Serh only djen suffixes. Sring lrs = ""; for ( i = ; i < N-1; i++) { Sring x = lp(suffixes[i], suffixes[i+1]); if (x.lengh() > lrs.lengh()) lrs = x; LCP. Find he longes sring h is prefix of boh s nd. Ex: lp("g", "g") = "g" OOP Conex for Srings Longes Repeed Subsring: Anlysis Possible memory represenion of sring.! s = "gg"; Compuionl experimens. D D1 D2 D3 D4 D5 g D6 D7 D8 D9 DA DB DC DD g DE s A D A1 15 Inpu File LRS.jv Amendmens Chrers 2,162 18,369 Brue.6 se 37 se Suffix Sor.14 se.25 se Lengh ddress lengh Aesop's Fbles 191, se 1. se 58! = s.subsring(5, 15); B D5 B1 1 Moby Dik Bible 1.2 million 4. million 43 hours 2 dys 7.6 se 34 se Chromosome million 2 monhs 61 se 12,567! No hrers re opied when you invoke subsring mehod! Pi 1 million 4 monhs 84 se 14 Consequenes.! Clling subsring kes onsn ime (insed of liner).! Creing suffixes kes liner spe (insed of qudri). esimed Lesson. Soring o he resue; enbles new reserh
7 Non-Sndrd Inpu Sreen Srping Sndrd inpu: from keybord, or use OS o redire from one file. Gol: red from severl differen inpu srems. In d ype. Red ex from sdin, file, web sie, or nework. Ex: Are wo ex files idenil? publi lss Diff { publi si void min(sring[] rgs) { In in = new In(rgs[]); In in1 = new In(rgs[1]); Sring s = in.redall(); Sring = in1.redall(); Sysem.ou.prln(s.equls()); Find urren sok prie of Google.! s.indexof(, i): index of 1 s ourrene of pern in sring s, sring offse i.! Red rw hml from hp://finne.yhoo.om/q?s=goog NYSE symbol! Find 1 s sring delimied by <b> nd </b> ppering fer Ls Trde publi lss SokQuoe { publi si void min(sring[] rgs) { Sring nme = "hp://finne.yhoo.om/q?s=" + rgs[]; In in = new In(nme); Sring inpu = in.redall(); sr = inpu.indexof("ls Trde:", ); from = inpu.indexof("<b>", sr); o = inpu.indexof("</b>", from); Sring prie = inpu.subsring(from + 3, o); Sysem.ou.prln(prie); % jv SokQuoe goog Dy Trder OOP Summry Add bells nd whisles.! Plo prie in rel-ime.! Noify user if prie dips below erin prie.! Embed logi o deermine when o buy nd sell.! Auomilly send buy nd sell orders o rding firm. Obje. Holds d ype vlue; vrible nme refers o obje. In Jv, progrms mnipule referenes o objes.! Exepion: primiive ypes, e.g., boolen,, double.! Referene ypes: Sring, Piure,, rrys, everyhing else.! OOP puris: lnguge should no hve sepre primiive ypes. Wrning. Use your own finnil risk. Boom line. We wroe progrms h mnipule olors, piures, srings, nd inpu srems. Nex ime. We'll lern how o ree new d ypes so h we n wrie progrms o mnipule our own bsrions
two values, false and true used in mathematical logic, and to two voltage levels, LOW and HIGH used in switching circuits.
Digil Logi/Design. L. 3 Mrh 2, 26 3 Logi Ges nd Boolen Alger 3. CMOS Tehnology Digil devises re predominnly mnufured in he Complemenry-Mel-Oide-Semionduor (CMOS) ehnology. Two ypes of swihes, s disussed
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 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 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 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 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 informationChapter Direct Method of Interpolation
Chper 5. Direc Mehod of Inerpolion Afer reding his chper, you should be ble o:. pply he direc mehod of inerpolion,. sole problems using he direc mehod of inerpolion, nd. use he direc mehod inerpolns o
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 informationReleased Assessment Questions, 2017 QUESTIONS
Relese Assessmen Quesions, 17 QUESTIONS Gre 9 Assessmen of Mhemis Aemi Re he insruions elow. Along wih his ookle, mke sure ou hve he Answer Bookle n he Formul Shee. You m use n spe in his ook for rough
More informationdefines eigenvectors and associated eigenvalues whenever there are nonzero solutions ( 0
Chper 7. Inroduion In his hper we ll explore eigeneors nd eigenlues from geomeri perspeies, lern how o use MATLAB o lgerilly idenify hem, nd ulimely see how hese noions re fmously pplied o he digonlizion
More informationGlobal alignment in linear space
Globl linmen in liner spe 1 2 Globl linmen in liner spe Gol: Find n opiml linmen of A[1..n] nd B[1..m] in liner spe, i.e. O(n) Exisin lorihm: Globl linmen wih bkrkin O(nm) ime nd spe, bu he opiml os n
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 informationSeptember 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 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 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 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 informationDesigning A Fanlike Structure
Designing A Fnlike Sruure To proeed wih his lesson, lik on he Nex buon here or he op of ny pge. When you re done wih his lesson, lik on he Conens buon here or he op of ny pge o reurn o he lis of lessons.
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 informationUsing hypothesis one, energy of gravitational waves is directly proportional to its frequency,
ushl nd Grviy Prshn Shool of Siene nd ngineering, Universiy of Glsgow, Glsgow-G18QQ, Unied ingdo. * orresponding uhor: : Prshn. Shool of Siene nd ngineering, Universiy of Glsgow, Glsgow-G18QQ, Unied ingdo,
More informationThe Forming Theory and Computer Simulation of the Rotary Cutting Tools with Helical Teeth and Complex Surfaces
Compuer nd Informion Siene The Forming Theory nd Compuer Simulion of he Rory Cuing Tools wih Helil Teeh nd Comple Surfes Hurn Liu Deprmen of Mehnil Engineering Zhejing Universiy of Siene nd Tehnology Hngzhou
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 informationGeneralized Projective Synchronization Using Nonlinear Control Method
ISSN 79-3889 (prin), 79-3897 (online) Inernionl Journl of Nonliner Siene Vol.8(9) No.,pp.79-85 Generlized Projeive Synhronizion Using Nonliner Conrol Mehod Xin Li Deprmen of Mhemis, Chngshu Insiue of Tehnology
More informationGraduate Algorithms CS F-18 Flow Networks
Grue Algorihm CS673-2016F-18 Flow Nework Dvi Glle Deprmen of Compuer Siene Univeriy of Sn Frnio 18-0: Flow Nework Diree Grph G Eh ege weigh i piy Amoun of wer/eon h n flow hrough pipe, for inne Single
More informationSolutions to assignment 3
D Sruure n Algorihm FR 6. Informik Sner, Telikeplli WS 03/04 hp://www.mpi-.mpg.e/~ner/oure/lg03/inex.hml Soluion o ignmen 3 Exerie Arirge i he ue of irepnie in urreny exhnge re o rnform one uni of urreny
More informationMaximum Flow. Flow Graph
Mximum Flow Chper 26 Flow Grph A ommon enrio i o ue grph o repreen flow nework nd ue i o nwer queion ou meril flow Flow i he re h meril move hrough he nework Eh direed edge i ondui for he meril wih ome
More informationAID up-mutants isolated using a high-throughput screen highlight the. immunity/cancer balance limiting DNA deaminase activity
AID up-muns isoled usin hih-hrouhpu sreen hihlih he immuniy/ner blne limiin DNA deminse iviy Men Wn, Zizhen Yn, Crisin Rd nd Mihel S. Neuberer Medil Reserh Counil Lborory of Moleulr Bioloy, Hills Rod,
More informationANSWERS TO EVEN NUMBERED EXERCISES IN CHAPTER 2
ANSWERS TO EVEN NUMBERED EXERCISES IN CHAPTER Seion Eerise -: Coninuiy of he uiliy funion Le λ ( ) be he monooni uiliy funion defined in he proof of eisene of uiliy funion If his funion is oninuous y hen
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 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 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 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 informationCylindrically Symmetric Marder Universe and Its Proper Teleparallel Homothetic Motions
J. Bsi. Appl. i. Res. 4-5 4 4 TeRod Publiion IN 9-44 Journl of Bsi nd Applied ienifi Reserh www.erod.om Clindrill mmeri Mrder Universe nd Is Proper Teleprllel Homohei Moions Amjd Ali * Anwr Ali uhil Khn
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. Find a basis for the row space of each of the following matrices. Your basis should consist of rows of the original matrix.
Mh 7 Exm - Prcice Prolem Solions. Find sis for he row spce of ech of he following mrices. Yor sis shold consis of rows of he originl mrix. 4 () 7 7 8 () Since we wn sis for he row spce consising of rows
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 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 informationPredator - Prey Model Trajectories and the nonlinear conservation law
Predaor - Prey Model Trajecories and he nonlinear conservaion law James K. Peerson Deparmen of Biological Sciences and Deparmen of Mahemaical Sciences Clemson Universiy Ocober 28, 213 Ouline Drawing Trajecories
More informationB Signals and Systems I Solutions to Midterm Test 2. xt ()
34-33B Signals and Sysems I Soluions o Miderm es 34-33B Signals and Sysems I Soluions o Miderm es ednesday Marh 7, 7:PM-9:PM Examiner: Prof. Benoi Boule Deparmen of Elerial and Compuer Engineering MGill
More informationFall 2014 David Wagner 10/31 Notes. The min-cut problem. Examples
CS 7 Algorihm Fll 24 Dvid Wgner /3 Noe The min-u problem Le G = (V,E) be direed grph, wih oure verex V nd ink verex V. Aume h edge re lbelled wih o, whih n be modelled o funion : E N h oie non-negive inegrl
More informationMOMENTUM CONSERVATION LAW
1 AAST/AEDT AP PHYSICS B: Impulse and Momenum Le us run an experimen: The ball is moving wih a velociy of V o and a force of F is applied on i for he ime inerval of. As he resul he ball s velociy changes
More information6.01: Introduction to EECS I Lecture 8 March 29, 2011
6.01: Inroducion o EES I Lecure 8 March 29, 2011 6.01: Inroducion o EES I Op-Amps Las Time: The ircui Absracion ircuis represen sysems as connecions of elemens hrough which currens (hrough variables) flow
More informationV The Fourier Transform
V he Fourier ransform Lecure noes by Assaf al 1. Moivaion Imagine playing hree noes on he piano, recording hem (soring hem as a.wav or.mp3 file), and hen ploing he resuling waveform on he compuer: 100Hz
More informationRandom Walk with Anti-Correlated Steps
Random Walk wih Ani-Correlaed Seps John Noga Dirk Wagner 2 Absrac We conjecure he expeced value of random walks wih ani-correlaed seps o be exacly. We suppor his conjecure wih 2 plausibiliy argumens and
More informationA1.1.1 Model for the vertical stress comparison between the FLAC ubiquitous joints model and the theoretical development in Jaeger and Cook (1979)
Universiy of Preori ed Krprov, K (007) Appendix 1. FLAC models nd derivions APPEDIX 1. FLAC MODELS AD DEIATIOS A1.1 Applied models for FLAC ode A1.1.1 Model for he veril sress omprison beween he FLAC ubiquious
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 informationRetrieval Models. Boolean and Vector Space Retrieval Models. Common Preprocessing Steps. Boolean Model. Boolean Retrieval Model
1 Boolean and Vecor Space Rerieval Models Many slides in his secion are adaped from Prof. Joydeep Ghosh (UT ECE) who in urn adaped hem from Prof. Dik Lee (Univ. of Science and Tech, Hong Kong) Rerieval
More informationAn Efficient Digital Circuit for Implementing Sequence Alignment Algorithm
An Efficien Digil Circui for Implemening Sequence Alignmen Algorihm Vmsi Kundei Yunsi Fei (vmsik@engr.uconn.edu) (yfei@engr.uconn.edu) CSE Deprmen ECE Deprmen Universiy of Connecicu Universiy of Connecicu
More information3D Transformations. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd 1/26/07 1
D Trnsformions Compuer Grphics COMP 770 (6) Spring 007 Insrucor: Brndon Lloyd /6/07 Geomery Geomeric eniies, such s poins in spce, exis wihou numers. Coordines re nming scheme. The sme poin cn e descried
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 informationA Closed Model of the Universe
Inernionl Journl of Asronomy nd Asrophysis 03 3 89-98 hp://dxdoiorg/036/ij0330 Published Online June 03 (hp://wwwsirporg/journl/ij) A Closed Model of he Universe Fdel A Bukhri Deprn of Asronomy Fuly of
More informationThe Procedure Abstraction Part II: Symbol Tables and Activation Records
Th Produr Absrion Pr II: Symbol Tbls nd Aivion Rords Th Produr s Nm Sp Why inrodu lxil soping? Provids ompil-im mhnism for binding vribls Ls h progrmmr inrodu lol nms How n h ompilr kp rk of ll hos nms?
More informationMath 333 Problem Set #2 Solution 14 February 2003
Mah 333 Problem Se #2 Soluion 14 February 2003 A1. Solve he iniial value problem dy dx = x2 + e 3x ; 2y 4 y(0) = 1. Soluion: This is separable; we wrie 2y 4 dy = x 2 + e x dx and inegrae o ge The iniial
More informationChapter 2. First Order Scalar Equations
Chaper. Firs Order Scalar Equaions We sar our sudy of differenial equaions in he same way he pioneers in his field did. We show paricular echniques o solve paricular ypes of firs order differenial equaions.
More informationMore Digital Logic. t p output. Low-to-high and high-to-low transitions could have different t p. V in (t)
EECS 4 Spring 23 Lecure 2 EECS 4 Spring 23 Lecure 2 More igial Logic Gae delay and signal propagaion Clocked circui elemens (flip-flop) Wriing a word o memory Simplifying digial circuis: Karnaugh maps
More informationNotes 04 largely plagiarized by %khc
Noes 04 largely plagiarized by %khc Convoluion Recap Some ricks: x() () =x() x() (, 0 )=x(, 0 ) R ț x() u() = x( )d x() () =ẋ() This hen ells us ha an inegraor has impulse response h() =u(), and ha a differeniaor
More informationSection 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients
Secion 3.5 Nonhomogeneous Equaions; Mehod of Undeermined Coefficiens Key Terms/Ideas: Linear Differenial operaor Nonlinear operaor Second order homogeneous DE Second order nonhomogeneous DE Soluion o homogeneous
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 informationTutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4.
Mth 5 Tutoril Week 1 - Jnury 1 1 Nme Setion Tutoril Worksheet 1. Find ll solutions to the liner system by following the given steps x + y + z = x + y + z = 4. y + z = Step 1. Write down the rgumented mtrix
More informationSEMANTIC ANALYSIS PRINCIPLES OF PROGRAMMING LANGUAGES. Norbert Zeh Winter Dalhousie University 1/28
SEMNTI NLYSIS PRINIPLES OF PROGRMMING LNGUGES Norbert Zeh Winter 2018 Dlhousie University 1/28 PROGRM TRNSLTION FLOW HRT Soure progrm (hrter strem) Snner (lexil nlysis) Front end Prse tree Prser (syntti
More information!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
36 3 1!!!!!!"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" 1 1 3 3 1. 401331. 610000 3. 610000!!!!!!", ( ),,,,,,, ; ; ; ; ; TE973.6 A 100106 (010) 0300104 0 D /m; β
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 informationPET467E-Analysis of Well Pressure Tests/2008 Spring Semester/İTÜ Midterm Examination (Duration 3:00 hours) Solutions
M. Onur 03.04.008 PET467E-Analysis of Well Pressure Tess/008 Spring Semeser/İTÜ Miderm Examinaion (Duraion 3:00 hours) Soluions Name of he Suden: Insrucions: Before saring he exam, wrie your name clearly
More information01 = Transformations II. We ve got Affine Transformations. Elementary Transformations. Compound Transformations. Reflection about y-axis
Leure Se 5 Trnsformions II CS56Comuer Grhis Rih Riesenfel 7 Ferur We ve go Affine Trnsformions Liner Trnslion CS56 Comoun Trnsformions Buil u omoun rnsformions onening elemenr ones Use for omlie moion
More informationInstructions. An 8.5 x 11 Cheat Sheet may also be used as an aid for this test. MUST be original handwriting.
ID: B CSE 2021 Computer Orgniztion Midterm Test (Fll 2009) Instrutions This is losed ook, 80 minutes exm. The MIPS referene sheet my e used s n id for this test. An 8.5 x 11 Chet Sheet my lso e used s
More informationELEG 205 Fall Lecture #13. Mark Mirotznik, Ph.D. Professor The University of Delaware Tel: (302)
ELEG 205 Fall 2017 Leure #13 Mark Miroznik, Ph.D. Professor The Universiy of Delaware Tel: (302831-4221 Email: mirozni@ee.udel.edu Chaper 8: RL and RC Ciruis 1. Soure-free RL iruis (naural response 2.
More informationHOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures.
HOMEWORK # 2: MATH 2, SPRING 25 TJ HITCHMAN Noe: This is he las soluion se where I will describe he MATLAB I used o make my picures.. Exercises from he ex.. Chaper 2.. Problem 6. We are o show ha y() =
More informationIX.1.1 The Laplace Transform Definition 700. IX.1.2 Properties 701. IX.1.3 Examples 702. IX.1.4 Solution of IVP for ODEs 704
Chper IX The Inegrl Trnform Mehod IX. The plce Trnform November 4, 7 699 IX. THE APACE TRANSFORM IX.. The plce Trnform Definiion 7 IX.. Properie 7 IX..3 Emple 7 IX..4 Soluion of IVP for ODE 74 IX..5 Soluion
More information10.37 Chemical and Biological Reaction Engineering, Spring 2007 Prof. K. Dane Wittrup Lecture 10: Non ideal Reactor Mixing Patterns
1.37 Chemical and Biological Reacion ngineering, Spring 27 Prof. K. Dane Wirup Lecure 1: Non ideal Reacor Mixing Paerns This lecure covers residence ime disribuion (RTD), he anks in series model, and combinaions
More informationMath 10B: Mock Mid II. April 13, 2016
Name: Soluions Mah 10B: Mock Mid II April 13, 016 1. ( poins) Sae, wih jusificaion, wheher he following saemens are rue or false. (a) If a 3 3 marix A saisfies A 3 A = 0, hen i canno be inverible. True.
More informationWeek 8 Lecture 3: Problems 49, 50 Fourier analysis Courseware pp (don t look at French very confusing look in the Courseware instead)
Week 8 Lecure 3: Problems 49, 5 Fourier lysis Coursewre pp 6-7 (do look Frech very cofusig look i he Coursewre ised) Fourier lysis ivolves ddig wves d heir hrmoics, so i would hve urlly followed fer he
More informationLongest Common Prefixes
Longes Common Prefixes The sandard ordering for srings is he lexicographical order. I is induced by an order over he alphabe. We will use he same symbols (,
More informationDESY MVP G.Petrosyan DSP PROGRAM AND DSP SERVER
DESY MP G.Perosn DSP PROGRAM AND DSP SERER DSP SYSTEM On figure nd 2 re presened loc digrms of DSP sed LLRF conrol ssem for GUN nd ACC. Mesured signls digiized in ADC cm ino he DSP. The lgorihm relized
More informationIX.1.1 The Laplace Transform Definition 700. IX.1.2 Properties 701. IX.1.3 Examples 702. IX.1.4 Solution of IVP for ODEs 704
Chper IX The Inegrl Trnform Mehod IX. The plce Trnform November 6, 8 699 IX. THE APACE TRANSFORM IX.. The plce Trnform Definiion 7 IX.. Properie 7 IX..3 Emple 7 IX..4 Soluion of IVP for ODE 74 IX..5 Soluion
More informationBiol. 356 Lab 8. Mortality, Recruitment, and Migration Rates
Biol. 356 Lab 8. Moraliy, Recruimen, and Migraion Raes (modified from Cox, 00, General Ecology Lab Manual, McGraw Hill) Las week we esimaed populaion size hrough several mehods. One assumpion of all hese
More informationES 250 Practice Final Exam
ES 50 Pracice Final Exam. Given ha v 8 V, a Deermine he values of v o : 0 Ω, v o. V 0 Firs, v o 8. V 0 + 0 Nex, 8 40 40 0 40 0 400 400 ib i 0 40 + 40 + 40 40 40 + + ( ) 480 + 5 + 40 + 8 400 400( 0) 000
More informationIntroduction to AC Power, RMS RMS. ECE 2210 AC Power p1. Use RMS in power calculations. AC Power P =? DC Power P =. V I = R =. I 2 R. V p.
ECE MS I DC Power P I = Inroducion o AC Power, MS I AC Power P =? A Solp //9, // // correced p4 '4 v( ) = p cos( ω ) v( ) p( ) Couldn' we define an "effecive" volage ha would allow us o use he same relaionships
More informationChapter Introduction. 2. Linear Combinations [4.1]
Chper 4 Inrouion Thi hper i ou generlizing he onep you lerne in hper o pe oher n hn R Mny opi in hi hper re heoreil n MATLAB will no e le o help you ou You will ee where MATLAB i ueful in hper 4 n how
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 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 informationLi An-Ping. Beijing , P.R.China
A NEW TYPE OF CIPHER: DICING_CSB Li An-Ping Beijing 100085, P.R.China apli0001@sina.com Absrac: In his paper, we will propose a new ype of cipher named DICING_CSB, which come from our previous a synchronous
More informationTraversal of a subtree is slow, which affects prefix and range queries.
Compac Tries Tries suffer from a large number nodes, Ω( R ) in he wors case. The space requiremen is large, since each node needs much more space han a single symbol. Traversal of a subree is slow, which
More informationThree Dimensional Coordinate Geometry
HKCWCC dvned evel Pure Mhs. / -D Co-Geomer Three Dimensionl Coordine Geomer. Coordine of Poin in Spe Z XOX, YOY nd ZOZ re he oordine-es. P,, is poin on he oordine plne nd is lled ordered riple. P,, X Y
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 informationCBSE 2014 ANNUAL EXAMINATION ALL INDIA
CBSE ANNUAL EXAMINATION ALL INDIA SET Wih Complee Eplnions M Mrks : SECTION A Q If R = {(, y) : + y = 8} is relion on N, wrie he rnge of R Sol Since + y = 8 h implies, y = (8 ) R = {(, ), (, ), (6, )}
More informationMAT 266 Calculus for Engineers II Notes on Chapter 6 Professor: John Quigg Semester: spring 2017
MAT 66 Clculus for Engineers II Noes on Chper 6 Professor: John Quigg Semeser: spring 7 Secion 6.: Inegrion by prs The Produc Rule is d d f()g() = f()g () + f ()g() Tking indefinie inegrls gives [f()g
More informationChapter Floating Point Representation
Chaper 01.05 Floaing Poin Represenaion Afer reading his chaper, you should be able o: 1. conver a base- number o a binary floaing poin represenaion,. conver a binary floaing poin number o is equivalen
More informationLinear Quadratic Regulator (LQR) - State Feedback Design
Linear Quadrai Regulaor (LQR) - Sae Feedbak Design A sysem is expressed in sae variable form as x = Ax + Bu n m wih x( ) R, u( ) R and he iniial ondiion x() = x A he sabilizaion problem using sae variable
More informationEECE 301 Signals & Systems Prof. Mark Fowler
EECE 3 Signals & Sysems Prof. Mark Fowler Noe Se #2 Wha are Coninuous-Time Signals??? Reading Assignmen: Secion. of Kamen and Heck /22 Course Flow Diagram The arrows here show concepual flow beween ideas.
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 informationUniversity of Texas MD Anderson Cancer Center Department of Biostatistics. Inequality Calculator, Version 3.0 November 25, 2013 User s Guide
University of Texs MD Anderson Cncer Center Deprtment of Biosttistics Inequlity Clcultor, Version 3.0 November 5, 013 User s Guide 0. Overview The purpose of the softwre is to clculte the probbility tht
More informationIndexing degenarate strings
Czeh Tehnil Universiy in Prgue Fuly of Eleril Engineering ČVUT FEL kedr počíčů Mser hesis Indexing degenre srings Tomáš Flouri Thesis Supervisor: Ing. Mihl Voráček Sudy progrm: Eleril Engineering nd Informion
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 informationChapter 1 Cumulative Review
1 Chpter 1 Cumultive Review (Chpter 1) 1. Simplify 7 1 1. Evlute (0.7). 1. (Prerequisite Skill) (Prerequisite Skill). For Questions nd 4, find the vlue of ech expression.. 4 6 1 4. 19 [(6 4) 7 ] (Lesson
More informationT-Match: Matching Techniques For Driving Yagi-Uda Antennas: T-Match. 2a s. Z in. (Sections 9.5 & 9.7 of Balanis)
3/0/018 _mch.doc Pge 1 of 6 T-Mch: Mching Techniques For Driving Ygi-Ud Anenns: T-Mch (Secions 9.5 & 9.7 of Blnis) l s l / l / in The T-Mch is shun-mching echnique h cn be used o feed he driven elemen
More informationDipartimento di Elettronica Informazione e Bioingegneria Robotics
Diprimeno di Eleronic Inormzione e Bioingegneri Roboics From moion plnning o rjecories @ 015 robo clssiicions Robos cn be described by Applicion(seelesson1) Geomery (see lesson mechnics) Precision (see
More informationPhysics 221 Fall 2008 Homework #2 Solutions Ch. 2 Due Tues, Sept 9, 2008
Physics 221 Fall 28 Homework #2 Soluions Ch. 2 Due Tues, Sep 9, 28 2.1 A paricle moving along he x-axis moves direcly from posiion x =. m a ime =. s o posiion x = 1. m by ime = 1. s, and hen moves direcly
More informationSolutions for Assignment 2
Faculy of rs and Science Universiy of Torono CSC 358 - Inroducion o Compuer Neworks, Winer 218 Soluions for ssignmen 2 Quesion 1 (2 Poins): Go-ack n RQ In his quesion, we review how Go-ack n RQ can be
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 informationChristos Papadimitriou & Luca Trevisan November 22, 2016
U.C. Bereley CS170: Algorihms Handou LN-11-22 Chrisos Papadimiriou & Luca Trevisan November 22, 2016 Sreaming algorihms In his lecure and he nex one we sudy memory-efficien algorihms ha process a sream
More informationDesigning Information Devices and Systems I Spring 2019 Lecture Notes Note 17
EES 16A Designing Informaion Devices and Sysems I Spring 019 Lecure Noes Noe 17 17.1 apaciive ouchscreen In he las noe, we saw ha a capacior consiss of wo pieces on conducive maerial separaed by a nonconducive
More information