Algoritma Merge Sort

Angka Sebelum Ditukar 12, 10, 19, 18, 5, 3, 8, 15
Proses Sort {12} : {10} => {10, 12}
{19} : {18} => {18, 19}
{10, 12} : {18, 19} => {10, 12, 18, 19}
{5} : {3} => {3, 5}
{8} : {15} => {8, 15}
{3, 5} : {8, 15} => {3, 5, 8, 15}
{10, 12, 18, 19} : {3, 5, 8, 15} => {3, 5, 8, 10, 12, 15, 18, 19}
Note : angka yg dicoba akan berubah setiap Anda melakukan refresh halaman