06.05.2013 Views

presentación-PDF

presentación-PDF

presentación-PDF

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Log b n = k si b k =n<br />

Ejemplos de complejidad logarítmica<br />

BITS EN UN NÚMERO BINARIO.<br />

¿Cuántos bits son necesarios para representar N<br />

enteros consecutivos? Sabiendo que, un entero<br />

short de 16 bits representa 65.536 enteros (-<br />

32.768 a 32.767) = 2 16.<br />

Se puede afirmar que con K bits se representan<br />

aproximadamente 2 K enteros.<br />

2 K =N, por lo que se puede concluir que K=log 2 N,<br />

por lo tanto el número de bits mínimo es log N.<br />

Para representar N enteros consecutivos son<br />

necesarios log N bits.

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

Saved successfully!

Ooh no, something went wrong!