Procedure BinarySearch
.............Repeat
...................Midpoint = First + Last / 2
........................If ItemSought = MidPoint
....................................Then ItemFound = True
.........................Else
....................................If MidPoint > ItemSought
....................................Then High = Midpoint - 1
....................................Else Low = Midpoint + 1
.........................End If
End.
Comments
No comments have yet been made