• No results found

Parallel Algorithms (WISM459) November 22, 2006

N/A
N/A
Protected

Academic year: 2021

Share "Parallel Algorithms (WISM459) November 22, 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) November 22, 2006

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

Question 1

Define the term h-relation.

Question 2

A vector of length 150 has been distributed over 12 processors of a parallel computer by a block distribution with varying block length. P (0) has the first 42 vector components; P (1) has the next 39; processors P (2) to P (11) have 23, 20, 9, 5, 4, 2, 2, 2, 1, 1 components, respectively. The data are redistributed into the cyclic distribution. What is the exact BSP cost of this redistribution?

Question 3

The 1-norm of a vector x is given by kxk = kxk1 =Pn−1

i=0 |xi|. 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 k ≥ 1 be an odd integer. Assume the number of processors is p ≥ 2. What is the exact communication cost of swapping all pairs (xi, x(i+k) mod n) with i even for a cyclically distributed vector x of length n, where n is even?

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 yj =Pj

i=0(−1)ixi, for 0 ≤ j < 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

Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of

The star version prints the number in scientific notation. The default setting for the unit

lVI brochure het licht doen zien. Samensteller is drs. Deze studie van het Kaski vraagt alle aandacht omdat het onderwerp nog steeds de gemoederen bezig houdt.

The average length of time spent in prison waiting for treatment and the period of special leave increased in the researched period (influx cohort 1998 compared to influx

Zijn conclusie: de eerste jaren na aanleg func- tioneren de geulen goed maar na twintig jaar is er in de nazomer geen stromend water meer en zijn de meer kritische reofiele

The second generation larval and adult peak occurred late November to early December, whether there was new flush or not, as young fruit could support the S. aurantii

a) SedÏ (geen semantische en geen syntactische relatie); in deze. groep verryachten we een slecht resultaat vanwege het

Key words: multilinear algebra, higher-order tensors, higher-order statistics, independent component analysis, singular value decomposition, source separation, rank reduction..