Merging to ordered sequences. Efficient (Parallel) Sorting. Merging (cont.)
|
|
- Madeline Blake
- 5 years ago
- Views:
Transcription
1 Efficient (Paae) Soting One of the most fequent opeations pefomed by computes is oganising (soting) data The access to soted data is moe convenient/faste Thee is a constant need fo good soting agoithms incuding sequentia, paae and distibuted soutions Thee is a pethoa of soting agoithms. We aeady know that one can use heaps fo soting. Hee we focus on two soting pocedues incuding quick-sot and mege-sot Meging to odeed sequences The key to mege-sot is meging pocedue mege, s.t., having two input sequences A= <a 1 a 2 a m > and B= <b 1 b 2 b n > it poduces combined C= <c 1 c 2 c m+n > Exampe: A = < 3, 8, 9 > B = < 1, 5, 7 > mege(a, B) = < 1, 3, 5, 7, 8, 9 > 27/04/2015 Appied Agoithmics - week10 1 pick the minimum A: B: X: Y: and save it hee pointes
2 X: Y: X: Y: X: Y: X: 54 Y:
3 X: Y: 75 X: 54 Y: Singe un of mege pocedue poduces combined soted sequence. Thus the time compexity is inea O(m+n). Divide-and-Conque Method A vey natua ecusive appoach Divide if the input size is sma then sove the pobem diecty; othewise divide the input data into two o moe disjoint subsets Recu ecusivey sove the sub-pobems associated with the subsets Conque take the soutions to the sub-pobems and mege them into a soution to the oigina pobem Mege-Soting Divide: if input sequence S has 0 o 1 eement then etun S; othewise spit S into two sequences S 1 and S 2, each containing about ½ eements of S Recu: ecusivey sot sequences S 1 and S 2 Conque: Put the eements back into S by meging the soted sequences S 1 and S 2 into a singe soted sequence week 10 Compexity of Agoithms 11 week 10 Compexity of Agoithms 12
4 Mege-Soting (top down appoach) Mege-Soting (exampe) Divide the input sequence eveny to S 1 & S 2 Recu S 1 S 2 Conque by meging soted sequences week 10 Compexity of Agoithms 13 week 10 Compexity of Agoithms 14 Mege-Soting (anaysis) Mege-Soting (anaysis) Reca that meging two soted sequences S 1 and S 2 takes O(n 1 +n 2 ) time, whee n 1 is the size of S 1 and n 2 is the size of S 2 The depth of the ecusion is O(og n) due to the having pocess Thus mege-sot uns in O(n og n) time in the wost (and aveage) case week 4 Compexity of Agoithms 15 week 4 Compexity of Agoithms 16
5 Quick-Sot Divide if S >1, seect a pivot vaue x in S and ceate thee sequences: L, E and G, s.t., L stoes eements in S < x E stoes eements in S = x G stoes eements in S > x Recu ecusivey sot sequences L & G Conque put soted eements fom L, E and finay fom G back to S. Quick-Sot Tee Divide the sequence S using andom pivot x Recu L (<x) H(>x) Conque by concatenating soted sequences week 4 Compexity of Agoithms 17 week 4 Compexity of Agoithms 18 Quick-Sot (exampe) Quick-Sot (wost case) Let s i be the sum of the input sizes of the nodes at depth i in a quick sot tee T s i n-i (and s i = n-i when use of pivots ead aways to ony one nonempty sequence: eithe L o G) The wost-case compexity is bounded by O(n 2 ). week 4 Compexity of Agoithms 19 week 4 Compexity of Agoithms 20
6 Quick-Sot (andomised agoithm) Quick-Sot (andomised agoithm) Thm: the expected unning time of andomised (pivot is chosen in andom) quick-sot is O(n og n) Poof: The expected numbe of times that a fai coin must be fipped unti it shows heads k times is 2k. Randomy chosen pivot is ight if neithe of the goups L no G is > ¾ S The pobabiity of a success in choosing a ight pivot is ½ A path in quick-sot tee can contain at most og 4/3 n nodes with ight pivots Hence, the expected ength of each path is 2og 4/3 n week 4 Compexity of Agoithms 21 week 4 Compexity of Agoithms 22 Lowe Bound (compaison-based mode) Lowe Bound (compaison-based mode) In compaison-based mode the input eements can be compaed ony with themseves and the esut of each compaison x i x j is aways yes o no Thm: the unning time of any compaison-based soting agoithm is Ω(n og n) in the wost case Poof: Soting of n eements can be identified with ecognising a paticua pemutation of n eements Thee is n!=n (n-1) 2 1 pemutations of n eements Each compaison spits a goup of pemutations into two goups (one that satisfies the inequaity and one that doesn t) In ode to ensue that the size of each goup of pemutations is bought down to one we need og 2 (n!) > og (n/2) n/2 =n/2 og n/2 = Ω(n og n) compaisons week 4 Compexity of Agoithms 23 week 4 Compexity of Agoithms 24
7 List anking and pefix sums In the ink anking pobem one is expected to compute fo each eement its distance to the font of the ist In the pefix sum pobem one is expected to compute fo each pefix of the ist the sum of the keys stoed in this pefix Computing pefix sums with a keys of vaue 1 is equivaent to the ink anking pobem. List anking and pefix sums /04/2015 Appied Agoithmics - week /04/2015 Appied Agoithmics - week10 26 A ead at distance 2 0 & add to thei own vaues A ead at distance 2 1 & add to thei own vaues /04/2015 Appied Agoithmics - week /04/2015 Appied Agoithmics - week10 28
8 A ead at distance 2 2 & add to thei own vaues A ead at distance 2 3 & add to thei own vaues /04/2015 Appied Agoithmics - week /04/2015 Appied Agoithmics - week10 30 List anking and pefix sums List anking and pefix sums List anking and pefix sums can be computed in O(og n) time when n is the size of the input Duing evey singe ound we incease knowedge about peceding bock of 2 i positions in O(1) time. Afte O(og n) ounds od doubing the job is done We need aso anothe too that wi aow us to coect and distibute infomation to a pocessos aso in O(og n) time 27/04/2015 Appied Agoithmics - week /04/2015 Appied Agoithmics - week10 32
9 Infomation dissemination P 0 infoms neighbou at distance 2 0 m Infomation dissemination P 0, P 1 infom neighbous at distance 2 1 m m m m m m m m /04/2015 Appied Agoithmics - week /04/2015 Appied Agoithmics - week10 34 Infomation dissemination Infomation dissemination P 0, P 1 P 2, P 3 infom neighbous at distance 2 2 m m m m P 0,, P 6, P 7 infom neighbous at distance 2 3 m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m m 27/04/2015 Appied Agoithmics - week /04/2015 Appied Agoithmics - week10 36
10 Infomation coection/dissemination The pocess of coection of infomation is done by evesing communication (diection of aows) used duing infomation dissemination Both pocesses take time O(og n). This means that pocessos can a agee on simpe decisions (via exchanging sma messages), e.g., is thee any wok eft to do? in time O(og n). 27/04/2015 Appied Agoithmics - week10 37 Paae Quick-Sot Sequence S[ ] is being soted S[ ] The oca size of the input n= -+1 Each P i (i=,..,) picks vaue S[i] with pob. 1/n S[ ] A unique pivot vaue p is communicated to a (if none o moe vaues ae picked the pocess is epeated) L[ ] < The vaues fom S[...] ae distibuted to L[ ] & H[ ] H[ ] < Using ist anking and pefix sums compute the anks of vaues in L and H L[ ] The numbe of vaues #L in L is communicated H[ ] The vaues ae copied back to S as foows Vaue with ank α in L is moved to S[+α-1] The pivot p is moved to S[+#L] Vaue with ank β in H is moved to S[+#L+β-1] S[ ] Sot ecusivey S[ +#L-1] & S[+#L+1 ] 27/04/2015 Appied Agoithmics - week10 38 Paae Quick-Sot Paae Mege-Sot The compexity anaysis of paae quick-sot Evey stage takes at most time O(og n) Expected numbe of stages is O(og n) The tota computation time is O(og 2 n) The numbe of pocessos needed is n The tota wok is O(nog 2 n) One can educe wok to optima using n/og n pocessos Assume two haves L & H of S[ ] ae aeady (ecusivey) soted The oca size of the input n= -+1 Using binay seach compute a ank of each L vaue in the othe haf H, and vice vesa Combine (add) the two anks (fom L and H) to find the new position in the soted sequence S[ ] S[ ] S[ ] L H 5 5 L H 10 L H 27/04/2015 Appied Agoithmics - week /04/2015 Appied Agoithmics - week10 40
11 Paae Mege-Sot The compexity anaysis of paae mege-sot Each stage (binay seach) takes at most time O(og n) The numbe of ecusive stages is O(og n) The tota computation time is O(og 2 n) The numbe of pocessos needed is n The tota wok is O(nog 2 n) One can educe wok to optima using n/og n pocessos 27/04/2015 Appied Agoithmics - week10 41
Homework 1 Solutions CSE 101 Summer 2017
Homewok 1 Soutions CSE 101 Summe 2017 1 Waming Up 1.1 Pobem and Pobem Instance Find the smaest numbe in an aay of n integes a 1, a 2,..., a n. What is the input? What is the output? Is this a pobem o a
More informationSeidel s Trapezoidal Partitioning Algorithm
CS68: Geometic Agoithms Handout #6 Design and Anaysis Oigina Handout #6 Stanfod Univesity Tuesday, 5 Febuay 99 Oigina Lectue #7: 30 Januay 99 Topics: Seide s Tapezoida Patitioning Agoithm Scibe: Michae
More informationA Bijective Approach to the Permutational Power of a Priority Queue
A Bijective Appoach to the Pemutational Powe of a Pioity Queue Ia M. Gessel Kuang-Yeh Wang Depatment of Mathematics Bandeis Univesity Waltham, MA 02254-9110 Abstact A pioity queue tansfoms an input pemutation
More information= ρ. Since this equation is applied to an arbitrary point in space, we can use it to determine the charge density once we know the field.
Gauss s Law In diffeentia fom D = ρ. ince this equation is appied to an abita point in space, we can use it to detemine the chage densit once we know the fied. (We can use this equation to ve fo the fied
More informationCapacity of Data Collection in Arbitrary Wireless Sensor Networks
This fu text pape was pee eviewed at the diection of IEEE Communications Society subject matte expets fo pubication in the IEEE INFOCOM 2010 poceedings This pape was pesented as pat of the Mini-Confeence
More informationConducting fuzzy division by using linear programming
WSES TRNSCTIONS on INFORMTION SCIENCE & PPLICTIONS Muat pe Basaan, Cagdas Hakan adag, Cem Kadia Conducting fuzzy division by using inea pogamming MURT LPER BSRN Depatment of Mathematics Nigde Univesity
More informationOther quantum algorithms
Chapte 3 Othe uatum agoithms 3. Quick emide of Gove s agoithm We peset hee a uick emide of Gove s agoithm. Iput: a fuctio f : {0,}! {0,}. Goa: fid x such that f (x) =. Seach pobem We have a uatum access
More informationA Sardinas-Patterson Characterization Theorem for SE-codes
A Sadinas-Patteson Chaacteization Theoem fo SE-codes Ionuţ Popa,Bogdan Paşaniuc Facuty of Compute Science, A.I.Cuza Univesity of Iaşi, 6600 Iaşi, Romania May 0, 2004 Abstact The aim of this pape is to
More informationSplay Trees Handout. Last time we discussed amortized analysis of data structures
Spla Tees Handout Amotied Analsis Last time we discussed amotied analsis of data stuctues A wa of epessing that even though the wost-case pefomance of an opeation can be bad, the total pefomance of a sequence
More informationDiscretizing the 3-D Schrödinger equation for a Central Potential
Discetizing the 3-D Schödinge equation fo a Centa Potentia By now, you ae faiia with the Discete Schodinge Equation fo one Catesian diension. We wi now conside odifying it to hande poa diensions fo a centa
More informationStanford University CS259Q: Quantum Computing Handout 8 Luca Trevisan October 18, 2012
Stanfod Univesity CS59Q: Quantum Computing Handout 8 Luca Tevisan Octobe 8, 0 Lectue 8 In which we use the quantum Fouie tansfom to solve the peiod-finding poblem. The Peiod Finding Poblem Let f : {0,...,
More informationProblem set 6. Solution. The problem of firm 3 is. The FOC is: 2 =0. The reaction function of firm 3 is: = 2
Pobem set 6 ) Thee oigopoists opeate in a maket with invese demand function given by = whee = + + and is the quantity poduced by fim i. Each fim has constant magina cost of poduction, c, and no fixed cost.
More informationThe Substring Search Problem
The Substing Seach Poblem One algoithm which is used in a vaiety of applications is the family of substing seach algoithms. These algoithms allow a use to detemine if, given two chaacte stings, one is
More informationJackson 4.7 Homework Problem Solution Dr. Christopher S. Baird University of Massachusetts Lowell
Jackson 4.7 Homewok obem Soution D. Chistophe S. Baid Univesity of Massachusetts Lowe ROBLEM: A ocaized distibution of chage has a chage density ρ()= 6 e sin θ (a) Make a mutipoe expansion of the potentia
More informationPHYS 705: Classical Mechanics. Central Force Problems I
1 PHYS 705: Cassica Mechanics Centa Foce Pobems I Two-Body Centa Foce Pobem Histoica Backgound: Kepe s Laws on ceestia bodies (~1605) - Based his 3 aws on obsevationa data fom Tycho Bahe - Fomuate his
More informationJackson 3.3 Homework Problem Solution Dr. Christopher S. Baird University of Massachusetts Lowell
Jackson 3.3 Homewok Pobem Soution D. Chistophe S. Baid Univesity of Massachusetts Lowe POBLEM: A thin, fat, conducting, cicua disc of adius is ocated in the x-y pane with its cente at the oigin, and is
More informationData Structures and Algorithm Analysis (CSC317) Randomized algorithms (part 2)
Data Stuctues and Algoithm Analysis (CSC317) Randomized algoithms (at 2) Hiing oblem - eview c Cost to inteview (low i ) Cost to fie/hie (exensive ) n Total numbe candidates m Total numbe hied c h O(c
More informationPushdown Automata (PDAs)
CHAPTER 2 Context-Fee Languages Contents Context-Fee Gammas definitions, examples, designing, ambiguity, Chomsky nomal fom Pushdown Automata definitions, examples, euivalence with context-fee gammas Non-Context-Fee
More informationMutual Inductance. If current i 1 is time varying, then the Φ B2 flux is varying and this induces an emf ε 2 in coil 2, the emf is
Mutua Inductance If we have a constant cuent i in coi, a constant magnetic fied is ceated and this poduces a constant magnetic fux in coi. Since the Φ B is constant, thee O induced cuent in coi. If cuent
More informationHardness of Approximating the Minimum Distance of a Linear Code
Hadness of Appoximating the Minimum Distance of a Linea Code Iya Dume Daniee Micciancio Madhu Sudan Abstact We show that the minimum distance d of a inea code is not appoximabe to within any constant facto
More informationCourse Updates. Reminders: 1) Assignment #10 due next Wednesday. 2) Midterm #2 take-home Friday. 3) Quiz # 5 next week. 4) Inductance, Inductors, RLC
Couse Updates http://www.phys.hawaii.edu/~vane/phys7-sp10/physics7.htm Remindes: 1) Assignment #10 due next Wednesday ) Midtem # take-home Fiday 3) Quiz # 5 next week 4) Inductance, Inductos, RLC Mutua
More informationOnline-routing on the butterfly network: probabilistic analysis
Online-outing on the buttefly netwok: obabilistic analysis Andey Gubichev 19.09.008 Contents 1 Intoduction: definitions 1 Aveage case behavio of the geedy algoithm 3.1 Bounds on congestion................................
More informationA Simultaneous Routing Tree Construction and Fanout Optimization Algorithm *
A Simutaneous Routing Tee Constuction and Fanout Optimization Agoithm * Ami H. Saek, Jinan Lou, Massoud Pedam Depatment of Eectica Engineeing - Systems Univesity of Southen Caifonia Los Angees, CA 90089
More informationWeb-based Supplementary Materials for. Controlling False Discoveries in Multidimensional Directional Decisions, with
Web-based Supplementay Mateials fo Contolling False Discoveies in Multidimensional Diectional Decisions, with Applications to Gene Expession Data on Odeed Categoies Wenge Guo Biostatistics Banch, National
More informationProbability Estimation with Maximum Entropy Principle
Pape 0,CCG Annua Repot, 00 ( c 00) Pobabiity Estimation with Maximum Entopy Pincipe Yupeng Li and Cayton V. Deutsch The pincipe of Maximum Entopy is a powefu and vesatie too fo infeing a pobabiity distibution
More informationObjectives. We will also get to know about the wavefunction and its use in developing the concept of the structure of atoms.
Modue "Atomic physics and atomic stuctue" Lectue 7 Quantum Mechanica teatment of One-eecton atoms Page 1 Objectives In this ectue, we wi appy the Schodinge Equation to the simpe system Hydogen and compae
More informationLecture 18: Graph Isomorphisms
INFR11102: Computational Complexity 22/11/2018 Lectue: Heng Guo Lectue 18: Gaph Isomophisms 1 An Athu-Melin potocol fo GNI Last time we gave a simple inteactive potocol fo GNI with pivate coins. We will
More informationMath 301: The Erdős-Stone-Simonovitz Theorem and Extremal Numbers for Bipartite Graphs
Math 30: The Edős-Stone-Simonovitz Theoem and Extemal Numbes fo Bipatite Gaphs May Radcliffe The Edős-Stone-Simonovitz Theoem Recall, in class we poved Tuán s Gaph Theoem, namely Theoem Tuán s Theoem Let
More informationThe Chromatic Villainy of Complete Multipartite Graphs
Rocheste Institute of Technology RIT Schola Wos Theses Thesis/Dissetation Collections 8--08 The Chomatic Villainy of Complete Multipatite Gaphs Anna Raleigh an9@it.edu Follow this and additional wos at:
More informationComputing selected eigenvalues of sparse unsymmetric matrices using subspace iteration
RAL-91-056 Computing seected eigenvaues of spase unsymmetic matices using subspace iteation by I. S. Duff and J. A. Scott ABSRAC his pape discusses the design and deveopment of a code to cacuate the eigenvaues
More information6 PROBABILITY GENERATING FUNCTIONS
6 PROBABILITY GENERATING FUNCTIONS Cetain deivations pesented in this couse have been somewhat heavy on algeba. Fo example, detemining the expectation of the Binomial distibution (page 5.1 tuned out to
More informationThe Solutions of the Classical Relativistic Two-Body Equation
T. J. of Physics (998), 07 4. c TÜBİTAK The Soutions of the Cassica Reativistic Two-Body Equation Coşkun ÖNEM Eciyes Univesity, Physics Depatment, 38039, Kaysei - TURKEY Received 3.08.996 Abstact With
More informationCSCE 478/878 Lecture 4: Experimental Design and Analysis. Stephen Scott. 3 Building a tree on the training set Introduction. Outline.
In Homewok, you ae (supposedly) Choosing a data set 2 Extacting a test set of size > 3 3 Building a tee on the taining set 4 Testing on the test set 5 Repoting the accuacy (Adapted fom Ethem Alpaydin and
More informationQuantum Lyapunov Control Based on the Average Value of an Imaginary Mechanical Quantity
Quantum Lyapunov Conto Based on the Aveage Vaue o an Imaginay Mechanica Quantity Shuang Cong, Fangang Meng, and Sen Kuang Abstact The convegence o cosed quantum systems in the degeneate cases to the desied
More informationITI Introduction to Computing II
ITI 1121. Intoduction to Computing II Macel Tucotte School of Electical Engineeing and Compute Science Abstact data type: Stack Stack-based algoithms Vesion of Febuay 2, 2013 Abstact These lectue notes
More informationSurveillance Points in High Dimensional Spaces
Société de Calcul Mathématique SA Tools fo decision help since 995 Suveillance Points in High Dimensional Spaces by Benad Beauzamy Januay 06 Abstact Let us conside any compute softwae, elying upon a lage
More information763620SS STATISTICAL PHYSICS Solutions 2 Autumn 2012
763620SS STATISTICAL PHYSICS Solutions 2 Autumn 2012 1. Continuous Random Walk Conside a continuous one-dimensional andom walk. Let w(s i ds i be the pobability that the length of the i th displacement
More informationSupplementary information Efficient Enumeration of Monocyclic Chemical Graphs with Given Path Frequencies
Supplementay infomation Efficient Enumeation of Monocyclic Chemical Gaphs with Given Path Fequencies Masaki Suzuki, Hioshi Nagamochi Gaduate School of Infomatics, Kyoto Univesity {m suzuki,nag}@amp.i.kyoto-u.ac.jp
More informationNew problems in universal algebraic geometry illustrated by boolean equations
New poblems in univesal algebaic geomety illustated by boolean equations axiv:1611.00152v2 [math.ra] 25 Nov 2016 Atem N. Shevlyakov Novembe 28, 2016 Abstact We discuss new poblems in univesal algebaic
More information"Sim(32,16)-order2" "Sim(32,16)-order1" "Sim(32,16)-order0" "UB(32,16)-MLD" "UB(32,16)-order1" "UB(32,16)-order0" log10(pb)
pesented at IEICE IT technica goup meeting, Tokushima, Japan, May 999. Soft decision decoding of inea bock codes based on odeed statistics in mutieve signaing Motohiko Isaka, Robet H. Moeos-Zaagoza 2,
More informationNOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or
NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyight law of the United States (title 17, U.S. Code) govens the making of photocopies o othe epoductions of copyighted mateial. Any copying of this
More informationOn intersecting a set of parallel line segments with a convex polygon of minimum area
On intesecting a set of aae ine segments with a convex oygon of minimum aea Asish Mukhoadhyay Schoo of Comute Science Univesity of Windso, Canada Eugene Geene Schoo of Comute Science Univesity of Windso,
More informationHOW TO TEACH THE FUNDAMENTALS OF INFORMATION SCIENCE, CODING, DECODING AND NUMBER SYSTEMS?
6th INTERNATIONAL MULTIDISCIPLINARY CONFERENCE HOW TO TEACH THE FUNDAMENTALS OF INFORMATION SCIENCE, CODING, DECODING AND NUMBER SYSTEMS? Cecília Sitkuné Göömbei College of Nyíegyháza Hungay Abstact: The
More information1) (A B) = A B ( ) 2) A B = A. i) A A = φ i j. ii) Additional Important Properties of Sets. De Morgan s Theorems :
Additional Impotant Popeties of Sets De Mogan s Theoems : A A S S Φ, Φ S _ ( A ) A ) (A B) A B ( ) 2) A B A B Cadinality of A, A, is defined as the numbe of elements in the set A. {a,b,c} 3, { }, while
More informationStraight-line Drawings of Outerplanar Graphs in O(dn log n) Area
CCCG 2007, Ottaa, Ontaio, August 20 22, 2007 Staight-ine Daings of Outepana Gaphs in O(dn og n) Aea Fabizio Fati Abstact We sho an agoithm fo constucting O(dn og n) aea outepana staight-ine daings of n-etex
More informationSection 26 The Laws of Rotational Motion
Physics 24A Class Notes Section 26 The Laws of otational Motion What do objects do and why do they do it? They otate and we have established the quantities needed to descibe this motion. We now need to
More informationGeneralized net model of the process of ordering of university subjects
eventh Int. okshop on Gs, ofia, 4- Juy 006, -9 Geneaized net mode of the pocess of odeing of univesity subjects A. hannon, E. otiova, K. Atanassov 3, M. Kawczak 4, P. Meo-Pinto,. otiov, T. Kim 6 KvB Institute
More informationQuantum Fourier Transform
Chapte 5 Quantum Fouie Tansfom Many poblems in physics and mathematics ae solved by tansfoming a poblem into some othe poblem with a known solution. Some notable examples ae Laplace tansfom, Legende tansfom,
More information6 Matrix Concentration Bounds
6 Matix Concentation Bounds Concentation bounds ae inequalities that bound pobabilities of deviations by a andom vaiable fom some value, often its mean. Infomally, they show the pobability that a andom
More informationgr0 GRAPHS Hanan Samet
g0 GRPHS Hanan Samet ompute Science epatment and ente fo utomation Reseach and Institute fo dvanced ompute Studies Univesity of Mayland ollege Pak, Mayland 074 e-mail: hjs@umiacs.umd.edu opyight 1997 Hanan
More informationObjects usually are charged up through the transfer of electrons from one object to the other.
1 Pat 1: Electic Foce 1.1: Review of Vectos Review you vectos! You should know how to convet fom pola fom to component fom and vice vesa add and subtact vectos multiply vectos by scalas Find the esultant
More informationPhysics Dynamics: Springs
F A C U L T Y O F E D U C A T I O N Department of Curricuum and Pedagogy Physics Dynamics: Springs Science and Mathematics Education Research Group Supported by UBC Teaching and Learning Enhancement Fund
More informationMonte Carlo-based Bidirectional Pedestrian Counting Method for Compound-Eye Sensor Systems
Vo. 4.Specia Issue ICCSII ISSN 279-847 Jouna of Emeging Tends in Computing and Infomation Sciences 29-213 CIS Jouna. A ights eseved. http://www.cisjouna.og Monte Cao-based Bidiectiona Pedestian Counting
More informationA. Distribution of the test statistic
A. Distribution of the test statistic In the sequentia test, we first compute the test statistic from a mini-batch of size m. If a decision cannot be made with this statistic, we keep increasing the mini-batch
More informationASTR415: Problem Set #6
ASTR45: Poblem Set #6 Cuan D. Muhlbege Univesity of Mayland (Dated: May 7, 27) Using existing implementations of the leapfog and Runge-Kutta methods fo solving coupled odinay diffeential equations, seveal
More informationEconomics 703. Lecture Note 4: Refinement 1
Economics 703 Advanced Micoeconomics Pof. Pete Camton ectue Note 4: Refinement Outine A. Subgame Pefection Revisited B. Sequentia Equiibium. Sequentia Rationaity. Consistency 3. Stuctua Consistency C.
More informationFall 2014 Randomized Algorithms Oct 8, Lecture 3
Fall 204 Randomized Algoithms Oct 8, 204 Lectue 3 Pof. Fiedich Eisenband Scibes: Floian Tamè In this lectue we will be concened with linea pogamming, in paticula Clakson s Las Vegas algoithm []. The main
More information15.081J/6.251J Introduction to Mathematical Programming. Lecture 6: The Simplex Method II
15081J/6251J Intoduction to Mathematical Pogamming ectue 6: The Simplex Method II 1 Outline Revised Simplex method Slide 1 The full tableau implementation Anticycling 2 Revised Simplex Initial data: A,
More informationLecture 1. time, say t=0, to find the wavefunction at any subsequent time t. This can be carried out by
Lectue The Schödinge equation In quantum mechanics, the fundamenta quantity that descibes both the patice-ike and waveike chaacteistics of patices is wavefunction, Ψ(. The pobabiity of finding a patice
More informationAnalysis of Arithmetic. Analysis of Arithmetic. Analysis of Arithmetic Round-Off Errors. Analysis of Arithmetic. Analysis of Arithmetic
In the fixed-oint imlementation of a digital filte only the esult of the multilication oeation is quantied The eesentation of a actical multilie with the quantie at its outut is shown below u v Q ^v The
More informationComparator Networks for Binary Heap. Construction? Abstract. Comparator networks for constructing binary heaps of size n
Compaato Netwoks fo Binay Heap Constuction? Geth Stlting Bodal 1;?? and M. Cistina Pinotti 2;??? 1 Max-Planck-Institut fu Infomatik, Im Stadtwald, D-66123 Saabucken, Gemany 2 Istituto di Elaboazione della
More informationSolution to HW 3, Ma 1a Fall 2016
Solution to HW 3, Ma a Fall 206 Section 2. Execise 2: Let C be a subset of the eal numbes consisting of those eal numbes x having the popety that evey digit in the decimal expansion of x is, 3, 5, o 7.
More informationRelating Scattering Amplitudes to Bound States
Reating Scatteing Ampitudes to Bound States Michae Fowe UVa. 1/17/8 Low Enegy Appoximations fo the S Matix In this section we examine the popeties of the patia-wave scatteing matix ( ) = 1+ ( ) S k ikf
More informationGoodness-of-fit for composite hypotheses.
Section 11 Goodness-of-fit fo composite hypotheses. Example. Let us conside a Matlab example. Let us geneate 50 obsevations fom N(1, 2): X=nomnd(1,2,50,1); Then, unning a chi-squaed goodness-of-fit test
More informationTop K Nearest Keyword Search on Large Graphs
Top K Neaest Keywod Seach on Lage Gaphs Miao Qiao, Lu Qin, Hong Cheng, Jeffey Xu Yu, Wentao Tian The Chinese Univesity of Hong Kong, Hong Kong, China {mqiao,lqin,hcheng,yu,wttian}@se.cuhk.edu.hk ABSTRACT
More informationCOMP Parallel Computing SMM (3) OpenMP Case Study: The Barnes-Hut N-body Algorithm
COMP 633 - Paallel Computing Lectue 8 Septembe 14, 2017 SMM (3) OpenMP Case Study: The Banes-Hut N-body Algoithm Topics Case study: the Banes-Hut algoithm Study an impotant algoithm in scientific computing»
More informationTheorem on the differentiation of a composite function with a vector argument
Poceedings of the Estonian Academy of Sciences 59 3 95 doi:.376/poc..3. Avaiae onine at www.eap.ee/poceedings Theoem on the diffeentiation of a composite function with a vecto agument Vadim Kapain and
More informationSydU STAT3014 (2015) Second semester Dr. J. Chan 18
STAT3014/3914 Appied Stat.-Samping C-Stratified rand. sampe Stratified Random Samping.1 Introduction Description The popuation of size N is divided into mutuay excusive and exhaustive subpopuations caed
More informationFI 2201 Electromagnetism
F Eectomagnetism exane. skana, Ph.D. Physics of Magnetism an Photonics Reseach Goup Magnetostatics MGNET VETOR POTENTL, MULTPOLE EXPNSON Vecto Potentia Just as E pemitte us to intouce a scaa potentia V
More information(Sample 3) Exam 1 - Physics Patel SPRING 1998 FORM CODE - A (solution key at end of exam)
(Sample 3) Exam 1 - Physics 202 - Patel SPRING 1998 FORM CODE - A (solution key at end of exam) Be sue to fill in you student numbe and FORM lette (A, B, C) on you answe sheet. If you foget to include
More informationPhysics 111 Lecture 12. SJ 8th Ed.: Chap Static Equilibrium. Overview - Equilibrium Defined. Static Equilibrium Examples
Physics 111 ectue 1 Static Equilibium SJ 8th Ed.: Chap 1.1 1.3 Oveview - Equilibium Defined Conditions fo Equilibium Cente of Gavity Defined inding it When do mass cente and CG not coincide? Static Equilibium
More information10/04/18. P [P(x)] 1 negl(n).
Mastemath, Sping 208 Into to Lattice lgs & Cypto Lectue 0 0/04/8 Lectues: D. Dadush, L. Ducas Scibe: K. de Boe Intoduction In this lectue, we will teat two main pats. Duing the fist pat we continue the
More informationSequence Form and Evolutionary Dynamics: Realization Equivalence to Agent Form and Logit Dynamics
Poceedings of the Thitieth AAAI Confeence on Atificia Inteigence (AAAI-6 Seuence Fom and Evoutionay Dynamics: Reaization Euivaence to Agent Fom and Logit Dynamics Nicoa Gatti and Maceo Restei Dipatimento
More informationCentral Coverage Bayes Prediction Intervals for the Generalized Pareto Distribution
Statistics Reseach Lettes Vol. Iss., Novembe Cental Coveage Bayes Pediction Intevals fo the Genealized Paeto Distibution Gyan Pakash Depatment of Community Medicine S. N. Medical College, Aga, U. P., India
More informationB l 4 P A 1 DYNAMICS OF RECIPROCATING ENGINES
DYNMIS OF REIROTING ENGINES This chapte studies the dnaics of a side cank echaniss in an anatica wa. This is an eape fo the anatica appoach of soution instead of the gaphica acceeations and foce anases.
More information16 Modeling a Language by a Markov Process
K. Pommeening, Language Statistics 80 16 Modeling a Language by a Makov Pocess Fo deiving theoetical esults a common model of language is the intepetation of texts as esults of Makov pocesses. This model
More informationTopic 4a Introduction to Root Finding & Bracketing Methods
/8/18 Couse Instucto D. Raymond C. Rumpf Office: A 337 Phone: (915) 747 6958 E Mail: cumpf@utep.edu Topic 4a Intoduction to Root Finding & Backeting Methods EE 4386/531 Computational Methods in EE Outline
More informationMechanics Physics 151
Mechanics Physics 151 Lectue 6 Kepe Pobem (Chapte 3) What We Did Last Time Discussed enegy consevation Defined enegy function h Conseved if Conditions fo h = E Stated discussing Centa Foce Pobems Reduced
More informationHASHING METHODS. Hanan Samet
hs0 HASHING METHODS Hanan Samet Compute Science Depatment and Cente fo Automation Reseach and Institute fo Advanced Compute Studies Univesity of Mayland College Pak, Mayland 20742 e-mail: hjs@umiacs.umd.edu
More informationHowever, because the center-of-mass is at the co-ordinate origin, r1 and r2 are not independent, but are related by
PHYS60 Fa 08 Notes - 3 Centa foce motion The motion of two patices inteacting by a foce that has diection aong the ine joining the patices and stength that depends ony on the sepaation of the two patices
More informationMultifrontal sparse QR factorization on the GPU
Multifontal spase QR factoization on the GPU Tim Davis, Sanjay Ranka, Shaanyan Chetlu, Nui Yealan Univesity of Floida Feb 2012 GPU-based Multifontal QR factoization why spase QR? multifontal spase QR in
More informationExploration of the three-person duel
Exploation of the thee-peson duel Andy Paish 15 August 2006 1 The duel Pictue a duel: two shootes facing one anothe, taking tuns fiing at one anothe, each with a fixed pobability of hitting his opponent.
More informationOutline. Reinforcement Learning. What is RL? Reinforcement learning is learning what to do so as to maximize a numerical reward signal
Otine Reinfocement Leaning Jne, 005 CS 486/686 Univesity of Wateoo Rsse & Novig Sect.-. What is einfocement eaning Tempoa-Diffeence eaning Q-eaning Machine Leaning Spevised Leaning Teache tes eane what
More informationA STUDY OF HAMMING CODES AS ERROR CORRECTING CODES
AGU Intenational Jounal of Science and Technology A STUDY OF HAMMING CODES AS ERROR CORRECTING CODES Ritu Ahuja Depatment of Mathematics Khalsa College fo Women, Civil Lines, Ludhiana-141001, Punjab, (India)
More informationPhysics 2A Chapter 10 - Moment of Inertia Fall 2018
Physics Chapte 0 - oment of netia Fall 08 The moment of inetia of a otating object is a measue of its otational inetia in the same way that the mass of an object is a measue of its inetia fo linea motion.
More information1 Explicit Explore or Exploit (E 3 ) Algorithm
2.997 Decision-Making in Lage-Scale Systems Mach 3 MIT, Sping 2004 Handout #2 Lectue Note 9 Explicit Exploe o Exploit (E 3 ) Algoithm Last lectue, we studied the Q-leaning algoithm: [ ] Q t+ (x t, a t
More informationİstanbul Kültür University Faculty of Engineering. MCB1007 Introduction to Probability and Statistics. First Midterm. Fall
İstanbul Kültü Univesity Faculty of Engineeing MCB007 Intoduction to Pobability and Statistics Fist Midtem Fall 03-04 Solutions Diections You have 90 minutes to complete the exam. Please do not leave the
More informationCryptanalysis of PKP: A New Approach
Cryptanaysis of PKP: A New Approach Éiane Jaumes and Antoine Joux DCSSI 18, rue du Dr. Zamenhoff F-92131 Issy-es-Mx Cedex France eiane.jaumes@wanadoo.fr Antoine.Joux@ens.fr Abstract. Quite recenty, in
More informationQIP Course 10: Quantum Factorization Algorithm (Part 3)
QIP Couse 10: Quantum Factoization Algoithm (Pat 3 Ryutaoh Matsumoto Nagoya Univesity, Japan Send you comments to yutaoh.matsumoto@nagoya-u.jp Septembe 2018 @ Tokyo Tech. Matsumoto (Nagoya U. QIP Couse
More informationC/CS/Phys C191 Shor s order (period) finding algorithm and factoring 11/12/14 Fall 2014 Lecture 22
C/CS/Phys C9 Sho s ode (peiod) finding algoithm and factoing /2/4 Fall 204 Lectue 22 With a fast algoithm fo the uantum Fouie Tansfom in hand, it is clea that many useful applications should be possible.
More informationAQI: Advanced Quantum Information Lecture 2 (Module 4): Order finding and factoring algorithms February 20, 2013
AQI: Advanced Quantum Infomation Lectue 2 (Module 4): Ode finding and factoing algoithms Febuay 20, 203 Lectue: D. Mak Tame (email: m.tame@impeial.ac.uk) Intoduction In the last lectue we looked at the
More informationINTRODUCTION. 2. Vectors in Physics 1
INTRODUCTION Vectos ae used in physics to extend the study of motion fom one dimension to two dimensions Vectos ae indispensable when a physical quantity has a diection associated with it As an example,
More informationRandom Variables and Probability Distribution Random Variable
Random Vaiables and Pobability Distibution Random Vaiable Random vaiable: If S is the sample space P(S) is the powe set of the sample space, P is the pobability of the function then (S, P(S), P) is called
More information33. 12, or its reciprocal. or its negative.
Page 6 The Point is Measuement In spite of most of what has been said up to this point, we did not undetake this poject with the intent of building bette themometes. The point is to measue the peson. Because
More informationLoad Balancing and Pricing for Spectrum Access Control in Cognitive Radio Networks
Gobecom 2014 - Cognitive Radio and Netwoks Symposium 1 Load Baancing and Picing fo Spectum Access Conto in Cognitive Radio Netwoks Nguyen H. Tan, Dai H. Tan, Long Bao Le, Zhu Han and Choong Seon Hong Depatment
More informationUpward order-preserving 8-grid-drawings of binary trees
CCCG 207, Ottawa, Ontaio, July 26 28, 207 Upwad ode-peseving 8-gid-dawings of binay tees Theese Biedl Abstact This pape concens upwad ode-peseving staightline dawings of binay tees with the additional
More informationTowards Compositional Synthesis of Evolving Systems
Towads Compositiona Synthesis of Evoving Systems Shiva Nejati Mehdad Sabetzadeh Masha Chechik Sebastian Uchite Pamea Zave Univesity of Toonto Toonto, Canada U. of Buenos Aies, Agentina & Impeia Coege London,
More informationPHYS 705: Classical Mechanics. Central Force Problems II
PHYS 75: Cassica Mechanics Centa Foce Pobems II Obits in Centa Foce Pobem Sppose we e inteested moe in the shape of the obit, (not necessay the time evotion) Then, a sotion fo = () o = () wod be moe sef!
More informationCoordinate Geometry. = k2 e 2. 1 e + x. 1 e. ke ) 2. We now write = a, and shift the origin to the point (a, 0). Referred to
Coodinate Geomet Conic sections These ae pane cuves which can be descibed as the intesection of a cone with panes oiented in vaious diections. It can be demonstated that the ocus of a point which moves
More informationn 1 Cov(X,Y)= ( X i- X )( Y i-y ). N-1 i=1 * If variable X and variable Y tend to increase together, then c(x,y) > 0
Covaiance and Peason Coelation Vatanian, SW 540 Both covaiance and coelation indicate the elationship between two (o moe) vaiables. Neithe the covaiance o coelation give the slope between the X and Y vaiable,
More information