• No results found

Parallel Algorithms, midterm examination (WISM459) October 19, 2005

N/A
N/A
Protected

Academic year: 2021

Share "Parallel Algorithms, midterm examination (WISM459) October 19, 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, midterm examination (WISM459) October 19, 2005

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

Question 1

Explain the BSP parameters p, r, g, l.

Question 2

What is the value h of the h-relation defined by the following table?

P (0) P (1) P (2) P (3)

P (0) 19 10

P (1) 19 5 6

P (2) 21 10

P (3) 9 5 6

In the table, the value in row s and column t is the number of data words that processor P (s) sends to processor P (t), for 0 ≤ s, t < 4.

Question 3

Explain the difference between local and global indices. Use the cyclic distribution of a vector for your explanation.

Question 4

Let k ≥ 0 be an integer. Assume p ≥ 2. What is the communication cost of shifting a cyclically distributed vector x k places to the right, i.e., assigning y(i+k) mod n = 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+ xn−1−i, for 0 ≤ i < n, starting from a given input vector x.

The length of the vectors is n. Assume both vectors are block distributed and that n mod p = 0.

Referenties

GERELATEERDE DOCUMENTEN

Made available in electronic form by the T BC of A−Eskwadraat In 2005/2006, the course NS-353B was given by P.J..

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 2004/2005, the course WISB312 was given by Karma Dajani.. Measure and Integration, re-exam (WISB312) September

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

(a) [5 pt] Give an efficient BSP algorithm with 2 supersteps, in the notation we have learned for processor P (s, t), 0 ≤ s, t &lt; M , for the computation of the matrix C = AB,

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