Commit 58973ee1 authored by Rafik_Hammoutene's avatar Rafik_Hammoutene
Browse files

Ajout de tous les pdf miniscule

parent 0bdc5c1c
Pipeline #4639 passed with stage
in 5 seconds
......@@ -29,13 +29,15 @@ int main(int argc,char **argv){
float random_number; //Nombre aléatooire a geneer
int r_number;
srand(time(NULL));
for(i=0;i<90;i++){
random_number=rand()/(RAND_MAX+200.0);
r_number= (int) random_number; //caster en int
random_number=rand()/(RAND_MAX+200.0);
r_number= (int) random_number;//caster en int
// Ajout d'un élément et mesure du temps pris par l'opération.
clock_gettime(clk_id, &before);
memory_allocation = insertion_tas_binaire(a, r_number);
memory_allocation = insertion_tas_binaire(a,r_number);
clock_gettime(clk_id, &after);
// Enregistrement du temps pris par l'opération
analyzer_append(time_analysis, after.tv_nsec - before.tv_nsec);
......
......@@ -4,7 +4,7 @@
#include "arraylist.h"
#include "analyzer.h"
#include "tasbinaire.h"
#include "tas_binaire.h"
int main(int argc,char **argv){
......
......@@ -16,7 +16,8 @@ int main(int argc,char **argv){
analyzer_t * time_analysis = analyzer_create();
// Analyse du nombre de copies faites par les opérations.
analyzer_t * copy_analysis = analyzer_create();
// Analyse de l'espace mémoire inutilisalysis = analyzer_create();
// Analyse de l'espace mémoire inutilise
analyzer_t *memory_analysis = analyzer_create();
// Analyse du nombre d'echange effectuée.
analyzer_t * swap_analysis = analyzer_create();
// Mesure de la durée d'une opération.
......
0 91.000000 91.000000
1 35.000000 126.000000
2 28.000000 77.000000
3 41.000000 65.000000
4 27.000000 55.500000
5 27.000000 49.800000
6 12526.000000 2129.166667
7 45.000000 1831.428571
8 27.000000 1605.875000
9 28.000000 1430.555556
10 30.000000 1290.500000
11 28.000000 1175.727273
12 29.000000 1080.166667
13 29.000000 999.307692
14 27.000000 929.857143
15 30.000000 869.866667
16 28.000000 817.250000
17 27.000000 770.764706
18 27.000000 729.444444
19 27.000000 692.473684
20 27.000000 659.200000
21 28.000000 629.142857
22 27.000000 601.772727
23 28.000000 576.826087
24 27.000000 553.916667
25 27.000000 532.840000
26 27.000000 513.384615
27 27.000000 495.370370
28 27.000000 478.642857
29 27.000000 463.068966
30 27.000000 448.533333
31 27.000000 434.935484
32 40.000000 422.593750
33 29.000000 410.666667
34 29.000000 399.441176
35 29.000000 388.857143
36 29.000000 378.861111
37 28.000000 369.378378
38 29.000000 360.421053
39 27.000000 351.871795
40 29.000000 343.800000
41 28.000000 336.097561
42 29.000000 328.785714
43 28.000000 321.790698
44 29.000000 315.136364
45 27.000000 308.733333
46 28.000000 302.630435
47 26.000000 296.744681
48 29.000000 291.166667
49 32.000000 285.877551
50 29.000000 280.740000
51 28.000000 275.784314
52 28.000000 271.019231
53 29.000000 266.452830
54 29.000000 262.055556
55 31.000000 257.854545
56 27.000000 253.732143
57 28.000000 249.771930
58 28.000000 245.948276
59 28.000000 242.254237
60 27.000000 238.666667
61 28.000000 235.213115
62 30.000000 231.903226
63 28.000000 228.666667
64 28.000000 225.531250
65 28.000000 222.492308
66 29.000000 219.560606
67 30.000000 216.731343
68 28.000000 213.955882
69 27.000000 211.246377
70 27.000000 208.614286
71 28.000000 206.070423
72 26.000000 203.569444
73 26.000000 201.136986
74 27.000000 198.783784
75 27.000000 196.493333
76 28.000000 194.276316
77 28.000000 192.116883
78 28.000000 190.012821
79 28.000000 187.962025
80 27.000000 185.950000
81 29.000000 184.012346
82 41.000000 182.268293
83 27.000000 180.397590
84 29.000000 178.595238
85 30.000000 176.847059
86 29.000000 175.127907
87 29.000000 173.448276
88 29.000000 171.806818
89 29.000000 170.202247
0 79.000000 79.000000
1 67.000000 146.000000
2 58.000000 102.000000
3 29.000000 77.666667
4 31.000000 66.000000
5 31.000000 59.000000
6 30.000000 54.166667
7 80.000000 57.857143
8 30.000000 54.375000
9 31.000000 51.777778
10 32.000000 49.800000
11 29.000000 47.909091
12 29.000000 46.333333
13 47.000000 46.384615
14 29.000000 45.142857
15 29.000000 44.066667
16 28.000000 43.062500
17 29.000000 42.235294
18 28.000000 41.444444
19 28.000000 40.736842
20 31.000000 40.250000
21 30.000000 39.761905
22 30.000000 39.318182
23 28.000000 38.826087
24 30.000000 38.458333
25 67.000000 39.600000
26 31.000000 39.269231
27 31.000000 38.962963
28 28.000000 38.571429
29 32.000000 38.344828
30 29.000000 38.033333
31 31.000000 37.806452
32 28.000000 37.500000
33 31.000000 37.303030
34 32.000000 37.147059
35 32.000000 37.000000
36 31.000000 36.833333
37 31.000000 36.675676
38 32.000000 36.552632
39 30.000000 36.384615
40 31.000000 36.250000
41 30.000000 36.097561
42 30.000000 35.952381
43 30.000000 35.813953
44 32.000000 35.727273
45 32.000000 35.644444
46 31.000000 35.543478
47 30.000000 35.425532
48 30.000000 35.312500
49 30.000000 35.204082
50 30.000000 35.100000
51 32.000000 35.039216
52 28.000000 34.903846
53 29.000000 34.792453
54 30.000000 34.703704
55 29.000000 34.600000
56 30.000000 34.517857
57 28.000000 34.403509
58 30.000000 34.327586
59 30.000000 34.254237
60 29.000000 34.166667
61 29.000000 34.081967
62 30.000000 34.016129
63 29.000000 33.936508
64 29.000000 33.859375
65 30.000000 33.800000
66 28.000000 33.712121
67 29.000000 33.641791
68 30.000000 33.588235
69 29.000000 33.521739
70 30.000000 33.471429
71 29.000000 33.408451
72 29.000000 33.347222
73 31.000000 33.315068
74 30.000000 33.270270
75 30.000000 33.226667
76 30.000000 33.184211
77 29.000000 33.129870
78 29.000000 33.076923
79 28.000000 33.012658
80 28.000000 32.950000
81 31.000000 32.925926
82 28.000000 32.865854
83 29.000000 32.819277
84 30.000000 32.785714
85 31.000000 32.764706
86 29.000000 32.720930
87 29.000000 32.678161
88 29.000000 32.636364
89 45.000000 32.775281
......@@ -12,7 +12,7 @@ set xlabel "Nombre d'elements ajoutes" font "Helvetica,24"
set ylabel "Temps amorti" font "Helvetica,24"
# Nom du fichier Postscript en sortie
set output 'fixed_binary_heap_amortized_time_C_RANDOM.pdf'
set output 'fixed_binary_heap_amortized_time_C_random.pdf'
plot [0:100][0:100] 'dynamic_array_time_c_alpha_random.plot' using 1:3 w lines title "Amortized C "
......@@ -23,9 +23,9 @@ plot [0:100][0:100] 'dynamic_array_time_c_alpha_random.plot' using 1:3 w lines t
set ylabel "Memoire gaspillee" font "Helvetica,24"
# Nom du fichier Postscript en sortie
set output 'fixed_binary_heap_wasted_memory_C_RANDOM.pdf'
set output 'fixed_binary_heap_wasted_memory_C_random.pdf'
plot 'dynamic_array_memory_c_alpha_random.plot' using 1:2 w lines title "Espace memoire inutilise C "
plot [0:300][0:300] 'dynamic_array_memory_c_alpha_random.plot' using 1:2 w lines title "Espace memoire inutilise C "
#################################################################
########### Affichage du nombre de copies effectuées ###########
#################################################################
......@@ -33,7 +33,7 @@ plot 'dynamic_array_memory_c_alpha_random.plot' using 1:2 w lines title "Espace
set ylabel "Nombre de copies effectuees" font "Helvetica,24"
# Nom du fichier Postscript en sortie
set output 'fixed_binary_heap_swap_C_RANDOM.pdf'
set output 'fixed_binary_heap_swap_C_random.pdf'
plot 'dynamic_array_swap_c_alpha_random.plot' using 1:2 w boxes title "Nombre d'echange effectuees C "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment