Sorting Algos in Parallel System
Sorting Algos in Parallel System
Parallel Systems
Parallel Systems
• It has 2 phases :
Even-odd exchange
9
Parallel odd even transposition
P0 P1 P2 P3
13 7 12 8 5 4 6 1 3 9 2 10
Local sort
7 12 13 4 5 8 1 3 6 2 9 10
O-E
4 5 7 8 12 13 1 2 3 6 9 10
E-O
4 5 7 1 2 3 8 12 13 6 9 10
O-E
1 2 3 4 5 7 6 8 9 10 12 13
E-O
SORTED: 1 2 3 4 5 6 7 8 9 10 12 13
9
Properties
• The parallel run time of the formulation is
• The efficiency is :
• All of the Li lists are merged and all of the Ui lists are
merged separately.
Parallelizing Quick Sort