Quis Insertion Sort

1. Pertanyaan :

Kerjakan soal dibawah ini dengan menggunakan metode Insertion Sort

1) 15, 10, 7, 22, 17, 5, 12

2) 5, 2, 4, 6, 1, 3

2. Status :

Tercapai (100%).

3. Keterangan :

Saya sudah menyelesaikan tugas ini.

4. Bukti :

  1. Urutkan 15, 10, 7, 22, 17, 5, 12.
    Jawab :
    15   10   07   22   17   05   12
    10   15   07   22   17   05   12
    10   07   15   22   17   05   12
    07   10   15   22   17   05   12
    07   10   15   17   22   05   12
    07   10   15   17   05   22   12
    07   10   15   05   17   22   12
    07   10   05   15   17   22   12
    07   05   10   15   17   22   12
    05   07   10   15   17   22   12
    05   07   10   15   17   12   22
    05   07   10   15   12   17   22
    05   07   10   12   15   17   22   =>   Data setelah terurut.
  2. Urutkan 5, 2, 4, 6, 1, 3.
    Jawab :
    5   2   4   6   1   3
    2   5   4   6   1   3
    2   4   5   6   1   3
    2   4   5   1   6   3
    2   4   1   5   6   3
    2   1   4   5   6   3
    1   2   4   5   6   3
    1   2   4   5   3   6
    1   2   4   3   5   6
    1   2   3   4   5   6   =>   Data setelah terurut.

Advertisements

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