-
-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add es-ES translation to search/binary-search (#893)
- Loading branch information
1 parent
351a63a
commit 471e6d0
Showing
3 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Búsqueda binaria | ||
|
||
_Lea esto en otros idiomas:_ | ||
[English](README.md) | ||
[Português brasileiro](README.pt-BR.md). | ||
|
||
En informática, la búsqueda binaria, también conocida como búsqueda de medio intervalo | ||
búsqueda, búsqueda logarítmica, o corte binario, es un algoritmo de búsqueda | ||
que encuentra la posición de un valor objetivo dentro de una matriz | ||
ordenada. La búsqueda binaria compara el valor objetivo con el elemento central | ||
de la matriz; si son desiguales, se elimina la mitad en la que | ||
la mitad en la que no puede estar el objetivo se elimina y la búsqueda continúa | ||
en la mitad restante hasta que tenga éxito. Si la búsqueda | ||
termina con la mitad restante vacía, el objetivo no está | ||
en la matriz. | ||
|
||
![Búsqueda binaria](https://upload.wikimedia.org/wikipedia/commons/8/83/Binary_Search_Depiction.svg) | ||
|
||
## Complejidad | ||
|
||
**Complejidad de tiempo**: `O(log(n))` - ya que dividimos el área de búsqueda en dos para cada | ||
siguiente iteración. | ||
|
||
## Referencias | ||
|
||
- [Wikipedia](https://en.wikipedia.org/wiki/Binary_search_algorithm) | ||
- [YouTube](https://www.youtube.com/watch?v=P3YID7liBug&index=29&list=PLLXdhg_r2hKA7DPDsunoDZ-Z769jWn4R8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters