08.05.2013 Views

Unidad II Fundamentos del Análisis de Algoritmos

Unidad II Fundamentos del Análisis de Algoritmos

Unidad II Fundamentos del Análisis de Algoritmos

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.

<strong>Algoritmos</strong> y Estructuras <strong>de</strong> Datos <strong>Unidad</strong> <strong>II</strong> <strong>Fundamentos</strong> <strong><strong>de</strong>l</strong> <strong>Análisis</strong> <strong>de</strong> <strong>Algoritmos</strong><br />

2.6.1 Ejemplo<br />

Dado el siguiente algoritmo que suma los elementos <strong>de</strong> una matriz cuadrada <strong>de</strong> tamaño n.<br />

suma=0;<br />

i=0;<br />

while (i

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

Saved successfully!

Ooh no, something went wrong!