buble sort
NPM:1011904 , modulus 4= 40,30,60,30,4,16
i=o
j=5 -> f: 40,30,60,30,4,16
j=4 -> T: 40,30,60,4,30,16
j=3 -> T: 40,30,4,60,30,16
j=2 -> T: 40,4,30,60,30,16
j=1 -> T: 4,40,30,60,30,16
i=1
j=5 -> T: 4,40,30,60,16,30
j=4 -> T: 4,40,30,16,60,30
j=3 -> T: 4,40,16,30,60,30
j=2 -> T: 4,16,40,30,60,30
j=1 -> F: 4,16,40,30,60,30
i=2
j=5 -> T: 4,16,40,30,30,60
j=4 -> f: 4,16,40,30,30,60
i=3
j=3 -> T: 4,16,30,40,30,60
j=2 -> f: 4,16,30,40,30,60
i=4
j=4 -> T: 4,16,30,30,40,60
j=3 -> F: 4,16,30,30,40,60
i=o
j=5 -> f: 40,30,60,30,4,16
j=4 -> T: 40,30,60,4,30,16
j=3 -> T: 40,30,4,60,30,16
j=2 -> T: 40,4,30,60,30,16
j=1 -> T: 4,40,30,60,30,16
i=1
j=5 -> T: 4,40,30,60,16,30
j=4 -> T: 4,40,30,16,60,30
j=3 -> T: 4,40,16,30,60,30
j=2 -> T: 4,16,40,30,60,30
j=1 -> F: 4,16,40,30,60,30
i=2
j=5 -> T: 4,16,40,30,30,60
j=4 -> f: 4,16,40,30,30,60
i=3
j=3 -> T: 4,16,30,40,30,60
j=2 -> f: 4,16,30,40,30,60
i=4
j=4 -> T: 4,16,30,30,40,60
j=3 -> F: 4,16,30,30,40,60
0 komentar:
Posting Komentar