• No results found

Midterm exam Parallel Algorithms (WISM459) October 17, 2007

N/A
N/A
Protected

Academic year: 2021

Share "Midterm exam Parallel Algorithms (WISM459) October 17, 2007"

Copied!
1
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Department of Mathematics, Faculty of Science, UU.

Made available in electronic form by the TBC of A–Eskwadraat

In 2007-2008, the course WISM459 was given by Prof. Dr. R.H. Bisseling.

Midterm exam Parallel Algorithms (WISM459) October 17, 2007

Each of the five questions is worth 10 points. Total time is 45 minutes.

Question 1

What is a BSP superstep?

Question 2

Give the syntax of the bsp put primitive from the BSPlib communications library. Explain the use of the parameters.

Question 3

Let x be a given vector of length n, which is distributed by the cyclic distributions over p processors, with n mod p = 0. Give an efficient BSP algorithm for processor P (s) (in the notation we learned) for the computation of the sumPn−1

i=0 x4i. On output, every processor has to know the result. Analyse the BSP cost.

Question 4

Let p, n be positive integers, with n mod p = 0. Define a permutation σ by σ(i) = (i + 51) mod n, for 0 ≤ i < n. What is the exact communication cost of permuting a block distributed vector x by σ, i.e., assigning yσ(i)= xi? The length of the input and output vectors is n. The number of processors is p.

Question 5

Let x be an array of odd length n = 2k + 1 containing numerical values xi. Assume that all values are different. We want to find the median of the values, i.e., the array value xj such that k array values are higher than xj and k are lower. Our aim is to do this in parallel, using the block distribution.

On output, every processor has to know the median. Give an efficient BSP algorithm for processor P (s) for the median computation. Analyse the BSP cost; if necessary, make additional assumptions in your analysis.

Referenties

GERELATEERDE DOCUMENTEN

De specificaties voor FCR staan niet in een bijlage, maar in de code wordt verwezen naar de GL SO, terwijl voor de andere producten wordt verwezen naar bijlage 8 tot en met 10.

Het college WISB212 werd in 2006-2007 gegeven door Dr.J.A.C.Kolk.. Analyse in Meer Variabelen

If you write readable, unambiguous, and technically correct, you get one point for free (in particular, do not write “line” if you mean “line segment”, do not write “wedge”

(c) [3 pt] Analyse the computation cost of the matrix updates in the parallel LU decomposition algorithm for the square block distri- bution.. (d) [2 pt] What is the maximum speedup

Bisseling, Utrecht University October 24, 2012.. Each of the four questions is worth

Give two different examples of a 10-relation with a total communica- tion volume (i.e., number of data words communicated) of 40 for 4 processors.. You may choose a

(a) (1.5) Given the fact that spin waves obey the Planck distribution func- tion, determine their contribution to the heat capacity at low temper- atures and in three dimensions..

• State the cellular aproximation theorem, and use it to prove that the inclusion of the (n + 1)- skeleton of some space into the whole space induces an isomorphism of n-th