• No results found

Parallel Algorithms (WISM459) October 11, 2006

N/A
N/A
Protected

Academic year: 2021

Share "Parallel Algorithms (WISM459) October 11, 2006"

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

Parallel Algorithms (WISM459) October 11, 2006

Each of the five questions is worth 10 points. Total time 45 minutes. Note that this exam has 2 pages!

Question 1

Explain the architecture of a BSP computer.

Question 2

50 processors of a parallel computer are matched in pairs (P (s), P (s + 1)), with s even. Processor P (s) sends s data words to processor P (s + 1), for even s. What is the value h of the h-relation defined by this communication pattern?

Question 3

Let x and y be given vectors of length n which are distributed over p processors, with n mod p = 0;

x is distributed by the cyclic distribution, and y by the block distribution. Give an efficient BSP algorithm for processor P (s) (in the notation we learned) for the computation of the vector z = x + y. Analyse its BSP cost. You are free to choose the output distribution.

Question 4

Let p, n be integers, with 2 ≤ p ≤ n. Define a permutation σ by σ(i) = n − 1 − i, 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

We want to evaluate a polynomial

f (x) =

n−1

X

i=0

aixi

in parallel using p processors. Here, x is a given real number and a0, . . . , an−1 are given real coefficients. Sequentially, this is usually done by applying Horner’s rule:

f (x) = a0+ x(a1+ x(a2+ · · · + x(an−2+ x(an−1)) · · · )).

Assume that x is known at P (0), and that the coefficients are already distributed by the block distribution over p processors, where n mod p = 0. Give an efficient BSP algorithm for processor P (s) for the computation of f (x). The output f (x) should become known at P (0). Analyse the BSP cost.

Referenties

GERELATEERDE DOCUMENTEN

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

Made available in electronic form by the T BC of A–Eskwadraat In 2006/2007, the course WISB312 was given by dr. Show that B is a σ-algebra if and only if B is an algebra and

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 BCof A−Eskwadraat The course MAATa was given in 2003/2004

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

Analyse the BSP cost; if necessary, make additional assumptions in

A vector of length 150 has been distributed over 12 processors of a parallel computer by a block distribution with varying block length.. The data are redistributed into the

Made available in electronic form by the T BC of A−Eskwadraat In 2005/2006, the course WISM459 was given by Rob