Professional Documents
Culture Documents
NPM : 50407697
Kelas : 4IA12
==============================================================================
Jawab :
Odd-Even Transposition
n = [S] = 7
n/2 = 3.5 = 4
P1 P2 P3 P4 P5 P6 P7
11 3 17 20 19 14 8
(1) 3 11 17 20 14 19 8
(2) 3 11 17 14 20 8 19
(1) 3 11 14 17 8 20 19
(2) 3 11 14 8 17 19 20
(1) 3 11 8 14 17 19 20
(2) 3 8 11 14 17 19 20
(1) 3 8 11 14 17 19 20
(2) 3 8 11 14 17 19 20
CRCW Sorting
S P(1,1) P(1,2) P(1,3) P(1,4) P(1,5) P(1,6) P(1,7) C S
11 (11,11) (11,3) (11,17) (11,20) (11,19) (11,14) (11,8)
0 1 0 0 0 0 1 2 3