CONTENIDO DE LA LECCIÓN 18
CONTENIDO DE LA LECCIÓN 18
CONTENIDO DE LA LECCIÓN 18
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
MIGUEL Á. TOLEDO MARTÍNEZ<br />
Ejemplo <strong>18</strong>.29<br />
El método de la burbuja, puede mejorarse disminuyendo el número de elementos en cada pasada, a este método se<br />
le conoce con el nombre de selección. El siguiente programa, SE<strong>LECCIÓN</strong>.CPP, ilustra este método.<br />
Ejemplo <strong>18</strong>.30<br />
metodoBurbuja(valores, 30);<br />
for (i = 0; i < 30; i++)<br />
cout