06.05.2013 Views

ALGORITMOS DE BÚSQUEDA Y ORDENACIÓN

ALGORITMOS DE BÚSQUEDA Y ORDENACIÓN

ALGORITMOS DE BÚSQUEDA Y ORDENACIÓN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>BÚSQUEDA</strong> BINARIA<br />

• La complejidad algorítmica de la búsqueda<br />

binaria es:<br />

Si<br />

2 k ≤ N≤2 k+1<br />

entonces:<br />

T(n) ≤T(2k+1 )<br />

En el peor de los casos:<br />

T(n)≈O[logN]<br />

N ≤ 2 k+1 =22 k<br />

logN ≤ log2 k+1 =k+1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!