複選題
3.Which of the following about the binary search algorithm is TRUE?
(A) It is not possible for a binary search to find the value 2 in the array of [1, 3, 7, 9, 4, 2, 11]
(B) The maximum number of comparisons required to perform a binary search of a 1000 element array is 9
(C) The best-case time complexity of a binary search is O(log N), with N the number of elements in an array
(D) An iterative implementation of the binary search has a space complexity of O(N), with N the number of elements in an array

答案:登入後查看
統計: A(2), B(3), C(2), D(1), E(0) #2847366

詳解 (共 2 筆)

#6002125
ANS: (A)binary searc...
(共 136 字,隱藏中)
前往觀看
0
0
#5959145
哪一個關於二分搜尋演算法的敘述是真實的?...
(共 660 字,隱藏中)
前往觀看
0
0