Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Binary search?

Definition 28.3 Primary & Middle School Computer Science · Bab 28 — Searching and Sorting

A binary search looks for an item in a sorted list by comparing it with the middle item, then going on in the half where it must be, and halving again until it is found or no item is left.

Binary search for 77 among 16 sorted numbers: each bracket is the part still searched, from low to high, and the red dot the middle item compared. Four steps.
Binary search for 77 among 16 sorted numbers: each bracket is the part still searched, from low to high, and the red dot the middle item compared. Four steps.
Baca dalam konteks →