Lecture 23: I. Data Dependence II. Dependence Testing: Formulation III. Dependence Testers IV. Loop Parallelization V.
|
|
- Abel Patterson
- 5 years ago
- Views:
Transcription
1 Lecure 23: Array Dependence Analysis & Parallelizaion I. Daa Dependence II. Dependence Tesing: Formulaion III. Dependence Tesers IV. Loop Parallelizaion V. Loop Inerchange [ALSU 11.6, ] Phillip B. Gibbons : Parallelizaion 1
2 Le S i precede S j in execuion. I. Daa Dependence S 1 : a = 1; S 2 : b = a + 2; S 3 : a = c - d;... Flow (rue) dependence: S i compues a daa value ha S j uses. S 4 : a = b/c; S i δ S j E.g., S 1 δ S 2 and S 2 δ S 4 Ani dependence: S i uses a daa value ha S j overwries. S i δ a S j E.g., S 2 δ a S 3 Oupu dependence: S i compues a daa value ha S j overwries. S i δ o S j E.g., S 1 δ o S 3 and S 3 δ o S 4 Inpu dependence: S i uses a daa value ha S j also uses. S i δ i S j E.g., S 3 δ i S 4 (Unlike he oher 3, i is ypically safe o execue S i and S j in parallel) : Parallelizaion 2
3 Daa Dependence Graph Daa dependence in a program may be represened using a dependence graph G=(V,E), where he nodes V represen saemens in he program and he direced edges E represen dependence relaions. S 1 : a = 1; S 2 : b = a + 2; S 3 : a = c - d;... S 4 : a = b/c; d S 1 d S 2 S 3 d a d o d i d o S : Parallelizaion 3
4 Array Daa Dependence: Example 1 for i = 2 o 4 { S 1 : a[i] = b[i] + c[i] ; S 2 : d[i] = a[i] } S 1 2 i=2 i=3 i=4 S 2 2 S 1 3 S 2 3 S 1 4 S 2 4 d d d a[2] a[2] a[3] a[3] a[4] a[4] There is an insance of S 1 ha precedes an insance of S 2 in execuion and S 1 produces daa ha S 2 uses. S 1 is he source of he dependence; S 2 is he sink of he dependence. The dependence flows beween insances of saemens in he same ieraion (loop-independen dependence). The number of ieraions beween source and sink (dependence disance) is 0. The dependence direcion is =. S 1 δ = S 2 or S 1 δ 0 S : Parallelizaion 4
5 Array Daa Dependence: Example 2 do i = 2, 4 S 1 : a[i] = b[i] + c[i] S 2 : d[i] = a[i-1] i=2 i=3 i=4 2 S 2 1 S 2 S 1 3 S S 4 1 S 2 a[2] a[1] a[3] a[2] a[4] a[3] d d There is an insance of S 1 ha precedes an insance of S 2 in execuion and S 1 produces daa ha S 2 uses. S 1 is he source of he dependence; S 2 is he sink of he dependence. The dependence flows beween insances of saemens in differen ieraions (loop-carried dependence). The dependence disance is 1. The direcion is posiive (<). S 1 δ < S 2 or S 1 δ 1 S : Parallelizaion 5
6 Example 3 do i = 2, 4 S 1 : a[i] = b[i] + c[i] S 2 : d[i] = a[i+1] i=2 i=3 i=4 2 S 2 1 S 2 S 1 3 S 2 3 d a d a 4 S 4 1 S 2 a[2] a[3] a[3] a[4] a[4] a[5] There is an insance of S 2 ha precedes an insance of S 1 in execuion and S 2 uses daa ha S 1 overwries. S 2 is he source of he dependence; S 1 is he sink of he dependence. The dependence is loop-carried. The dependence disance is 1. The direcion is posiive (<). S 2 δ < a S 1 or S 2 δ 1 a S 1 Are you sure you know why i is S even hough S 1 appears before S 2 in 2 d S < 1 he code? a : Parallelizaion 6
7 Example 4: 2D Ieraion Space do i = 2, 4 do j = 2, 4 S: A[i,j] = A[i-1,j+1] An insance of S precedes anoher insance of S and S produces daa ha S uses. S is boh source and sink. The dependence is loopcarried. A[1,3] A[1,4] A[1,5] S[2,2] S[2,3] S[2,4] A[2,2] A[2,3] A[2,4] d A[2,3] A[2,4] A[2,5] S[3,2] S[3,3] S[3,4] A[3,2] A[3,3] A[3,4] d d d The dependence disance is (1,-1). S δ <,> S or S δ 1, 1 S S[4,2] A[3,3] A[3,4] A[3,5] S[4,3] S[4,4] A[4,2] A[4,3] A[4,4] : Parallelizaion 7
8 II. Dependence Tesing: Formulaion Consider he following perfec nes of deph d: do I1 L 1, U1 do I2 L2, U2 do I L, U d d d a(f(i),f (I),, fm (I)) 1 2 a(g (I), g (I),, gm (I)) 1 2 enddo enddo enddo array reference a(, fk (I),, subscrip posiion perfec means sep=1 ) subscrip expression I (I1,I 2,,Id ) L (L 1,L2,,Ld ) U (U 1,U2,,Ud) L U : Parallelizaion 8 Affine expressions: c 0 + c 1 I 1 + c 2 I c d I d for consans c 0, c 1,, c d
9 Problem Formulaion Dependence will exis if here exiss wo ieraion vecors k and j such ha L k j U and: f1(k) g1( j) and f (k) g ( j) and and f 2 m (k) g 2 m ( j) Tha is: and and and f(k) 1 g1(j) 0 f (k) g (j) 0 2 f m 2 (k) g m (j) : Parallelizaion 9
10 Problem Formulaion - Example do i = 2, 4 S 1 : a[i] = b[i] + c[i] S 2 : d[i] = a[i-1] Does here exis wo ieraion vecors i 1 and i 2, such ha 2 i 1 i 2 4 and such ha i 1 = i 2-1? Answer: yes; i 1 =2 & i 2 =3 and i 1 =3 & i 2 =4. Hence, here is dependence! The dependence disance vecor is i 2 -i 1 = 1. The dependence direcion vecor is sign(1) = < : Parallelizaion 10
11 Problem Formulaion - Example do i = 2, 4 S 1 : a[i] = b[i] + c[i] S 2 : d[i] = a[i+1] Does here exis wo ieraion vecors i 1 and i 2, such ha 2 i 1 i 2 4 and such ha i 1 = i 2 + 1? Answer: yes; i 1 =3 & i 2 =2 and i 1 =4 & i 2 =3. (Bu, bu!). Hence, here is dependence! The dependence disance vecor is i 2 -i 1 = -1. The dependence direcion vecor is sign(-1) = >. Is his possible? Yes: As an anidependence, no a rue dependence : Parallelizaion 11
12 Problem Formulaion - Example do i = 1, 10 S 1 : a[2*i] = b[i] + c[i] S 2 : d[i] = a[2*i+1] Does here exis wo ieraion vecors i 1 and i 2, such ha 1 i 1 i 2 10 and such ha 2*i 1 = 2*i 2 +1? Answer: no; 2*i 1 is even & 2*i 2 +1 is odd Hence, here is no dependence! : Parallelizaion 12
13 Problem Formulaion Dependence esing is equivalen o an ineger linear programming (ILP) problem of 2d variables & m+d consrains! An algorihm ha deermines if here exiss wo ieraion vecors k and j ha saisfies hese consrains is called a dependence eser. do I1 L 1, U1 do I2 L2, U2 do I L, U d d d a(f(i),f (I),, fm (I)) 1 2 a(g (I), g (I),, gm (I)) 1 2 enddo enddo enddo : Parallelizaion 13
14 Problem Formulaion Dependence esing is equivalen o an ineger linear programming (ILP) problem of 2d variables & m+d consrains! An algorihm ha deermines if here exiss wo ieraion vecors and ha saisfies hese consrains is called a dependence eser. k j k - j k - The dependence disance vecor is given by j. The dependence direcion vecor is give by sign( ). Dependence esing is NP-complee! A dependence es ha repors dependence only when here is dependence is said o be exac. Oherwise i is in-exac. A dependence es mus be conservaive; if he exisence of dependence canno be ascerained, dependence mus be assumed : Parallelizaion 14
15 Lampor s Tes. GCD Tes. Banerjee s Inequaliies. Generalized GCD Tes. Power Tes. I-Tes. Omega Tes. Dela Tes. Sanford Tes. ec III. Dependence Tesers : Parallelizaion 15
16 Lampor s Tes Lampor s Tes is used when here is a single index variable in he subscrip expressions, and when he coefficiens of he index variable in boh expressions are he same. A(, b *i c1, ) A(, b *i c, ) 2 The dependence problem: does here exis i 1 and i 2, such ha L i i 1 i 2 U i and such ha b*i 1 + c 1 = b*i 2 + c 2? i.e., i 2 i c b There is ineger soluion if and only if is ineger. 1 c 1 2? c 2 1 c b c1 c2 The dependence disance is d = b if d U i - L i d > 0 rue dependence d = 0 loop independen dependence d < 0 ani dependence : Parallelizaion 16
17 Lampor s Tes - Example do i = 1, n do j = 1, n S: a[i,j] = a[i-1,j+1] b*i 1 + c 1 = b*i 2 + c 2 i 1 = i 2-1? b = 1; c 1 = 0; c 2 = -1 c 1 b c 2 1 There is dependence. Disance (i) is 1. j 1 = j 2 + 1? b = 1; c 1 = 0; c 2 = 1 c 1 b c 2 1 There is dependence. Disance (j) is : Parallelizaion 17 S δ <,> S or S δ 1, 1 S
18 Lampor s Tes Anoher Example do i = 1, n do j = 1, n S: a[i,2*j] = a[i-1,2*j+1] b*i 1 + c 1 = b*i 2 + c 2 i 1 = i 2-1? b = 1; c 1 = 0; c 2 = -1 c 1 b c 2 1 There is dependence. Disance (i) is 1. 2*j 1 = 2*j 2 + 1? b = 2; c 1 = 0; c 2 = 1 c 1 b c There is no dependence.? There is no dependence! : Parallelizaion 18
19 Given he following equaion: n σ i=1 GCD Tes a i x i = c where a i and c are inegers an ineger soluion exiss if and only if: gcd a 1, a 2,, a n divides c Problems: ignores loop bounds gives no informaion on disance or direcion of dependence ofen gcd( ) is 1 which always divides c, resuling in false dependences : Parallelizaion 19
20 GCD Tes - Example do i = 1, 10 S 1 : a[2*i] = b[i] + c[i] S 2 : d[i] = a[2*i-1] Does here exis wo ieraion vecors i 1 and i 2, such ha 1 i 1 i 2 10 and such ha: or 2*i 1 = 2*i 2-1? 2*i 2-2*i 1 = 1? There will be an ineger soluion if and only if gcd(2,-2) divides 1. This is no he case, and hence, here is no dependence! : Parallelizaion 20
21 GCD Tes: Anoher Example do i = 1, 10 S 1 : a[i] = b[i] + c[i] S 2 : d[i] = a[i-100] Does here exis wo ieraion vecors i 1 and i 2, such ha 1 i 1, i 2 10 and such ha: or i 1 = i 2-100? i 2 - i 1 = 100? There will be an ineger soluion if and only if gcd(1,-1) divides 100. This is he case, and hence, here is dependence! Or is here? No: check loop bounds. Shows a limiaion of GCD : Parallelizaion 21
22 Dependence Tesing: Complicaions Unknown loop bounds: do i = 1, N S 1 : a[i] = a[i+10] Wha is he relaionship beween N and 10? Triangular loops: do i = 1, N do j = 1, i-1 S: a[i,j] = a[j,i] Mus impose j < i as an addiional consrain : Parallelizaion 22
23 More Complicaions User variables: do i = 1, 10 S 1 : a[i] = a[i+k] Same problem as unknown loop bounds, bu occur due o some loop ransformaions (e.g., loop bounds normalizaion). do i = L, H S 1 : a[i] = a[i-1] do i = 1, H-L S 1 : a[i+l] = a[i+l-1] : Parallelizaion 23
24 More Complicaions: Scalars do i = 1, N S 1 : x = a[i] S 2 : b[i] = x do i = 1, N S 1 : x[i] = a[i] S 2 : b[i] = x[i] privaizaion j = N-1 do i = 1, N S 1 : a[i] = a[j] S 2 : j = j - 1 do i = 1, N S 1 : a[i] = a[n-i] : Parallelizaion 24
25 IV. Loop Parallelizaion A dependence is said o be carried by a loop if he loop is he ouermos loop whose removal eliminaes he dependence. If a dependence is no carried by he loop, i is loop-independen. do i = 2, n-1 do j = 2, m-1 a(i, j) =... = a(i, j) b(i, j) = = b(i, j-1) : Parallelizaion 25 c(i, j) = = c(i-1, j)
26 Loop Parallelizaion A dependence is said o be carried by a loop if he loop is he ouermos loop whose removal eliminaes he dependence. If a dependence is no carried by he loop, i is loop-independen. Ouermos loop δ =,= do i = 2, n-1 do j = 2, m-1 a(i, j) =... = a(i, j) wih a non = direcion carries dependence! loop-independen δ =,< b(i, j) = = b(i, j-1) carried by loop j δ <,= : Parallelizaion 26 c(i, j) = = c(i-1, j) carried by loop i
27 Loop Parallelizaion The ieraions of a loop may be execued in parallel wih one anoher if and only if no dependences are carried by he loop! : Parallelizaion 27
28 δ =,< do i = 2, n-1 do j = 2, m-1 b(i, j) = = b(i, j-1) Loop Parallelizaion - Example i=2 i=3 i=n-2 fork i=n-1 join Ieraions of loop j mus be execued sequenially, bu he ieraions of loop i may be execued in parallel! Ouer loop parallelism : Parallelizaion 28
29 δ <,= do i = 2, n-1 do j = 2, m-1 b(i, j) = = b(i-1, j) Loop Parallelizaion - Example j=2 j=3 j=m-2 fork j=m-1 join i=i+1 Ieraions of loop i mus be execued sequenially, bu he ieraions of loop j may be execued in parallel! Inner loop parallelism (Vecorizaion, SIMD) : Parallelizaion 29
30 δ <,< do i = 2, n-1 do j = 2, m-1 b(i, j) = = b(i-1, j-1) Loop Parallelizaion - Example j=2 j=3 j=m-2 fork j=m-1 join i=i+1 Ieraions of loop i mus be execued sequenially, bu he ieraions of loop j may be execued in parallel! Why? Inner loop parallelism : Parallelizaion 30
31 V. Loop Inerchange Recall: Used o improve spaial localiy for i = 0 o N-1 for j = 0 o N-1 A[j][i] = i*j; for j = 0 o N-1 for i = 0 o N-1 A[j][i] = i*j; i j Hi Miss j i Assume row major order, N large, 4 elemens per cache line : Parallelizaion 31
32 Loop Inerchange Can also be used o improve he granulariy of parallelism! do i = 1, n do j = 1, n a[i,j] = b[i,j] c[i,j] = a[i-1,j] do j = 1, n do i = 1, n a[i,j] = b[i,j] c[i,j] = a[i-1,j] δ <,= δ =,< Inner loop parallelism Ouer loop parallelism : Parallelizaion 32
33 When Is Loop Inerchange Legal? j do i = 1,n do j = 1,n a[i,j] i δ δ,, < δ <, δ >, <, δ <, < δ <, > δ > do j = 1,n do i = 1,n a[i,j] δ >, δ >, > : Parallelizaion 33
34 When Is Loop Inerchange Legal? j Focus only on rue dependences (i.e., lexicographically posiive dependences) do i = 1,n do j = 1,n a[i,j] i δ δ,, < δ <, δ <, < δ <, > do j = 1,n do i = 1,n a[i,j] : Parallelizaion 34
35 When Is Loop Inerchange Legal? j do i = 1,n do j = 1,n a[i,j] i δ δ,, < δ <, δ <, < δ <, > do j = 1,n do i = 1,n a[i,j] : Parallelizaion 35
36 When Is Loop Inerchange Legal? j do i = 1,n do j = 1,n a[i,j] i δ δ,, < δ <, δ <, < δ <, > do j = 1,n do i = 1,n a[i,j] When is loop inerchange legal? when he inerchanged dependences remain lexiographically posiive! : Parallelizaion 36
37 Today s Class: Array Dependence Analysis & Parallelizaion I. Daa Dependence II. Dependence Tesing: Formulaion III. Dependence Tesers IV. Loop Parallelizaion V. Loop Inerchange Domain Specific Languages Monday s Class Warning: Projec Milesone Repors are due in one week : Parallelizaion 37
MATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence
MATH 433/533, Fourier Analysis Secion 6, Proof of Fourier s Theorem for Poinwise Convergence Firs, some commens abou inegraing periodic funcions. If g is a periodic funcion, g(x + ) g(x) for all real x,
More informationKINEMATICS IN ONE DIMENSION
KINEMATICS IN ONE DIMENSION PREVIEW Kinemaics is he sudy of how hings move how far (disance and displacemen), how fas (speed and velociy), and how fas ha how fas changes (acceleraion). We say ha an objec
More informationEnsamble methods: Boosting
Lecure 21 Ensamble mehods: Boosing Milos Hauskrech milos@cs.pi.edu 5329 Senno Square Schedule Final exam: April 18: 1:00-2:15pm, in-class Term projecs April 23 & April 25: a 1:00-2:30pm in CS seminar room
More informationLecture 4 Kinetics of a particle Part 3: Impulse and Momentum
MEE Engineering Mechanics II Lecure 4 Lecure 4 Kineics of a paricle Par 3: Impulse and Momenum Linear impulse and momenum Saring from he equaion of moion for a paricle of mass m which is subjeced o an
More informationWe just finished the Erdős-Stone Theorem, and ex(n, F ) (1 1/(χ(F ) 1)) ( n
Lecure 3 - Kövari-Sós-Turán Theorem Jacques Versraëe jacques@ucsd.edu We jus finished he Erdős-Sone Theorem, and ex(n, F ) ( /(χ(f ) )) ( n 2). So we have asympoics when χ(f ) 3 bu no when χ(f ) = 2 i.e.
More informationInstructor: Barry McQuarrie Page 1 of 5
Procedure for Solving radical equaions 1. Algebraically isolae one radical by iself on one side of equal sign. 2. Raise each side of he equaion o an appropriae power o remove he radical. 3. Simplify. 4.
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 information3.1.3 INTRODUCTION TO DYNAMIC OPTIMIZATION: DISCRETE TIME PROBLEMS. A. The Hamiltonian and First-Order Conditions in a Finite Time Horizon
3..3 INRODUCION O DYNAMIC OPIMIZAION: DISCREE IME PROBLEMS A. he Hamilonian and Firs-Order Condiions in a Finie ime Horizon Define a new funcion, he Hamilonian funcion, H. H he change in he oal value of
More informationEnsamble methods: Bagging and Boosting
Lecure 21 Ensamble mehods: Bagging and Boosing Milos Hauskrech milos@cs.pi.edu 5329 Senno Square Ensemble mehods Mixure of expers Muliple base models (classifiers, regressors), each covers a differen par
More informationComputer-Aided Analysis of Electronic Circuits Course Notes 3
Gheorghe Asachi Technical Universiy of Iasi Faculy of Elecronics, Telecommunicaions and Informaion Technologies Compuer-Aided Analysis of Elecronic Circuis Course Noes 3 Bachelor: Telecommunicaion Technologies
More informationEXERCISES FOR SECTION 1.5
1.5 Exisence and Uniqueness of Soluions 43 20. 1 v c 21. 1 v c 1 2 4 6 8 10 1 2 2 4 6 8 10 Graph of approximae soluion obained using Euler s mehod wih = 0.1. Graph of approximae soluion obained using Euler
More informationPhysics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle
Chaper 2 Newonian Mechanics Single Paricle In his Chaper we will review wha Newon s laws of mechanics ell us abou he moion of a single paricle. Newon s laws are only valid in suiable reference frames,
More informationApproximation Algorithms for Unique Games via Orthogonal Separators
Approximaion Algorihms for Unique Games via Orhogonal Separaors Lecure noes by Konsanin Makarychev. Lecure noes are based on he papers [CMM06a, CMM06b, LM4]. Unique Games In hese lecure noes, we define
More informationODEs II, Lecture 1: Homogeneous Linear Systems - I. Mike Raugh 1. March 8, 2004
ODEs II, Lecure : Homogeneous Linear Sysems - I Mike Raugh March 8, 4 Inroducion. In he firs lecure we discussed a sysem of linear ODEs for modeling he excreion of lead from he human body, saw how o ransform
More information10. State Space Methods
. Sae Space Mehods. Inroducion Sae space modelling was briefly inroduced in chaper. Here more coverage is provided of sae space mehods before some of heir uses in conrol sysem design are covered in he
More informationExercises: Similarity Transformation
Exercises: Similariy Transformaion Problem. Diagonalize he following marix: A [ 2 4 Soluion. Marix A has wo eigenvalues λ 3 and λ 2 2. Since (i) A is a 2 2 marix and (ii) i has 2 disinc eigenvalues, we
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 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 informationLecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.
Lecure - Kinemaics in One Dimension Displacemen, Velociy and Acceleraion Everyhing in he world is moving. Nohing says sill. Moion occurs a all scales of he universe, saring from he moion of elecrons in
More informationx i v x t a dx dt t x
Physics 3A: Basic Physics I Shoup - Miderm Useful Equaions A y A sin A A A y an A y A A = A i + A y j + A z k A * B = A B cos(θ) A B = A B sin(θ) A * B = A B + A y B y + A z B z A B = (A y B z A z B y
More information4.5 Constant Acceleration
4.5 Consan Acceleraion v() v() = v 0 + a a() a a() = a v 0 Area = a (a) (b) Figure 4.8 Consan acceleraion: (a) velociy, (b) acceleraion When he x -componen of he velociy is a linear funcion (Figure 4.8(a)),
More informationLars Nesheim. 17 January Last lecture solved the consumer choice problem.
Lecure 4 Locaional Equilibrium Coninued Lars Nesheim 17 January 28 1 Inroducory remarks Las lecure solved he consumer choice problem. Compued condiional demand funcions: C (I x; p; r (x)) and x; p; r (x))
More informationLet us start with a two dimensional case. We consider a vector ( x,
Roaion marices We consider now roaion marices in wo and hree dimensions. We sar wih wo dimensions since wo dimensions are easier han hree o undersand, and one dimension is a lile oo simple. However, our
More informationTrajectory planning in Cartesian space
Roboics 1 Trajecory planning in Caresian space Prof. Alessandro De Luca Roboics 1 1 Trajecories in Caresian space in general, he rajecory planning mehods proposed in he join space can be applied also in
More informationNon-uniform circular motion *
OpenSax-CNX module: m14020 1 Non-uniform circular moion * Sunil Kumar Singh This work is produced by OpenSax-CNX and licensed under he Creaive Commons Aribuion License 2.0 Wha do we mean by non-uniform
More informationnon -negative cone Population dynamics motivates the study of linear models whose coefficient matrices are non-negative or positive.
LECTURE 3 Linear/Nonnegaive Marix Models x ( = Px ( A= m m marix, x= m vecor Linear sysems of difference equaions arise in several difference conexs: Linear approximaions (linearizaion Perurbaion analysis
More informationThe Lorentz Transformation
The Lorenz Transformaion Relaiviy and Asrophysics Lecure 06 Terry Herer Ouline Coordinae ransformaions Lorenz Transformaion Saemen Proof Addiion of velociies Parial proof Examples of velociy addiion Proof
More informationChapter 12: Velocity, acceleration, and forces
To Feel a Force Chaper Spring, Chaper : A. Saes of moion For moion on or near he surface of he earh, i is naural o measure moion wih respec o objecs fixed o he earh. The 4 hr. roaion of he earh has a measurable
More informationWEEK-3 Recitation PHYS 131. of the projectile s velocity remains constant throughout the motion, since the acceleration a x
WEEK-3 Reciaion PHYS 131 Ch. 3: FOC 1, 3, 4, 6, 14. Problems 9, 37, 41 & 71 and Ch. 4: FOC 1, 3, 5, 8. Problems 3, 5 & 16. Feb 8, 018 Ch. 3: FOC 1, 3, 4, 6, 14. 1. (a) The horizonal componen of he projecile
More informationT L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB
Elecronic Companion EC.1. Proofs of Technical Lemmas and Theorems LEMMA 1. Le C(RB) be he oal cos incurred by he RB policy. Then we have, T L E[C(RB)] 3 E[Z RB ]. (EC.1) Proof of Lemma 1. Using he marginal
More informationCMU-Q Lecture 3: Search algorithms: Informed. Teacher: Gianni A. Di Caro
CMU-Q 5-38 Lecure 3: Search algorihms: Informed Teacher: Gianni A. Di Caro UNINFORMED VS. INFORMED SEARCH Sraegy How desirable is o be in a cerain inermediae sae for he sake of (effecively) reaching a
More informationKinematics Vocabulary. Kinematics and One Dimensional Motion. Position. Coordinate System in One Dimension. Kinema means movement 8.
Kinemaics Vocabulary Kinemaics and One Dimensional Moion 8.1 WD1 Kinema means movemen Mahemaical descripion of moion Posiion Time Inerval Displacemen Velociy; absolue value: speed Acceleraion Averages
More informationFinish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details!
MAT 257, Handou 6: Ocober 7-2, 20. I. Assignmen. Finish reading Chaper 2 of Spiva, rereading earlier secions as necessary. handou and fill in some missing deails! II. Higher derivaives. Also, read his
More informationMA 366 Review - Test # 1
MA 366 Review - Tes # 1 Fall 5 () Resuls from Calculus: differeniaion formulas, implici differeniaion, Chain Rule; inegraion formulas, inegraion b pars, parial fracions, oher inegraion echniques. (1) Order
More informationSimulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010
Simulaion-Solving Dynamic Models ABE 5646 Week 2, Spring 2010 Week Descripion Reading Maerial 2 Compuer Simulaion of Dynamic Models Finie Difference, coninuous saes, discree ime Simple Mehods Euler Trapezoid
More informationMATH 5720: Gradient Methods Hung Phan, UMass Lowell October 4, 2018
MATH 5720: Gradien Mehods Hung Phan, UMass Lowell Ocober 4, 208 Descen Direcion Mehods Consider he problem min { f(x) x R n}. The general descen direcions mehod is x k+ = x k + k d k where x k is he curren
More information4. Electric field lines with respect to equipotential surfaces are
Pre-es Quasi-saic elecromagneism. The field produced by primary charge Q and by an uncharged conducing plane disanced from Q by disance d is equal o he field produced wihou conducing plane by wo following
More informationPCP Theorem by Gap Amplification
PCP Theorem by Gap Amplificaion Bernhard Vesenmayer JASS 2006 Absrac The PCP Theorem provides a new classificaion of NP. Since he original proof by [AS98], several new proofs occured. While he firs proof
More informationNotes for Lecture 17-18
U.C. Berkeley CS278: Compuaional Complexiy Handou N7-8 Professor Luca Trevisan April 3-8, 2008 Noes for Lecure 7-8 In hese wo lecures we prove he firs half of he PCP Theorem, he Amplificaion Lemma, up
More information14 Autoregressive Moving Average Models
14 Auoregressive Moving Average Models In his chaper an imporan parameric family of saionary ime series is inroduced, he family of he auoregressive moving average, or ARMA, processes. For a large class
More informationRobotics I. April 11, The kinematics of a 3R spatial robot is specified by the Denavit-Hartenberg parameters in Tab. 1.
Roboics I April 11, 017 Exercise 1 he kinemaics of a 3R spaial robo is specified by he Denavi-Harenberg parameers in ab 1 i α i d i a i θ i 1 π/ L 1 0 1 0 0 L 3 0 0 L 3 3 able 1: able of DH parameers of
More informationGround Rules. PC1221 Fundamentals of Physics I. Kinematics. Position. Lectures 3 and 4 Motion in One Dimension. A/Prof Tay Seng Chuan
Ground Rules PC11 Fundamenals of Physics I Lecures 3 and 4 Moion in One Dimension A/Prof Tay Seng Chuan 1 Swich off your handphone and pager Swich off your lapop compuer and keep i No alking while lecure
More information4 Sequences of measurable functions
4 Sequences of measurable funcions 1. Le (Ω, A, µ) be a measure space (complee, afer a possible applicaion of he compleion heorem). In his chaper we invesigae relaions beween various (nonequivalen) convergences
More informationTimed Circuits. Asynchronous Circuit Design. Timing Relationships. A Simple Example. Timed States. Timing Sequences. ({r 6 },t6 = 1.
Timed Circuis Asynchronous Circui Design Chris J. Myers Lecure 7: Timed Circuis Chaper 7 Previous mehods only use limied knowledge of delays. Very robus sysems, bu exremely conservaive. Large funcional
More informationSolution: b All the terms must have the dimension of acceleration. We see that, indeed, each term has the units of acceleration
PHYS 54 Tes Pracice Soluions Spring 8 Q: [4] Knowing ha in he ne epression a is acceleraion, v is speed, is posiion and is ime, from a dimensional v poin of view, he equaion a is a) incorrec b) correc
More informationMatlab and Python programming: how to get started
Malab and Pyhon programming: how o ge sared Equipping readers he skills o wrie programs o explore complex sysems and discover ineresing paerns from big daa is one of he main goals of his book. In his chaper,
More informationACE 562 Fall Lecture 4: Simple Linear Regression Model: Specification and Estimation. by Professor Scott H. Irwin
ACE 56 Fall 005 Lecure 4: Simple Linear Regression Model: Specificaion and Esimaion by Professor Sco H. Irwin Required Reading: Griffihs, Hill and Judge. "Simple Regression: Economic and Saisical Model
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 informationStationary Distribution. Design and Analysis of Algorithms Andrei Bulatov
Saionary Disribuion Design and Analysis of Algorihms Andrei Bulaov Algorihms Markov Chains 34-2 Classificaion of Saes k By P we denoe he (i,j)-enry of i, j Sae is accessible from sae if 0 for some k 0
More informationAnnouncements PA2 due Friday Midterm is Wednesday next week, in class, one week from today
Loop Transformations Announcements PA2 due Friday Midterm is Wednesday next week, in class, one week from today Today Recall stencil computations Intro to loop transformations Data dependencies between
More informationSTATE-SPACE MODELLING. A mass balance across the tank gives:
B. Lennox and N.F. Thornhill, 9, Sae Space Modelling, IChemE Process Managemen and Conrol Subjec Group Newsleer STE-SPACE MODELLING Inroducion: Over he pas decade or so here has been an ever increasing
More informationLinear Response Theory: The connection between QFT and experiments
Phys540.nb 39 3 Linear Response Theory: The connecion beween QFT and experimens 3.1. Basic conceps and ideas Q: How do we measure he conduciviy of a meal? A: we firs inroduce a weak elecric field E, and
More informationPhysics 3A: Basic Physics I Shoup Sample Midterm. Useful Equations. x f. x i v x. a x. x i. v xi v xf. 2a x f x i. y f. a r.
Physics 3A: Basic Physics I Shoup Sample Miderm Useful Equaions A y Asin A A x A y an A y A x A = A x i + A y j + A z k A * B = A B cos(θ) A x B = A B sin(θ) A * B = A x B x + A y B y + A z B z A x B =
More informationOnline Convex Optimization Example And Follow-The-Leader
CSE599s, Spring 2014, Online Learning Lecure 2-04/03/2014 Online Convex Opimizaion Example And Follow-The-Leader Lecurer: Brendan McMahan Scribe: Sephen Joe Jonany 1 Review of Online Convex Opimizaion
More informationToday: Graphing. Note: I hope this joke will be funnier (or at least make you roll your eyes and say ugh ) after class. v (miles per hour ) Time
+v Today: Graphing v (miles per hour ) 9 8 7 6 5 4 - - Time Noe: I hope his joke will be funnier (or a leas make you roll your eyes and say ugh ) afer class. Do yourself a favor! Prof Sarah s fail-safe
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 informationThe fundamental mass balance equation is ( 1 ) where: I = inputs P = production O = outputs L = losses A = accumulation
Hea (iffusion) Equaion erivaion of iffusion Equaion The fundamenal mass balance equaion is I P O L A ( 1 ) where: I inpus P producion O oupus L losses A accumulaion Assume ha no chemical is produced or
More informationV L. DT s D T s t. Figure 1: Buck-boost converter: inductor current i(t) in the continuous conduction mode.
ECE 445 Analysis and Design of Power Elecronic Circuis Problem Se 7 Soluions Problem PS7.1 Erickson, Problem 5.1 Soluion (a) Firs, recall he operaion of he buck-boos converer in he coninuous conducion
More informationTwo Coupled Oscillators / Normal Modes
Lecure 3 Phys 3750 Two Coupled Oscillaors / Normal Modes Overview and Moivaion: Today we ake a small, bu significan, sep owards wave moion. We will no ye observe waves, bu his sep is imporan in is own
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 informationPhysics 101 Fall 2006: Exam #1- PROBLEM #1
Physics 101 Fall 2006: Exam #1- PROBLEM #1 1. Problem 1. (+20 ps) (a) (+10 ps) i. +5 ps graph for x of he rain vs. ime. The graph needs o be parabolic and concave upward. ii. +3 ps graph for x of he person
More informationSystem of Linear Differential Equations
Sysem of Linear Differenial Equaions In "Ordinary Differenial Equaions" we've learned how o solve a differenial equaion for a variable, such as: y'k5$e K2$x =0 solve DE yx = K 5 2 ek2 x C_C1 2$y''C7$y
More informationSignals and Systems Profs. Byron Yu and Pulkit Grover Fall Midterm 1 Solutions
8-90 Signals and Sysems Profs. Byron Yu and Pulki Grover Fall 07 Miderm Soluions Name: Andrew ID: Problem Score Max 0 8 4 6 5 0 6 0 7 8 9 0 6 Toal 00 Miderm Soluions. (0 poins) Deermine wheher he following
More informationACE 564 Spring Lecture 7. Extensions of The Multiple Regression Model: Dummy Independent Variables. by Professor Scott H.
ACE 564 Spring 2006 Lecure 7 Exensions of The Muliple Regression Model: Dumm Independen Variables b Professor Sco H. Irwin Readings: Griffihs, Hill and Judge. "Dumm Variables and Varing Coefficien Models
More informationPhys 221 Fall Chapter 2. Motion in One Dimension. 2014, 2005 A. Dzyubenko Brooks/Cole
Phys 221 Fall 2014 Chaper 2 Moion in One Dimension 2014, 2005 A. Dzyubenko 2004 Brooks/Cole 1 Kinemaics Kinemaics, a par of classical mechanics: Describes moion in erms of space and ime Ignores he agen
More informationSome Basic Information about M-S-D Systems
Some Basic Informaion abou M-S-D Sysems 1 Inroducion We wan o give some summary of he facs concerning unforced (homogeneous) and forced (non-homogeneous) models for linear oscillaors governed by second-order,
More information1 Review of Zero-Sum Games
COS 5: heoreical Machine Learning Lecurer: Rob Schapire Lecure #23 Scribe: Eugene Brevdo April 30, 2008 Review of Zero-Sum Games Las ime we inroduced a mahemaical model for wo player zero-sum games. Any
More information( ) ( ) if t = t. It must satisfy the identity. So, bulkiness of the unit impulse (hyper)function is equal to 1. The defining characteristic is
UNIT IMPULSE RESPONSE, UNIT STEP RESPONSE, STABILITY. Uni impulse funcion (Dirac dela funcion, dela funcion) rigorously defined is no sricly a funcion, bu disribuion (or measure), precise reamen requires
More informationMATH 128A, SUMMER 2009, FINAL EXAM SOLUTION
MATH 28A, SUMME 2009, FINAL EXAM SOLUTION BENJAMIN JOHNSON () (8 poins) [Lagrange Inerpolaion] (a) (4 poins) Le f be a funcion defined a some real numbers x 0,..., x n. Give a defining equaion for he Lagrange
More informationChapter 1 Fundamental Concepts
Chaper 1 Fundamenal Conceps 1 Signals A signal is a paern of variaion of a physical quaniy, ofen as a funcion of ime (bu also space, disance, posiion, ec). These quaniies are usually he independen variables
More informationSpectral Analysis. Joseph Fourier The two representations of a signal are connected via the Fourier transform. Z x(t)exp( j2πft)dt
Specral Analysis Asignalx may be represened as a funcion of ime as x() or as a funcion of frequency X(f). This is due o relaionships developed by a French mahemaician, physicis, and Egypologis, Joseph
More informationt is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...
Mah 228- Fri Mar 24 5.6 Marix exponenials and linear sysems: The analogy beween firs order sysems of linear differenial equaions (Chaper 5) and scalar linear differenial equaions (Chaper ) is much sronger
More informationLogic in computer science
Logic in compuer science Logic plays an imporan role in compuer science Logic is ofen called he calculus of compuer science Logic plays a similar role in compuer science o ha played by calculus in he physical
More informationA. Using Newton s second law in one dimension, F net. , write down the differential equation that governs the motion of the block.
Simple SIMPLE harmonic HARMONIC moion MOTION I. Differenial equaion of moion A block is conneced o a spring, one end of which is aached o a wall. (Neglec he mass of he spring, and assume he surface is
More informationMath 315: Linear Algebra Solutions to Assignment 6
Mah 35: Linear Algebra s o Assignmen 6 # Which of he following ses of vecors are bases for R 2? {2,, 3, }, {4,, 7, 8}, {,,, 3}, {3, 9, 4, 2}. Explain your answer. To generae he whole R 2, wo linearly independen
More informationIB Physics Kinematics Worksheet
IB Physics Kinemaics Workshee Wrie full soluions and noes for muliple choice answers. Do no use a calculaor for muliple choice answers. 1. Which of he following is a correc definiion of average acceleraion?
More informationCourse Notes for EE227C (Spring 2018): Convex Optimization and Approximation
Course Noes for EE7C Spring 018: Convex Opimizaion and Approximaion Insrucor: Moriz Hard Email: hard+ee7c@berkeley.edu Graduae Insrucor: Max Simchowiz Email: msimchow+ee7c@berkeley.edu Ocober 15, 018 3
More informationArticle from. Predictive Analytics and Futurism. July 2016 Issue 13
Aricle from Predicive Analyics and Fuurism July 6 Issue An Inroducion o Incremenal Learning By Qiang Wu and Dave Snell Machine learning provides useful ools for predicive analyics The ypical machine learning
More information2) Of the following questions, which ones are thermodynamic, rather than kinetic concepts?
AP Chemisry Tes (Chaper 12) Muliple Choice (40%) 1) Which of he following is a kineic quaniy? A) Enhalpy B) Inernal Energy C) Gibb s free energy D) Enropy E) Rae of reacion 2) Of he following quesions,
More informationHamilton- J acobi Equation: Explicit Formulas In this lecture we try to apply the method of characteristics to the Hamilton-Jacobi equation: u t
M ah 5 2 7 Fall 2 0 0 9 L ecure 1 0 O c. 7, 2 0 0 9 Hamilon- J acobi Equaion: Explici Formulas In his lecure we ry o apply he mehod of characerisics o he Hamilon-Jacobi equaion: u + H D u, x = 0 in R n
More informationSolutions from Chapter 9.1 and 9.2
Soluions from Chaper 9 and 92 Secion 9 Problem # This basically boils down o an exercise in he chain rule from calculus We are looking for soluions of he form: u( x) = f( k x c) where k x R 3 and k is
More informationon the interval (x + 1) 0! x < ", where x represents feet from the first fence post. How many square feet of fence had to be painted?
Calculus II MAT 46 Improper Inegrals A mahemaician asked a fence painer o complee he unique ask of paining one side of a fence whose face could be described by he funcion y f (x on he inerval (x + x
More informationStopping Set Elimination for LDPC Codes
Sopping Se Eliminaion for LDPC Codes Anxiao (Andrew) Jiang, Pulakesh Upadhyaya, Ying Wang, Krishna R. Narayanan Hongchao Zhou, Jin Sima, and Jehoshua Bruck Compuer Science and Engineering Deparmen, Texas
More informationMath 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:
Mah 4 Eam Review Problems Problem. Calculae he 3rd Taylor polynomial for arcsin a =. Soluion. Le f() = arcsin. For his problem, we use he formula f() + f () + f ()! + f () 3! for he 3rd Taylor polynomial
More informationDisplacement ( x) x x x
Kinemaics Kinemaics is he branch of mechanics ha describes he moion of objecs wihou necessarily discussing wha causes he moion. 1-Dimensional Kinemaics (or 1- Dimensional moion) refers o moion in a sraigh
More informationSuggested Practice Problems (set #2) for the Physics Placement Test
Deparmen of Physics College of Ars and Sciences American Universiy of Sharjah (AUS) Fall 014 Suggesed Pracice Problems (se #) for he Physics Placemen Tes This documen conains 5 suggesed problems ha are
More informationChapter 2: Principles of steady-state converter analysis
Chaper 2 Principles of Seady-Sae Converer Analysis 2.1. Inroducion 2.2. Inducor vol-second balance, capacior charge balance, and he small ripple approximaion 2.3. Boos converer example 2.4. Cuk converer
More informationPhysics 180A Fall 2008 Test points. Provide the best answer to the following questions and problems. Watch your sig figs.
Physics 180A Fall 2008 Tes 1-120 poins Name Provide he bes answer o he following quesions and problems. Wach your sig figs. 1) The number of meaningful digis in a number is called he number of. When numbers
More informationInnova Junior College H2 Mathematics JC2 Preliminary Examinations Paper 2 Solutions 0 (*)
Soluion 3 x 4x3 x 3 x 0 4x3 x 4x3 x 4x3 x 4x3 x x 3x 3 4x3 x Innova Junior College H Mahemaics JC Preliminary Examinaions Paper Soluions 3x 3 4x 3x 0 4x 3 4x 3 0 (*) 0 0 + + + - 3 3 4 3 3 3 3 Hence x or
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 information1 Solutions to selected problems
1 Soluions o seleced problems 1. Le A B R n. Show ha in A in B bu in general bd A bd B. Soluion. Le x in A. Then here is ɛ > 0 such ha B ɛ (x) A B. This shows x in B. If A = [0, 1] and B = [0, 2], hen
More information( ) = Q 0. ( ) R = R dq. ( t) = I t
ircuis onceps The addiion of a simple capacior o a circui of resisors allows wo relaed phenomena o occur The observaion ha he ime-dependence of a complex waveform is alered by he circui is referred o as
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 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 informationOrdinary Differential Equations
Ordinary Differenial Equaions 5. Examples of linear differenial equaions and heir applicaions We consider some examples of sysems of linear differenial equaions wih consan coefficiens y = a y +... + a
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 informationY. Xiang, Learning Bayesian Networks 1
Learning Bayesian Neworks Objecives Acquisiion of BNs Technical conex of BN learning Crierion of sound srucure learning BN srucure learning in 2 seps BN CPT esimaion Reference R.E. Neapolian: Learning
More informationINTRODUCTION TO MACHINE LEARNING 3RD EDITION
ETHEM ALPAYDIN The MIT Press, 2014 Lecure Slides for INTRODUCTION TO MACHINE LEARNING 3RD EDITION alpaydin@boun.edu.r hp://www.cmpe.boun.edu.r/~ehem/i2ml3e CHAPTER 2: SUPERVISED LEARNING Learning a Class
More informationLecture 20: Riccati Equations and Least Squares Feedback Control
34-5 LINEAR SYSTEMS Lecure : Riccai Equaions and Leas Squares Feedback Conrol 5.6.4 Sae Feedback via Riccai Equaions A recursive approach in generaing he marix-valued funcion W ( ) equaion for i for he
More information