全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Binary search?

Definition 28.3 Primary & Middle School Computer Science · 第 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.
在原文中阅读 →