Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Informe EDD
Informe EDD
package busquedabinariaiterativa;
public class BusquedaBinariaIterativa {
private BusquedaBinariaIterativa() {
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package busquedabinariaiterativa;
if (arr[centro] == valor) {
band = true;
} else {
if (arr[centro] < valor) {
izq = centro + 1;
} else {
der = centro - 1;
}
}
}
if (band) {
return centro;
}
return -1;
}
}