static void createResultTable()
        {
            IArray <string> singleArray = new SingleArray <string>();
            IArray <string> vectorArray = new VectorArray <string>();
            IArray <string> factorArray = new FactorArray <string>(1000);
            IArray <string> matrixArray = new MatrixArray <string>(1000);


            ConsoleTable timeTable = new ConsoleTable("Data structure",
                                                      "Added 100000 elements",
                                                      "Added in start",
                                                      "Random added",
                                                      "Added in end",
                                                      "Read start",
                                                      "Read random",
                                                      "Read end",
                                                      "Delete start",
                                                      "Delete random",
                                                      "Delete end"
                                                      );

            Program.addValues("Single Array", singleArray, 100000, in timeTable);
            Program.addValues("Vector Array", vectorArray, 100000, in timeTable);
            Program.addValues("Factor Array", factorArray, 100000, in timeTable);
            Program.addValues("Matrix Array", matrixArray, 100000, in timeTable);
        }
 public PriorityQueue()
 {
     size         = 0;
     priorityList = new SingleArray <Queue <T> >();
     priorityList.Add(new Queue <T>(), 0);
     priorityList.Add(new Queue <T>(), 1);
     priorityList.Add(new Queue <T>(), 2);
 }
Ejemplo n.º 3
0
 public MatrixArray(int vector)
 {
     this.vector = vector;
     array       = new SingleArray <VectorArray <T> >();
     size        = 0;
 }