Ask Question
2 November, 07:58

Which element would the search element be compared to first, if abinary search were used on the list above?

4

35

44

98

+2
Answers (1)
  1. 2 November, 11:43
    0
    35

    Explanation:

    Binary search is more efficient than linear search, time complexity of binary is 0 (logn) where as linear's 0 (n). In binary search we search from the middle of the array, whereas in linear we start with index 0 until the last.

    4

    35

    44

    98

    List contains 4 elements, for finding the middle element we will divide by 2.

    4/2=2 so at the index 2 - 35 is present, we will start checking from 35.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which element would the search element be compared to first, if abinary search were used on the list above? 4 35 44 98 ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers