#define USECHRONO #undef HAVE_MPI #include "eval.hpp" #include #include #include #include using namespace aed; using namespace std; //---:---<*>---:---<*>- COMIENZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> // COMPLETAR DNI y NOMBRE AQUI: // Nombre: Fabricio Dandeo int DNI=43840841; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> void createab(btree &B, btree::iterator n,list &abpos,list &vals) { if(abpos.empty()){ return; } int pos = abpos.front(); int auxiliar = vals.front(); abpos.pop_front(); vals.pop_front(); n = B.insert(n,auxiliar); if(!abpos.empty() && abpos.front() == 2 * pos + 1){ btree::iterator hijo_izquierdo = n.left(); createab(B,hijo_izquierdo,abpos,vals); } if(!abpos.empty() && abpos.front() == 2 * pos + 2){ btree::iterator hijo_derecho = n.right(); createab(B,hijo_derecho,abpos,vals); } } //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> void createab(btree &B, list &abpos,list &vals) { createab(B,B.begin(),abpos,vals); } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(createab,vrbs); // ev.evalr<1>(createab,12345,vrbs); return 0; }