Creo que es porque como vas comparando todos los elementos entre si comparar el último elemento con el mismo no tiene sentido, de todas formas no se si es porque solo es un trozo del algoritmo pero la i no tiene ninguna utilidad, es posible que sea<br>
lista[j] < lista[j+1] o algo parecido, si pones el bucle completo te lo podre explicar mejor.<br><br><div class="gmail_quote">El 6 de octubre de 2010 10:30, Alejandro Pedrazzini <span dir="ltr"><<a href="mailto:ale_pedra@live.com">ale_pedra@live.com</a>></span> escribió:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



<div>
<font color="#00b050" face="'Courier New'"><b>Hola Gente <img src="" title="Guiño" alt="Guiño" style="border-style: none; vertical-align: text-bottom;" height="19" width="19">!!!<br></b></font><div><font color="#00b050" face="'Courier New'"><b>Empecé estudiar el método de ordenamiento tipo burbuja, pero hay una parte que no entiendo que es la siguiente:</b></font></div>
<div><font color="#00b050" face="'Courier New'"><b><hr></b></font></div><div><font color="#00b050" face="'Courier New'"><b><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="text-align: left; padding: 0px; margin: 0px; color: rgb(18, 16, 13);">
<font color="#ff0000"><b>     for</b></font> (i = 1 ; i < TAM ; i++)</pre></span><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="padding: 0px; margin: 0px; color: rgb(18, 16, 13);">
<div style="text-align: left;"><br></div><div style="text-align: left;"><span style="color: rgb(0, 176, 80); font-family: 'Courier New'; white-space: normal; font-size: 13px;"><b><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="padding: 0px; margin: 0px; color: rgb(18, 16, 13); display: inline ! important;">
     <font color="#ff0000"><b>for</b> </font>(j = 0 ; j < TAM - 1 ; j++) <font color="#00b050" face="'Courier New'"><span style="font-size: 10pt;"><b>//¿Por que el <font color="#ff0000">TAM - 1</font>? , no entiendo porque le resta <font color="#ff0000">1</font>.</b></span></font><span style="color: rgb(0, 176, 80); font-family: 'Courier New'; white-space: normal; font-size: 13px;"><b><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="padding: 0px; margin: 0px; color: rgb(18, 16, 13); display: inline ! important;">
<span style="color: rgb(0, 176, 80); font-family: 'Courier New'; white-space: normal; font-size: 13px;"><b><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="padding: 0px; margin: 0px; color: rgb(18, 16, 13); display: inline ! important;">
<font color="#00b050" face="'Courier New'"><span style="font-size: 10pt;"><b><font color="#ff0000"> </font></b></span></font></pre></span></b></span></pre></span></b></span></pre></span></b></span></div></pre></span><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="padding: 0px; margin: 0px; color: rgb(18, 16, 13);">
<div style="text-align: left;"><br></div><div style="text-align: left;"><span style="color: rgb(0, 176, 80); font-family: 'Courier New'; white-space: normal; font-size: 13px;"><b><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="padding: 0px; margin: 0px; color: rgb(18, 16, 13); display: inline ! important;">
    <b> </b><font color="#ff0000"><b>if</b></font>  (lista[j] > lista[j+1])</pre></span></b></span></div></pre></span><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="text-align: left; padding: 0px; margin: 0px; color: rgb(18, 16, 13);">
<br></pre></span><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="padding: 0px; margin: 0px; color: rgb(18, 16, 13);"><div style="text-align: left;">
<br></div><div style="text-align: left;"><span style="color: rgb(0, 176, 80); font-family: 'Courier New'; white-space: normal; font-size: 13px;"><b><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="padding: 0px; margin: 0px; color: rgb(18, 16, 13); display: inline ! important;">
     temp = lista[j];</pre></span></b></span></div></pre></span><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="text-align: left; padding: 0px; margin: 0px; color: rgb(18, 16, 13);">
     lista[j] = lista[j + 1];</pre></span><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="text-align: left; padding: 0px; margin: 0px; color: rgb(18, 16, 13);">
     lista[j + 1] = temp;</pre><pre style="padding: 0px; margin: 0px; color: rgb(18, 16, 13);"><hr></pre></span><span style="color: rgb(236, 236, 236); font-family: Georgia,Verdana,Tahoma,Arial,sans-serif; font-weight: normal; font-size: 15px;"><pre style="padding: 0px; margin: 0px;">
<font color="#00b050" face="'Courier New'" size="3"><span style="font-size: 13px;"><b>Les puede parecer una boludes(idiotez) a la mayoría pero simplemente no la encajo esa parte , pero el resto</b></span></font></pre>
<pre style="padding: 0px; margin: 0px;"><font color="#00b050" face="'Courier New'" size="3"><span style="font-size: 13px;"><b>sí.</b></span></font></pre><pre style="padding: 0px; margin: 0px;"><font color="#00b050" face="'Courier New'" size="3"><span style="font-size: 13px;"><b>Agradezco de antemano </b></span></font><span style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; white-space: normal; font-size: 13px;"><img src="" title="Risa" alt="Risa" style="border-style: none; vertical-align: text-bottom;" height="19" width="19">.</span></pre>
</span></b></font></div>                                          </div>
<br>_______________________________________________<br>
Lista de correo Cconclase <a href="mailto:Cconclase@listas.conclase.net">Cconclase@listas.conclase.net</a><br>
<a href="http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net" target="_blank">http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net</a><br>
Bajas: <a href="http://listas.conclase.net/index.php?gid=2&mnu=FAQ" target="_blank">http://listas.conclase.net/index.php?gid=2&mnu=FAQ</a><br></blockquote></div><br>