06.05.2013 Views

presentación-PDF

presentación-PDF

presentación-PDF

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Busqueda Binaria array<br />

public int Bus_Binaria_array(int [] A, Elem_indice [] array_indice, int X, int k){<br />

int i = Bus_Binaria_array_indice(array_indice, X);<br />

if (i != -1){<br />

int f = i+k-1;<br />

if (f >= A.length) f=A.length-1;<br />

while (i X) f = medio -1;<br />

else return medio;<br />

} // fin while<br />

}// fin if<br />

return -1;<br />

}

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

Saved successfully!

Ooh no, something went wrong!