Discussion 4: Sorter Architecture and Analysis

Sanjay Rajopadhye

This is a paper-and-pencil, analytical assignment. You should work in your discussion group and reach a consensus and post the results of your consensus. The due date is midnight, Thursday, March 31.

Problem Statement

Recall the architecture of a P-processor sorter, used to sort N inputs. First consider the case when P=N, and then extend your analysis to the case for N=kP, where k is some integer (this case will require k passes through the array). Some questions to think of:

Second Problem

Consider an Alphabets program, with two varaibles, X and Y. After choosing a parallelization (schedule and processor allocation) and the subsequent CoB, the domains for the variables are:
float X {i,j | 0 <= j; i-j < N; 2j<=i}
float Y {i,j | 0 <= i <= j < N}
What is the loop structure that would be generated when these two domains are visited in lexicographical order. You don't need to come up with an algorithm to do this in the general case (that's a pretty hard problem), as long as you are able to convince yourself and your discussion partners that the code is correct.



Sanjay Rajopadhye 2007-01-23