#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: Alexis Meier int DNI=44734112; //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> void createab(btree &B, btree::iterator it, list &abpos, list &val) { int pos = abpos.front(); abpos.pop_front(); int value = val.front(); val.pop_front(); it = B.insert(it, value); if (!abpos.empty() && abpos.front() == 2 * pos + 1) { createab(B, it.left(), abpos, val); } if (!abpos.empty() && abpos.front() == 2 * pos + 2) { createab(B, it.right(), abpos, val); } } //---:---<*>---:---<*>---:---<*>---:---<*>---:---<*> 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; }