EM 361: Παράλληλοι Υπολογισµοί

Σχετικά έγγραφα
EM 361: Παράλληλοι Υπολογισμοί

Απόκριση σε Μοναδιαία Ωστική Δύναμη (Unit Impulse) Απόκριση σε Δυνάμεις Αυθαίρετα Μεταβαλλόμενες με το Χρόνο. Απόστολος Σ.

EE512: Error Control Coding

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)

Approximation of distance between locations on earth given by latitude and longitude

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS

DESIGN OF MACHINERY SOLUTION MANUAL h in h 4 0.

Homework 3 Solutions

Statistical Inference I Locally most powerful tests

Numerical Analysis FMN011

Partial Differential Equations in Biology The boundary element method. March 26, 2013

Econ 2110: Fall 2008 Suggested Solutions to Problem Set 8 questions or comments to Dan Fetter 1

The Simply Typed Lambda Calculus

Lecture 2: Dirac notation and a review of linear algebra Read Sakurai chapter 1, Baym chatper 3

b. Use the parametrization from (a) to compute the area of S a as S a ds. Be sure to substitute for ds!

Πρόβλημα 1: Αναζήτηση Ελάχιστης/Μέγιστης Τιμής

Matrices and Determinants

Example Sheet 3 Solutions

Παράλληλος προγραμματισμός περιστροφικών αλγορίθμων εξωτερικών σημείων τύπου simplex ΠΛΟΣΚΑΣ ΝΙΚΟΛΑΟΣ

Other Test Constructions: Likelihood Ratio & Bayes Tests

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

D Alembert s Solution to the Wave Equation

Homework 8 Model Solution Section

Forced Pendulum Numerical approach

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

Block Ciphers Modes. Ramki Thurimella

ES440/ES911: CFD. Chapter 5. Solution of Linear Equation Systems

the total number of electrons passing through the lamp.

Section 8.3 Trigonometric Equations

CHAPTER 48 APPLICATIONS OF MATRICES AND DETERMINANTS

Math 6 SL Probability Distributions Practice Test Mark Scheme

1 String with massive end-points

CORDIC Background (4A)

CORDIC Background (2A)

Supplementary Materials for Evolutionary Multiobjective Optimization Based Multimodal Optimization: Fitness Landscape Approximation and Peak Detection

Spherical Coordinates

Chapter 6: Systems of Linear Differential. be continuous functions on the interval

Second Order RLC Filters

ΚΥΠΡΙΑΚΟΣ ΣΥΝΔΕΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY 21 ος ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ Δεύτερος Γύρος - 30 Μαρτίου 2011

Συστήματα Διαχείρισης Βάσεων Δεδομένων

Second Order Partial Differential Equations

6.3 Forecasting ARMA processes

Main source: "Discrete-time systems and computer control" by Α. ΣΚΟΔΡΑΣ ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ ΔΙΑΛΕΞΗ 4 ΔΙΑΦΑΝΕΙΑ 1

ΑΠΟΔΟΤΙΚΗ ΑΠΟΤΙΜΗΣΗ ΕΡΩΤΗΣΕΩΝ OLAP Η ΜΕΤΑΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ ΕΞΕΙΔΙΚΕΥΣΗΣ. Υποβάλλεται στην

Areas and Lengths in Polar Coordinates

Congruence Classes of Invertible Matrices of Order 3 over F 2

C.S. 430 Assignment 6, Sample Solutions

Solution Series 9. i=1 x i and i=1 x i.

2 Composition. Invertible Mappings

