Skip to content
Snippets Groups Projects
Commit b8217a59 authored by Maria Hartmann's avatar Maria Hartmann
Browse files

included slim heaps in experiments; modified plot appearance

parent dfc988f7
No related branches found
No related tags found
No related merge requests found
Showing
with 6926 additions and 6669 deletions
randomness parameter value;Pairing;Smooth;Slim
randomness parameter value;21;22;23
0.05;11.295882352941176;13.954901960784314;14.419999999999998
0.1;12.4409900990099;15.918217821782179;16.585049504950497
0.15000000000000002;13.17291390728477;16.937483443708608;17.81165562913907
0.2;13.344228855721392;18.057064676616914;19.06452736318408
0.25;14.197968127490043;18.27940239043825;19.3001593625498
0.30000000000000004;14.620564784053155;18.740531561461797;19.889568106312293
0.35000000000000003;14.793931623931623;19.161538461538463;20.429116809116813
0.4;14.86875311720698;19.73922693266833;21.09344139650873
0.45;14.973281596452328;20.13133037694013;21.526341463414635
0.5;15.278443113772456;20.33125748502994;21.79740518962076
0.55;15.462232304900184;20.587277676950997;22.080925589836664
0.6000000000000001;15.659317803660567;20.716805324459234;22.29154742096506
0.65;15.801643625192014;20.967019969278034;22.59758832565284
0.7000000000000001;15.792710413694719;21.266162624821686;22.9316119828816
0.75;15.977483355525965;21.410026631158456;23.131118508655124
0.8;16.029737827715355;21.599438202247192;23.351098626716606
0.8500000000000001;16.176839012925967;21.704183313748533;23.534324324324327
0.9;16.44336293007769;21.73238623751387;23.58506104328524
0.9500000000000001;16.198611987381707;22.20273396424816;24.07757097791798
1.0;16.352507492507492;22.283306693306695;24.203316683316682
randomness parameter value;Pairing;Smooth;Slim
randomness parameter value;21;22;23
0.05;11.295882352941176;9.018431372549019;9.774705882352942
0.1;12.4409900990099;10.034554455445546;11.043267326732675
0.15000000000000002;13.17291390728477;10.625629139072847;11.82185430463576
0.2;13.344228855721392;11.026268656716418;12.359104477611941
0.25;14.197968127490043;11.36972111553785;12.744541832669324
0.30000000000000004;14.620564784053155;11.64970099667774;13.143023255813956
0.35000000000000003;14.793931623931623;11.838404558404559;13.419287749287752
0.4;14.86875311720698;12.030573566084788;13.6901246882793
0.45;14.973281596452328;12.200576496674056;13.90419068736142
0.5;15.278443113772456;12.346467065868264;14.113612774451097
0.55;15.462232304900184;12.477531760435571;14.283157894736842
0.6000000000000001;15.659317803660567;12.599217970049915;14.466988352745421
0.65;15.801643625192014;12.71179723502304;14.61820276497696
0.7000000000000001;15.792710413694719;12.810756062767476;14.758630527817404
0.75;15.977483355525965;12.918588548601864;14.898814913448732
0.8;16.029737827715355;12.99980024968789;15.011123595505616
0.8500000000000001;16.176839012925967;13.07427732079906;15.142702702702705
0.9;16.44336293007769;13.164228634850167;15.25294117647059
0.9500000000000001;16.198611987381707;13.242754994742377;15.364563617245006
1.0;16.352507492507492;13.307212787212787;15.458991008991006
randomness parameter value;Pairing;Smooth randomness parameter value;Pairing;Smooth;Slim
randomness parameter value;0;12 randomness parameter value;0;12;24
1e-05;3.3110000000000004;0.9997999999999998 1e-05;3.3110000000000004;0.9997999999999998;0.9997999999999998
0.01001;9.695700000000002;10.025450000000001 0.01001;9.67775;10.0012;10.721779999999999
0.02001;10.85029;11.63291 0.02001;10.85817;11.643739999999998;12.760180000000002
0.03001;11.54132;12.58502 0.03001;11.539510000000002;12.58643;13.9607
0.040010000000000004;12.00077;13.229379999999999 0.040010000000000004;12.00396;13.256720000000001;14.792639999999999
0.050010000000000006;12.386989999999999;13.76429 0.050010000000000006;12.37384;13.74697;15.44101
0.06001;12.68024;14.18097 0.06001;12.659740000000001;14.16565;15.96928
0.07001;12.901870000000002;14.504279999999998 0.07001;12.90557;14.48692;16.405980000000003
0.08001;13.10722;14.776249999999997 0.08001;13.09812;14.7944;16.75909
0.09000999999999999;13.286290000000001;15.04036 0.09000999999999999;13.29203;15.05026;17.09758
0.10001;13.454849999999999;15.25796 0.10001;13.429640000000001;15.2323;17.33226
0.11001;13.583470000000002;15.44508 0.11001;13.585540000000002;15.445480000000002;17.60907
0.12000999999999999;13.70061;15.617080000000001 0.12000999999999999;13.69317;15.58945;17.822210000000002
0.13001000000000001;13.79743;15.745219999999998 0.13001000000000001;13.803190000000003;15.759569999999998;18.00556
0.14001000000000002;13.926459999999999;15.91376 0.14001000000000002;13.908909999999999;15.88996;18.16571
0.15001;14.00538;16.05316 0.15001;13.99105;16.02691;18.32263
0.16001;14.084409999999998;16.14607 0.16001;14.083679999999998;16.16697;18.51621
0.17001000000000002;14.157020000000001;16.25582 0.17001000000000002;14.14457;16.251450000000002;18.6329
0.18001;14.223750000000003;16.3467 0.18001;14.22918;16.34441;18.73009
0.19001;14.300799999999999;16.46123 0.19001;14.30017;16.453380000000003;18.874979999999997
0.20001000000000002;14.33816;16.52597 0.20001000000000002;14.337049999999998;16.515639999999998;18.9681
0.21001;14.4027;16.58205 0.21001;14.392430000000001;16.58045;19.067680000000003
0.22001;14.437909999999999;16.66046 0.22001;14.45719;16.66163;19.15207
0.23001000000000002;14.500430000000001;16.726419999999997 0.23001000000000002;14.49798;16.72156;19.23429
0.24001;14.531600000000001;16.78245 0.24001;14.543500000000002;16.78512;19.295849999999998
0.25001;14.58332;16.8614 0.25001;14.575109999999999;16.84369;19.384130000000003
0.26001;14.613059999999997;16.90503 0.26001;14.62004;16.90114;19.449379999999998
0.27001000000000003;14.6482;16.94697 0.27001000000000003;14.668430000000003;16.96322;19.532780000000002
0.28001000000000004;14.68594;17.00532 0.28001000000000004;14.67765;17.003639999999997;19.57112
0.29001;14.715880000000002;17.047040000000003 0.29001;14.714970000000001;17.041320000000002;19.62939
randomness parameter value;Pairing;Smooth randomness parameter value;Pairing;Smooth;Slim
randomness parameter value;0;12 randomness parameter value;0;12;24
1e-05;3.3110000000000004;0.9997999999999998 1e-05;3.3110000000000004;0.9997999999999998;0.9997999999999998
0.01001;9.695700000000002;6.3199499999999995 0.01001;9.67775;6.3042300000000004;7.19188
0.02001;10.85029;7.162200000000001 0.02001;10.85817;7.168280000000001;8.42992
0.03001;11.54132;7.654059999999999 0.03001;11.539510000000002;7.655379999999999;9.160339999999998
0.040010000000000004;12.00077;7.984989999999999 0.040010000000000004;12.00396;7.999249999999999;9.654850000000001
0.050010000000000006;12.386989999999999;8.26281 0.050010000000000006;12.37384;8.252419999999999;10.041140000000002
0.06001;12.68024;8.46781 0.06001;12.659740000000001;8.46188;10.357009999999999
0.07001;12.901870000000002;8.63679 0.07001;12.90557;8.62622;10.61492
0.08001;13.10722;8.77514 0.08001;13.09812;8.78675;10.82337
0.09000999999999999;13.286290000000001;8.90821 0.09000999999999999;13.29203;8.91469;11.027660000000001
0.10001;13.454849999999999;9.01913 0.10001;13.429640000000001;9.00646;11.164819999999999
0.11001;13.583470000000002;9.11216 0.11001;13.585540000000002;9.11176;11.332920000000001
0.12000999999999999;13.70061;9.2018 0.12000999999999999;13.69317;9.18681;11.460630000000002
0.13001000000000001;13.79743;9.27063 0.13001000000000001;13.803190000000003;9.272210000000001;11.56523
0.14001000000000002;13.926459999999999;9.354729999999998 0.14001000000000002;13.908909999999999;9.341800000000001;11.65909
0.15001;14.00538;9.421119999999998 0.15001;13.99105;9.411700000000002;11.754840000000003
0.16001;14.084409999999998;9.46995 0.16001;14.083679999999998;9.47869;11.869200000000001
0.17001000000000002;14.157020000000001;9.527839999999998 0.17001000000000002;14.14457;9.52315;11.935640000000001
0.18001;14.223750000000003;9.57139 0.18001;14.22918;9.56991;12.0
0.19001;14.300799999999999;9.629190000000001 0.19001;14.30017;9.62381;12.08285
0.20001000000000002;14.33816;9.65897 0.20001000000000002;14.337049999999998;9.657720000000001;12.13275
0.21001;14.4027;9.688220000000001 0.21001;14.392430000000001;9.69139;12.19594
0.22001;14.437909999999999;9.73125 0.22001;14.45719;9.72949;12.243250000000003
0.23001000000000002;14.500430000000001;9.761690000000002 0.23001000000000002;14.49798;9.76287;12.287560000000001
0.24001;14.531600000000001;9.79034 0.24001;14.543500000000002;9.79236;12.32669
0.25001;14.58332;9.8314 0.25001;14.575109999999999;9.822109999999999;12.378240000000002
0.26001;14.613059999999997;9.85144 0.26001;14.62004;9.85026;12.42158
0.27001000000000003;14.6482;9.87486 0.27001000000000003;14.668430000000003;9.88027;12.464500000000001
0.28001000000000004;14.68594;9.90154 0.28001000000000004;14.67765;9.89911;12.489040000000001
0.29001;14.715880000000002;9.924119999999998 0.29001;14.714970000000001;9.92091;12.52088
randomness parameter value;Pairing;Smooth;Slim
randomness parameter value;0;12;24
2;0.0;0.0;0.0
4;0.6249999999999999;0.5625000000000001;0.5625000000000001
8;1.2312500000000002;1.2250000000000003;1.2250000000000003
16;1.8062500000000001;1.734375;1.746875
32;2.2093749999999996;2.1828125000000003;2.1906250000000003
64;2.5601562499999995;2.5015625000000004;2.51171875
128;2.8164062500000004;2.7449218750000006;2.7507812499999997
256;2.9751953124999995;2.931640625;2.94296875
512;3.1471679687500003;3.08076171875;3.085546875
1024;3.2168457031249997;3.1895507812499995;3.1858886718750004
2048;3.3531005859374994;3.2681640625;3.2591552734375
4096;3.3708862304687504;3.30394287109375;3.29910888671875
8192;3.427282714843751;3.34471435546875;3.335760498046875
16384;3.4669952392578125;3.366510009765625;3.3556823730468754
32768;3.473672485351563;3.385777282714844;3.373991394042969
65536;3.4976760864257814;3.396915435791016;3.3844589233398437
131072;3.500126647949218;3.405287933349609;3.3921943664550787
randomness parameter value;Pairing;Smooth;Slim
randomness parameter value;0;12;24
2;0.0;0.0;0.0
4;0.6249999999999999;0.5500000000000002;0.5500000000000002
8;1.2312500000000002;0.9750000000000003;0.9750000000000003
16;1.8062500000000001;1.3281250000000002;1.3218750000000001
32;2.2093749999999996;1.6078125;1.5953125
64;2.5601562499999995;1.76484375;1.7375000000000003
128;2.8164062500000004;1.9191406249999998;1.8773437499999996
256;2.9751953124999995;2.009765625;1.9525390625
512;3.1471679687500003;2.0896484375;2.02109375
1024;3.2168457031249997;2.1350585937499997;2.0554687499999997
2048;3.3531005859374994;2.17060546875;2.0829833984375
4096;3.3708862304687504;2.1817749023437503;2.094384765625
8192;3.427282714843751;2.1978515625000004;2.1041320800781254
16384;3.4669952392578125;2.206170654296875;2.1098266601562496
32768;3.473672485351563;2.211837768554687;2.114335632324219
65536;3.4976760864257814;2.216072845458984;2.1168922424316405
131072;3.500126647949218;2.2179931640625;2.118241882324219
randomness parameter value;Pairing;Smooth randomness parameter value;Pairing;Smooth;Slim
randomness parameter value;0;12 randomness parameter value;0;12;24
1900;7.140770000000002;6.0651 1900;7.153065;6.05814;6.10638
1800;7.261944999999999;6.198515 1800;7.220275;6.125749999999999;6.184085
1700;7.313929999999999;6.256444999999999 1700;7.257635;6.1938;6.236489999999999
1600;7.462670000000001;6.48028 1600;7.391990000000002;6.326405;6.41053
1500;7.5541849999999995;6.535635000000001 1500;7.509505000000001;6.47197;6.5726700000000005
1400;7.711180000000001;6.737559999999998 1400;7.581990000000001;6.570784999999998;6.651484999999999
1300;7.786554999999999;6.852745 1300;7.837345000000001;6.931944999999999;7.048145
1200;7.948655000000001;7.065579999999999 1200;7.924210000000001;7.0518550000000015;7.172499999999999
1100;8.04499;7.18305 1100;8.034790000000001;7.172065;7.318725
1000;8.25514;7.484164999999999 1000;8.206145;7.39088;7.56936
900;8.48538;7.764014999999999 900;8.479135000000001;7.776070000000001;7.976265
800;8.644215;7.9804650000000015 800;8.662115;7.995735;8.261940000000001
700;8.897675;8.31422 700;8.863864999999999;8.280320000000001;8.56643
600;9.121414999999999;8.6109 600;9.13595;8.625425;8.981399999999999
500;9.441964999999998;9.036955 500;9.422649999999999;9.01364;9.44304
400;9.87564;9.61485 400;9.834005000000001;9.57885;10.134455
300;10.334719999999999;10.22929 300;10.352394999999998;10.286950000000001;11.004845
200;10.993725;11.170739999999999 200;11.020954999999999;11.196654999999998;12.148670000000001
100;12.144270000000002;12.770485 100;12.138380000000002;12.756085;14.14317
randomness parameter value;Pairing;Smooth randomness parameter value;Pairing;Smooth;Slim
randomness parameter value;0;12 randomness parameter value;0;12;24
1900;7.140770000000002;4.111149999999999 1900;7.153065;4.109310000000001;4.242609999999999
1800;7.261944999999999;4.206099999999998 1800;7.220275;4.152085;4.294115
1700;7.313929999999999;4.23051 1700;7.257635;4.198955;4.33525
1600;7.462670000000001;4.356905000000001 1600;7.391990000000002;4.272915;4.447325
1500;7.5541849999999995;4.397234999999999 1500;7.509505000000001;4.3566650000000005;4.54668
1400;7.711180000000001;4.501015000000001 1400;7.581990000000001;4.411449999999999;4.59764
1300;7.786554999999999;4.575859999999999 1300;7.837345000000001;4.6216;4.855535000000001
1200;7.948655000000001;4.6985 1200;7.924210000000001;4.686185;4.930525000000001
1100;8.04499;4.7659400000000005 1100;8.034790000000001;4.7547749999999995;5.025485000000001
1000;8.25514;4.933224999999999 1000;8.206145;4.88674;5.19118
900;8.48538;5.093285 900;8.479135000000001;5.094884999999999;5.4413800000000005
800;8.644215;5.216295 800;8.662115;5.22276;5.627315
700;8.897675;5.39767 700;8.863864999999999;5.378835;5.821145
600;9.121414999999999;5.562875000000001 600;9.13595;5.568364999999999;6.07888
500;9.441964999999998;5.790405 500;9.422649999999999;5.77793;6.364665
400;9.87564;6.099679999999998 400;9.834005000000001;6.082489999999999;6.7924750000000005
300;10.334719999999999;6.429255 300;10.352394999999998;6.457979999999999;7.324980000000001
200;10.993725;6.9218 200;11.020954999999999;6.935074999999998;8.020215
100;12.144270000000002;7.751835000000001 100;12.138380000000002;7.746515;9.222365000000002
randomness parameter value;Pairing;Smooth randomness parameter value;Pairing;Smooth;Slim
randomness parameter value;0;12 randomness parameter value;0;12;24
2;0.0;0.0 2;0.0;0.0;0.0
4;0.7000000000000001;0.6000000000000001 4;0.65;0.7;0.7
8;1.6749999999999998;1.6500000000000001 8;1.6500000000000001;1.75;1.775
16;2.9875;3.025 16;3.0125;3.0;3.05
32;4.05625;4.14375 32;4.36875;4.28125;4.2875
64;5.71875;5.665625 64;5.65;5.784375;6.0125
128;7.171875;7.395312499999999 128;7.096875000000001;7.293749999999999;7.6953125
256;8.4984375;8.960156249999999 256;8.50234375;9.017187499999999;9.42421875
512;9.845703125;10.61015625 512;9.79140625;10.534374999999999;11.40546875
1024;11.176171875;12.24921875 1024;11.1201171875;12.249414062500001;13.541015625
2048;12.404296875000002;13.93369140625 2048;12.4150390625;13.990625;15.75517578125
4096;13.6794921875;15.63544921875 4096;13.6927734375;15.6712890625;17.820849609375
8192;14.9508056640625;17.39541015625 8192;14.946044921875002;17.400000000000002;20.0787353515625
16384;16.2085693359375;19.12520751953125 16384;16.199816894531253;19.117529296875;22.252026367187497
32768;17.44716796875;20.857037353515626 32768;17.454876708984376;20.84237060546875;24.40491943359375
65536;18.6917236328125;22.592379760742183 65536;18.695001220703126;22.5908935546875;26.56299743652344
131072;19.929542541503906;24.330378723144527 131072;19.936421203613282;24.33431549072266;28.716687011718747
randomness parameter value;Pairing;Smooth randomness parameter value;Pairing;Smooth;Slim
randomness parameter value;0;12 randomness parameter value;0;12;24
2;0.0;0.0 2;0.0;0.0;0.0
4;0.7000000000000001;0.55 4;0.65;0.65;0.65
8;1.6749999999999998;1.25 8;1.6500000000000001;1.35;1.375
16;2.9875;2.1624999999999996 16;3.0125;2.2125;2.25
32;4.05625;2.8999999999999995 32;4.36875;3.0625;3.05
64;5.71875;3.8562499999999997 64;5.65;3.884375;4.196875
128;7.171875;4.846875 128;7.096875000000001;4.7671875;5.2859375
256;8.4984375;5.70703125 256;8.50234375;5.71640625;6.362500000000001
512;9.845703125;6.605078125 512;9.79140625;6.567187499999999;7.5972656249999995
1024;11.176171875;7.468554687500001 1024;11.1201171875;7.4564453125;8.886328125
2048;12.404296875000002;8.33544921875 2048;12.4150390625;8.36669921875;10.220214843749998
4096;13.6794921875;9.20283203125 4096;13.6927734375;9.22490234375;11.449951171875
8192;14.9508056640625;10.0988037109375 8192;14.946044921875002;10.1025146484375;12.78759765625
16384;16.2085693359375;10.96561279296875 16384;16.199816894531253;10.967944335937501;14.073291015625003
32768;17.44716796875;11.841461181640625 32768;17.454876708984376;11.833294677734376;15.348345947265624
65536;18.6917236328125;12.714126586914062 65536;18.695001220703126;12.709674072265624;16.62651672363281
131072;19.929542541503906;13.582135009765626 131072;19.936421203613282;13.584622192382811;17.89972839355469
...@@ -8,6 +8,8 @@ from pairing_heap_standard import PairingHeapStandard ...@@ -8,6 +8,8 @@ from pairing_heap_standard import PairingHeapStandard
from smooth_heap import SmoothHeap from smooth_heap import SmoothHeap
from pairing_heap_l import PairingHeapL from pairing_heap_l import PairingHeapL
from smooth_heap_l import SmoothHeapL from smooth_heap_l import SmoothHeapL
from slim_heap_l import SlimHeapL
from slim_heap import SlimHeap
COUNT_TYPE_LINKS=-1 COUNT_TYPE_LINKS=-1
COUNT_TYPE_COMPS=-2 COUNT_TYPE_COMPS=-2
...@@ -15,7 +17,7 @@ COUNT_TYPE_BOTH=0 ...@@ -15,7 +17,7 @@ COUNT_TYPE_BOTH=0
class PairingHeap(PairingHeapInterface): class PairingHeap(PairingHeapInterface):
MODES = {21: "Pairing_L", 22: "Smooth_L"} MODES = {21: "Pairing_L", 22: "Smooth_L", 23: "Slim_L", 24: "Slim"}
mode = 0 mode = 0
countType = COUNT_TYPE_COMPS countType = COUNT_TYPE_COMPS
heap = None heap = None
...@@ -33,6 +35,10 @@ class PairingHeap(PairingHeapInterface): ...@@ -33,6 +35,10 @@ class PairingHeap(PairingHeapInterface):
self.heap = PairingHeapL() self.heap = PairingHeapL()
elif self.mode == 22: # root list version, everything lazy, to be used for Dijkstra test in paper elif self.mode == 22: # root list version, everything lazy, to be used for Dijkstra test in paper
self.heap = SmoothHeapL() self.heap = SmoothHeapL()
elif self.mode == 23:
self.heap = SlimHeapL() # root list version, everything lazy, to be used for Dijkstra test in paper
elif self.mode == 24:
self.heap = SlimHeap()
else: else:
raise Exception("Invalid heap ID! No heap of type ID {} is implemented.") raise Exception("Invalid heap ID! No heap of type ID {} is implemented.")
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment