00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _ORDENACION_H
00010 #define _ORDENACION_H
00011
00012 #include <iostream>
00013 #include <fstream>
00014 #include <vector>
00015 #include "DataGenerator.h"
00016
00017 using namespace std;
00018
00019 typedef vector<int> Vector;
00020
00024 class Ordenacion
00025 {
00026 public:
00036 void testInsercion1(int ini, int end, int inc, ostream& salida, float porcentaje);
00046 void testInsercion2(int ini, int end, int inc, ostream& salida, float porcentaje);
00047
00057 void testSeleccion1(int ini, int end, int inc, ostream& salida, float porcentaje);
00067 void testSeleccion2(int ini, int end, int inc, ostream& salida, float porcentaje);
00068
00069
00079 void testBurbuja1(int ini, int end, int inc, ostream& salida, float porcentaje);
00089 void testBurbuja2(int ini, int end, int inc, ostream& salida, float porcentaje);
00090
00091
00101 void testBurbujaEstudio1(int ini, int end, int inc, ostream& salida1, ostream& salida2, float porcentaje);
00102
00113 void testBurbujaEstudio2(int ini, int end, int inc, ostream& salida1, ostream& salida2, float veces, float porcentaje);
00114
00120 void Insercion(vector<VElement> &v);
00121
00127 void Seleccion(vector<VElement> &v);
00128
00134 void Burbuja(vector<VElement> &v);
00135 };
00136
00137 #endif