subject

Consider the following technique for performing the compare-split operation. Let x1 , x2 , ..., xk be the elements stored at process Pi in increasing order, and let y1 , y2 , ..., yk be the elements stored at process Pj in decreasing order. Process Pi sends x1 to Pj . Process Pj compares x1 with y1 and then sends the larger element back to process Pi and keeps the smaller element for itself. The same procedure is repeated for pairs (x 2 , y2 ), (x3 , y3 ), ..., (xk , yk ). If for any pair (xl , yl ) for 1ā‰¤ lā‰¤ k , xl yl , then no more exchanges are needed. Finally, each process sorts its elements.

Required:
a. Show that this method correctly performs a compare-split operation.
b. Analyze its run time, and compare the relative merits of this method to those of the method presented in the text.
c. Is this method better suited for MIMD or SIMD parallel computers?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:30
Which group on the home tab allows you to add shapes to a powerpoint slide?
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a.integers.b.floating-point numbers. c.strings.d.boolean
Answers: 1
You know the right answer?
Consider the following technique for performing the compare-split operation. Let x1 , x2 , ..., xk b...
Questions
question
World Languages, 04.02.2020 13:04
question
Social Studies, 04.02.2020 13:43
Questions on the website: 13722363