ALGORITMOS DE BÚSQUEDA Y ORDENACIÓN
ALGORITMOS DE BÚSQUEDA Y ORDENACIÓN
ALGORITMOS DE BÚSQUEDA Y ORDENACIÓN
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
OR<strong>DE</strong>NACIÓN POR MEZCLA,<br />
IMPLEMENTACIÓN EN PASCAL<br />
PROCEDURE Merge(var v:tvector; iz, ce, de:tintervalo; var<br />
w:tvector);<br />
{Efecto.w: mezcla ordenada de los subvec. v[iz..ce],v[ce+1..de] }<br />
VAR<br />
i, j,k:tIntervalo;<br />
BEGIN<br />
i:=iz; j:=ce+1; k:=iz; {k recorre w}<br />
while( i ≤ ce) and (j ≤de) do begin<br />
if v[i]