Assalamu `alaikum wr. wb.

Jesse Maassen and Mark Lundstrom Purdue University November 25, 2013

10 MERCHIA. 10. Starting from standing position (where the SIGN START ) without marshal (self start) 5 minutes after TC4 KALO LIVADI OUT

Areas and Lengths in Polar Coordinates

ST5224: Advanced Statistical Theory II

Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο

ΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ "ΠΟΛΥΚΡΙΤΗΡΙΑ ΣΥΣΤΗΜΑΤΑ ΛΗΨΗΣ ΑΠΟΦΑΣΕΩΝ. Η ΠΕΡΙΠΤΩΣΗ ΤΗΣ ΕΠΙΛΟΓΗΣ ΑΣΦΑΛΙΣΤΗΡΙΟΥ ΣΥΜΒΟΛΑΙΟΥ ΥΓΕΙΑΣ "

ΠΑΝΕΠΙΣΤΗΜΙΟ ΘΕΣΣΑΛΙΑΣ ΤΜΗΜΑ ΠΟΛΙΤΙΚΩΝ ΜΗΧΑΝΙΚΩΝ ΤΟΜΕΑΣ ΥΔΡΑΥΛΙΚΗΣ ΚΑΙ ΠΕΡΙΒΑΛΛΟΝΤΙΚΗΣ ΤΕΧΝΙΚΗΣ. Ειδική διάλεξη 2: Εισαγωγή στον κώδικα της εργασίας

Review Test 3. MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Inverse trigonometric functions & General Solution of Trigonometric Equations

1. Αφετηρία από στάση χωρίς κριτή (self start όπου πινακίδα εκκίνησης) 5 λεπτά µετά την αφετηρία σας από το TC1B KALO LIVADI OUT

Numerical Methods for Civil Engineers. Lecture 10 Ordinary Differential Equations. Ordinary Differential Equations. d x dx.

Ordinal Arithmetic: Addition, Multiplication, Exponentiation and Limit

Potential Dividers. 46 minutes. 46 marks. Page 1 of 11

Aquinas College. Edexcel Mathematical formulae and statistics tables DO NOT WRITE ON THIS BOOKLET

ω ω ω ω ω ω+2 ω ω+2 + ω ω ω ω+2 + ω ω+1 ω ω+2 2 ω ω ω ω ω ω ω ω+1 ω ω2 ω ω2 + ω ω ω2 + ω ω ω ω2 + ω ω+1 ω ω2 + ω ω+1 + ω ω ω ω2 + ω

Reminders: linear functions

Chapter 6: Systems of Linear Differential. be continuous functions on the interval

Mean bond enthalpy Standard enthalpy of formation Bond N H N N N N H O O O

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006

Solutions to Exercise Sheet 5

Math221: HW# 1 solutions

4.6 Autoregressive Moving Average Model ARMA(1,1)

ΕΙΣΑΓΩΓΗ ΣΤΗ ΣΤΑΤΙΣΤΙΚΗ ΑΝΑΛΥΣΗ

2. THEORY OF EQUATIONS. PREVIOUS EAMCET Bits.

Instruction Execution Times

Τ.Ε.Ι. ΔΥΤΙΚΗΣ ΜΑΚΕΔΟΝΙΑΣ ΠΑΡΑΡΤΗΜΑ ΚΑΣΤΟΡΙΑΣ ΤΜΗΜΑ ΔΗΜΟΣΙΩΝ ΣΧΕΣΕΩΝ & ΕΠΙΚΟΙΝΩΝΙΑΣ

9.09. # 1. Area inside the oval limaçon r = cos θ. To graph, start with θ = 0 so r = 6. Compute dr

Επιστημονικοί Υπολογισμοί - Μέρος ΙΙΙ: Παράλληλοι Υπολογισμοί

forms This gives Remark 1. How to remember the above formulas: Substituting these into the equation we obtain with

ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ. Ψηφιακή Οικονομία. Διάλεξη 10η: Basics of Game Theory part 2 Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών

Strain gauge and rosettes

Επιστημονικοί Υπολογισμοί - Μέρος ΙΙΙ: Παράλληλοι Υπολογισμοί

PARTIAL NOTES for 6.1 Trigonometric Identities

derivation of the Laplacian from rectangular to spherical coordinates

2. Let H 1 and H 2 be Hilbert spaces and let T : H 1 H 2 be a bounded linear operator. Prove that [T (H 1 )] = N (T ). (6p)

Example of the Baum-Welch Algorithm

Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in

ECE 468: Digital Image Processing. Lecture 8

Fourier Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

[1] P Q. Fig. 3.1

Abstract Storage Devices

Physical DB Design. B-Trees Index files can become quite large for large main files Indices on index files are possible.

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:

ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΥΠΡΟΥ ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ. ΕΠΛ342: Βάσεις Δεδομένων. Χειμερινό Εξάμηνο Φροντιστήριο 10 ΛΥΣΕΙΣ. Επερωτήσεις SQL

MATH423 String Theory Solutions 4. = 0 τ = f(s). (1) dτ ds = dxµ dτ f (s) (2) dτ 2 [f (s)] 2 + dxµ. dτ f (s) (3)

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 24/3/2007

Practice Exam 2. Conceptual Questions. 1. State a Basic identity and then verify it. (a) Identity: Solution: One identity is csc(θ) = 1

Structural and Multidisciplinary Optimization. P. Duysinx, P. Tossings*

Section 9.2 Polar Equations and Graphs

ΚΒΑΝΤΙΚΟΙ ΥΠΟΛΟΓΙΣΤΕΣ

Transcript:

EM 361: Παράλληλοι Υπολογισµοί Χαρµανδάρης Βαγγέλης, Τµήµα Εφαρµοσµένων Μαθηµατικών Πανεπιστήµιο Κρήτης, Χειµερινό Εξάµηνο 2010/11 Projects Πρόβληµα Ν-σωµατιδίων. Image Processing (Fast Fourier Transform). Mandelbrot Set. Multi-colored Algorithms. Genetic Algorithms

Πρόβληµα Ν-Σωµατιδίων -- Finding positions and velocities of bodies in space subject to forces from other bodies, using Newtonian laws of physics. -- Simulate movement of bodies in time. Gravitational N-Body Problem Equations Gravitational force between two bodies of masses m a and m b is: G is the gravitational constant and r the distance between the bodies. Subject to forces, body accelerates according to Newton s 2nd law: F = ma m is mass of the body, F is force it experiences, and a the resultant acceleration. ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 2

Πρόβληµα Ν-Σωµατιδίων -- Assume a system with N bodies. Procedure: a) Initialization of the system (initial iti coordinates, velocities) b) Calculate forces. c) Numerical solution of PDEs. d) Statistics (store trajectories, calculate properties,..etc.) -- Various methods for the numerical solution of PDEs. Example: ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 3 4.26

Πρόβληµα Ν-Σωµατιδίων -- Parallel implementation Different Algorithms: A) Direct algorithm: divide number of particles with number of processors, i.e. N/P bodies per processor. The sequential algorithm is an O(N2) algorithm (for one iteration) ti as each of the N bodies is influenced by each of the other N - 1 bodies. Not feasible to use this direct algorithm for most interesting N-body problems where N is very large. ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 4 4.26

Πρόβληµα Ν-Σωµατιδίων -- Parallel implementation B) Barnes-Hut Algorithm: Recursive division of 2-dimensional space. ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 5 4.26

Image Processing Stored images: 2D array of pixels (picture elements) Perform various operations on images: Smoothing (mean value): ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 6

Image Processing Serial Sequential code: Parallel Code: ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 7

Image Processing Perform various operations on images: ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 8

Image Processing Perform various operations on images: Edge detection: ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 9

Image Processing Perform various operations on images: ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 10

Image Processing Perform various operations on images 2 nd Order Derivatives: Laplace Operator ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 11

Image Processing ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 12

Mandelbrot Set Set of points in a complex plane that are quasi-stable (will increase and decrease, but not exceed some limit) when computed by iterating the function where z k +1 is the (k +1)th iteration of the complex number z = a + bi and c is a complex number giving position of point in the complex plane. The initial value for z is zero. Iterations continued until magnitude of z is greater than 2 or number of iterations reaches arbitrary limit. Magnitude of z is the length of the vector given by ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 13

Mandelbrot Set ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 14

Mandelbrot Set -- Parallel implementation Different Algorithms: A) Static Task Assignment: Simply divide the region in to fixed number of parts, each computed by a separate processor. Not very successful because different regions require different numbers of iterations and time. B) Dynamic Task Assignment: Have processor request regions after computing previous regions ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 15

Mandelbrot Set Dynamic Task Assignment Work Pool/Processor Farms ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 16

Multi-Coloured, Multi-Grid Algorithms Πρόβληµα Μοντέλο (συνοριακών τιµών) :Laplace+επιπλέον όρος: 2 2 2 U( x, y) U( x, y) U( x, y) + + a = 2 2 x y x y f ( x, y) 1 h = xi = i* h yi = j * h i j = 01 N + 1 N + 1 ιαµέριση:, *, *,, 0,1,..., 1 2 U ( xy, ) 1 2 x 2 h 2 U ( xy, ) 1 2 2 y h Προσέγγιση παραγώγων: ( Ui+ 1, j + Ui 1, j 2Ui, j) ( Ui, j+ 1 + Ui, j 1 2Ui, j) 2 U ( x, y) 1 U U 2 xy h y y i + 1, j i 1, j 2 U( x, y) 1 xy 4h 2 ( Ui+ 1, j+ 1 Ui 1, j+ 1 Ui+ 1, j 1 + Ui 1, j 1 ) ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 17 6.64

Multi-Coloured, Multi-Grid Algorithms Πρόβληµα Συνοριακών Τιµών - Laplace + επιπλέον όρος: a Ui 1, j + Ui 1, j + Ui, j 1 + Ui, j 1 4Ui, j + Ui 1, j 1 Ui 1, j 1 Ui 1, j 1 + Ui 1, j 1 h fi, j = 0 4 2 ( + + ) ( + + + + ) Παράλληλη Εφαρµογή της SOR: Multi-colored Αλγόριθµος Four-color ordering: το κεντρικό σηµείο έχει διαφορετικό «χρώµα» από όλα τα γειτονικά σηµεία µε τα οποία συνδέεται, δηλαδή από τα οποία παίρνει πληροφορία. ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 18 6.64

Multi-Coloured, Multi-Grid Algorithms Multi-Grid Αλγόριθµοι: ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 19 6.64

Genetic Algorithms Searching and Optimization Algorithms: A search technique used in computing to find exact or approximate solutions to optimization and search problems. Genetic algorithms are a particular class of evolutionary algorithms (EA) that use techniques inspired by evolutionary biology such as inheritance, mutation, selection, and crossover. ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 20 6.63

Genetic Algorithms Outline of the Basic Genetic Algorithm [Start] Generate random population of n chromosomes (suitable solutions for the problem) [Fitness] Evaluate the fitness f(x) of each chromosome x in the population [New population] Create a new population by repeating following steps until the new population lti is complete lt [Selection] Select two parent chromosomes from a population according to their fitness (the better fitness, the bigger chance to be selected) [Crossover] With a crossover probability cross over the parents to form a new offspring (children). If no crossover was performed, offspring is an exact copy of parents. [Mutation] With a mutation probability mutate new offspring at each locus (position in chromosome). [Accepting] Place new offspring in a new population [Replace] Use new generated population for a further run of algorithm [Test] If the end condition is satisfied, stop, and return the best solution in current population [Loop] Go to step 2 ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 21 6.64

Βιβλιογραφία Designing and Building Parallel Programs, Ian Foster, Addison-Wesley 1994. Parallel Computing: Theory and Practice, M. J. Quinn, McGraw-Hill, 1994. Parallel Programming: Techniques amd applications Using Networked Workstations and Parallel Computers,, B. Wilkinson, M. Allen, Prentice-Hall, 1999. http://www.epcc.ed.ac.uk/library/documentation/training/: On-line courses include MPI, HPF, Mesh Generation, Introduction to Computational Science, HPC in Business. ΕΜ 361: Παράλληλοι Υπολογισµοί 2010/11, Κεφάλαιο 7 22