二、下圖是二元搜尋法(binary search)的一個示意圖。此例乃在一已排序 的陣列 A[0:11]中,找尋一個值為 Target=22 的元素的位置。一開始先 令 first←0,last←11。