232k views
0 votes
Given list: ( 3, 14, 16, 25, 47, 60, 64, 73, 95 ) Which list elements will be compared to key 25 using binary search? Enter elements in the order checked.

User Anson Wong
by
7.6k points

1 Answer

0 votes
In binary search, we compare the middle element of the list to the key. Based on the given list, the elements that will be compared to the key 25 using binary search are: 47, 16, 25.
User Tom Bom
by
7.5k points

No related questions found