The binary search for "version C" is extracted as follows:二分查找“版本C”摘录如下:
The vector V={2, 3, 5, 7, 11, 13, 17, 19} is used to find the target element 16 in V. The elements that have been compared with the target element in the whole process are:向量V={2, 3, 5, 7, 11, 13, 17, 19},在V中使用它查找目标元素16,整个过程中与目标元素发生过比较的元素依次为:
A11, 17, 13
B7, 3, 17
C13, 11, 17
D5, 7, 11