I think A) 18 is the right answer.
Answer:
yea that makes sense
It literally tells you how to do it
Is it some kind of proof tho? Like the math makes sense but like I've never heard of this thing.
Answer:
Three Times.
Step-by-step explanation:
First and foremost a binary search requires that the array be sorted in ascending or descending order.
After the initial step the search goes to the middle most value
i.e.
will be the second 14, which is the first iteration.
Since 14 is less than 19 the search will eliminate the lower half of the including 14, and will iterate again through the array:
The array will go to the middle most value which is 18, second iteration. Since 18 is less than 19, the program will eliminate the lower half and be left with two values i.e. .
The search will run once i.e. third iteration, and will return key value found.
The answer is 108 .......
Answer:
-5.
Step-by-step explanation:
f(n) = 5n + 6
Just plug in -11/5 for n:
f(-11/5) = 5 (-11/5) + 6
= -11 + 6
= -5.