6. Definition of Algorithm: : a procedure for solving a mathematical problem (as of finding the greatest common divisor) in a finite number of steps that frequently involves repetition of an operation; broadly : a step-by-step procedure for solving a problem or accomplishing some end especially by a computer (Merriam-Webster) Algoritma
22. Flow Chart (Binary Search) start X = Input (angka yg dicari) bandingkan Atas = akhir Bawah = awal Cocokan niai X dengan nilai Tengah Atas = Tengah - 1 Bawah = Tengah + 1 Tengah = (Atas + Bawah) / 2 Selesai X < Tengah X > Tengah X = Tengah
23.
24. Bubble Sort 1 5 3 4 2 1 5 3 4 2 Mana yg lebih ringan? Tukar angka yg ringan ke kanan 5 1 3 4 2 5 3 1 4 2 5 3 4 1 2 5 3 4 2 1 5 3 4 2 1 Tidak berubah Karena 3 lebih ringan dari 5 0 1 2 3 4 index Bagian yg hijau Tidak akan di check Lagi Karena sudah urut