Binary Search - Example, Explanations, Algorithm & Code Part 2/2

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

cool, i could definitely implement this in a program that deals with searching for books... so long as i remember to keep it sorted

superknife
Автор

Very nice videos. One interesting thing is that you could also calculate mid by:
mid = (low + high) / 2, so this is equivalent to mid = (high - low) / 2 + low
I'm wondering which math property represents this. Anyone?

tivrfoa