查找算法——二分查找【代碼實現】

僞代碼 遞歸 // initially called with low = 0, high = N-1 BinarySearch(A[0..N-1], value, low, high) { // invariants: value > A[i] for all i < low value < A[i] for all i > high
相關文章
相關標籤/搜索