|
2 | 2 |
|
3 | 3 | _Read this in other languages:_
|
4 | 4 | [Português brasileiro](README.pt-BR.md).
|
| 5 | +[Español](README.es-ES.md). |
5 | 6 |
|
6 |
| -In computer science, binary search, also known as half-interval |
7 |
| -search, logarithmic search, or binary chop, is a search algorithm |
8 |
| -that finds the position of a target value within a sorted |
9 |
| -array. Binary search compares the target value to the middle |
10 |
| -element of the array; if they are unequal, the half in which |
11 |
| -the target cannot lie is eliminated and the search continues |
12 |
| -on the remaining half until it is successful. If the search |
13 |
| -ends with the remaining half being empty, the target is not |
| 7 | +In computer science, binary search, also known as half-interval |
| 8 | +search, logarithmic search, or binary chop, is a search algorithm |
| 9 | +that finds the position of a target value within a sorted |
| 10 | +array. Binary search compares the target value to the middle |
| 11 | +element of the array; if they are unequal, the half in which |
| 12 | +the target cannot lie is eliminated and the search continues |
| 13 | +on the remaining half until it is successful. If the search |
| 14 | +ends with the remaining half being empty, the target is not |
14 | 15 | in the array.
|
15 | 16 |
|
16 | 17 | 
|
|
0 commit comments