Pengurutan dengan menggunakan metode BUBLE SORT

NPM : 10111429
Tipe 5 : 43,42,15,13,23,70

i=0

j=5 -> F: 43,42,15,13,23,70
j=4 -> T: 43,42,15,23,13,70
j=3 -> T: 43,42,23,15,13,70
j=2 -> T: 43,23,42,15,13,70
j=1 -> T: 23,43,42,15,13,70

i=1

j=5 -> T: 23,43,42,13,15,70
j=4 -> F: 23,43,13,42,15,70
j=3 -> F: 23,13,43,42,15,70
j=2 -> F: 13,23,43,42,15,70

i=2

j=5 -> F:13,23,43,15,42,70
j=4 -> F: 13,23,15,43,42,70
j=3 -> F: 13,15,23,43,42,70

i=3

j=5 -> F: 13,15,23,42,43,70
j=4 -> F: 13,15,23,42,43,70

i=4

j=5 -> F: 13,15,23,42,43,70

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: