• No results found

Parallel Algorithms, repeated examination (WISM459) November 23, 2005

N/A
N/A
Protected

Academic year: 2021

Share "Parallel Algorithms, repeated examination (WISM459) November 23, 2005"

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 2005/2006, the course WISM459 was given by Rob H. Bisseling.

Parallel Algorithms, repeated examination (WISM459) November 23, 2005

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

Question 1

Explain the structure of a BSP algorithm.

Question 2

Give an example of a 49-relation that is not a full h-relation.

Question 3

The Euclidean norm of a vector x is given by kxk = kxk2 = (Pn−1

i=0 x2i)1/2. Give an efficient BSP algorithm for processor P (s) (in the notation we learned) for the computation of the norm.

Analyse its BSP cost. You are free to choose the input distribution. The output must become available on all processors.

Question 4

Let p, n be powers of two, with 2 ≤ p ≤ n. Define a permutation σ by σ(i) =

 i/2 if i even

n/2 + (i − 1)/2 if i odd 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.

Question 5

Give a BSP algorithm for processor P (s) (in the notation we learned) for the computation of the output vector y defined by yi = xi−1+ xi + xi+1, for 0 ≤ i < n, starting from a given input vector x. Here, we define for convenience x−1= xn= 0. Analyse the BSP cost. The length of the vectors is n. Assume both vectors are block distributed and that n mod p = 0.

Referenties

GERELATEERDE DOCUMENTEN

Institute of Mathematics, Faculty of Mathematics and Computer Science, UU.. Made available in electronic form by the T BC

Made available in electronic form by the T BC of A–Eskwadraat In 2006/2007, the course WISM464 was given by

Made available in electronic form by the T BC of A−Eskwadraat In 2004/2005, the course WISB 312 was given by Dr.. (Hint: use the fact that Lebesgue measure is

Made available in electronic form by the T BC of A–Eskwadraat In 2003/2004, the course WISB312 was given

In elektronische vorm beschikbaar gemaakt door de T BC van A−Eskwadraat.. Het college WISB251 werd in 2005/2006 gegeven

Made available in electronic form by the T BC of A–Eskwadraat In 2008/2009, the course NS-TP526M was given by Dr.S.Vandoren.. String Theory (NS-TP526M)

Made available in electronic form by the T BC of A–Eskwadraat In 2007/2008, the course WISB341 was given

Made available in electronic form by the T BC of A–Eskwadraat In 2008-2009, the course WISB324 was given by