What does an algorithm describe?
The NIST Dictionary of Algorithms and Data Structures defines an algorithm as a computable set of steps to achieve a desired result [1]. The word itself comes from al-Khowârizmî, a Persian author who wrote a book of arithmetic rules around 825 A.D. [1].
The important word is "computable". Every step has to be precise enough to carry out without judgement. A recipe is the usual comparison, but "a pinch of salt" would never survive in an algorithm.
How does binary search work in practice?
Binary search looks for a value in a sorted array by halving the search interval again and again. It starts with an interval covering the whole array. If the key is smaller than the middle item, the search narrows to the lower half; otherwise it moves to the upper half. It stops when the value turns up or the interval is empty [2]. Its running time is logarithmic [2], so a sorted list of a million items shrinks to a single candidate in about twenty halvings.
Python's standard library ships the same idea in the bisect module. Rather than hunting for a specific value, its functions find the point where a new item should go to keep a list in sorted order [3].
Is an algorithm the same as a program?
No. The algorithm is the method; a program is that method written in a particular language. bisect shows the difference well: the familiar halving idea has been adapted to return an insertion point instead of a match [3]. The same method can even cut the number of comparisons on an ordered linked list [2].