Tell me more ×
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It's 100% free, no registration required.

I'm not sure how I would perform a bitonic sort on a two-dimensional hypercube with 12 numbers.

Suppose I had the input 2 28 6 34 9 7 15 23 4 10 12 25.

Since it's a two-dimensional hypercube, I assumed that there would be 4 processors. So I distributed the input amongst the processors like this:

2
28
6

34
9
7
15
23
4

10
12
25

I tried to follow the steps starting on page 12 of this document. The problem is, in their case they have the same amount of processors $(p)$ as the items to be sorted ($n$). In my case, $n > p$, so each processor has more than one element, 3 in this case.

How can I perform the bitonic sort in this scenario?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.