Rewrote all 3 algorithms. Generated 10 random graphs and grids for tests. Created testing structure which uses generated graphs and grids as input data to algorithms, measures execution time and memory blocks used by them. Takes these measurements and found weights and builds tables in latex format which compare these data among those three algorithms.
This commit is contained in:
parent
a530372141
commit
f34b221065
36
output/graph_weights.out
Normal file
36
output/graph_weights.out
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
\begin{table}[]
|
||||||
|
\begin{tabular}{|l|l|l|l|l|}
|
||||||
|
\hline
|
||||||
|
nazwa grafu & (s, t) & Dijkstra & A* & Bi A* \\ \hline
|
||||||
|
graph1 & (557, 2854) & 393 & 393 & 393 \\ \hline
|
||||||
|
graph1 & (2019, 2765) & 396 & 396 & 418 \\ \hline
|
||||||
|
graph1 & (3637, 530) & 301 & 301 & 301 \\ \hline
|
||||||
|
graph2 & (2931, 3234) & 400 & 400 & 400 \\ \hline
|
||||||
|
graph2 & (3164, 1155) & 592 & 592 & 601 \\ \hline
|
||||||
|
graph2 & (2276, 343) & 524 & 524 & 524 \\ \hline
|
||||||
|
graph3 & (807, 623) & 664 & 664 & 664 \\ \hline
|
||||||
|
graph3 & (3745, 2398) & 761 & 761 & 839 \\ \hline
|
||||||
|
graph3 & (2390, 655) & 442 & 442 & 442 \\ \hline
|
||||||
|
graph4 & (4620, 67) & 494 & 494 & 494 \\ \hline
|
||||||
|
graph4 & (4213, 2705) & 571 & 571 & 601 \\ \hline
|
||||||
|
graph4 & (2556, 2853) & 421 & 421 & 421 \\ \hline
|
||||||
|
graph5 & (3335, 2706) & 514 & 514 & 514 \\ \hline
|
||||||
|
graph5 & (2950, 1368) & 645 & 645 & 645 \\ \hline
|
||||||
|
graph5 & (657, 2650) & 423 & 423 & 430 \\ \hline
|
||||||
|
graph6 & (4133, 3082) & 385 & 385 & 385 \\ \hline
|
||||||
|
graph6 & (641, 218) & 573 & 573 & 654 \\ \hline
|
||||||
|
graph6 & (4168, 2508) & 377 & 377 & 433 \\ \hline
|
||||||
|
graph7 & (300, 1212) & 431 & 431 & 431 \\ \hline
|
||||||
|
graph7 & (1872, 3056) & 468 & 468 & 468 \\ \hline
|
||||||
|
graph7 & (2673, 1551) & 693 & 693 & 720 \\ \hline
|
||||||
|
graph8 & (1788, 319) & 316 & 316 & 316 \\ \hline
|
||||||
|
graph8 & (3219, 452) & 464 & 464 & 464 \\ \hline
|
||||||
|
graph8 & (4330, 4283) & 359 & 359 & 359 \\ \hline
|
||||||
|
graph9 & (282, 4009) & 669 & 669 & 693 \\ \hline
|
||||||
|
graph9 & (741, 325) & 489 & 489 & 489 \\ \hline
|
||||||
|
graph9 & (3275, 427) & 534 & 534 & 586 \\ \hline
|
||||||
|
graph10 & (264, 3217) & 573 & 573 & 668 \\ \hline
|
||||||
|
graph10 & (1932, 86) & 786 & 786 & 786 \\ \hline
|
||||||
|
graph10 & (3789, 3859) & 446 & 446 & 446 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
36
output/graphs_memory.out
Normal file
36
output/graphs_memory.out
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
\begin{table}[]
|
||||||
|
\begin{tabular}{|l|l|l|l|l|}
|
||||||
|
\hline
|
||||||
|
nazwa grafu & (s, t) & Dijkstra & A* & Bi A* \\ \hline
|
||||||
|
graph1 & (557, 2854) & 1291640 & 1517868 & 1112140 \\ \hline
|
||||||
|
graph1 & (2019, 2765) & 1407028 & 1665338 & 1101624 \\ \hline
|
||||||
|
graph1 & (3637, 530) & 709876 & 806404 & 874216 \\ \hline
|
||||||
|
graph2 & (2931, 3234) & 725704 & 845620 & 921180 \\ \hline
|
||||||
|
graph2 & (3164, 1155) & 1138540 & 1372780 & 1005032 \\ \hline
|
||||||
|
graph2 & (2276, 343) & 1126336 & 1342828 & 908816 \\ \hline
|
||||||
|
graph3 & (807, 623) & 1478223 & 1755420 & 1060112 \\ \hline
|
||||||
|
graph3 & (3745, 2398) & 1505936 & 1788924 & 1104832 \\ \hline
|
||||||
|
graph3 & (2390, 655) & 1158108 & 1384084 & 972808 \\ \hline
|
||||||
|
graph4 & (4620, 67) & 1612780 & 1877684 & 1743524 \\ \hline
|
||||||
|
graph4 & (4213, 2705) & 1753420 & 2045228 & 1803180 \\ \hline
|
||||||
|
graph4 & (2556, 2853) & 1723964 & 1991748 & 2015896 \\ \hline
|
||||||
|
graph5 & (3335, 2706) & 1129316 & 1346284 & 869980 \\ \hline
|
||||||
|
graph5 & (2950, 1368) & 1180976 & 1427900 & 1072292 \\ \hline
|
||||||
|
graph5 & (657, 2650) & 502992 & 567224 & 841208 \\ \hline
|
||||||
|
graph6 & (4133, 3082) & 694784 & 798844 & 915644 \\ \hline
|
||||||
|
graph6 & (641, 218) & 1278204 & 1524012 & 1221392 \\ \hline
|
||||||
|
graph6 & (4168, 2508) & 925364 & 1061364 & 1017992 \\ \hline
|
||||||
|
graph7 & (300, 1212) & 565432 & 638932 & 835824 \\ \hline
|
||||||
|
graph7 & (1872, 3056) & 509820 & 581528 & 1041196 \\ \hline
|
||||||
|
graph7 & (2673, 1551) & 1140220 & 1370768 & 970416 \\ \hline
|
||||||
|
graph8 & (1788, 319) & 533628 & 594472 & 1107332 \\ \hline
|
||||||
|
graph8 & (3219, 452) & 1293896 & 1548348 & 1099560 \\ \hline
|
||||||
|
graph8 & (4330, 4283) & 1151164 & 1359620 & 959408 \\ \hline
|
||||||
|
graph9 & (282, 4009) & 2240936 & 2677836 & 1717560 \\ \hline
|
||||||
|
graph9 & (741, 325) & 1009700 & 1138540 & 1657380 \\ \hline
|
||||||
|
graph9 & (3275, 427) & 2224496 & 2665012 & 1880452 \\ \hline
|
||||||
|
graph10 & (264, 3217) & 1254612 & 1497412 & 1155928 \\ \hline
|
||||||
|
graph10 & (1932, 86) & 1318108 & 1577268 & 1172436 \\ \hline
|
||||||
|
graph10 & (3789, 3859) & 833436 & 973244 & 939008 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
36
output/graphs_times.out
Normal file
36
output/graphs_times.out
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
\begin{table}[]
|
||||||
|
\begin{tabular}{|l|l|l|l|l|}
|
||||||
|
\hline
|
||||||
|
nazwa grafu & (s, t) & Dijkstra & A* & Bi A* \\ \hline
|
||||||
|
graph1 & (557, 2854) & 0.56539 & 0.54258 & 0.02294 \\ \hline
|
||||||
|
graph1 & (2019, 2765) & 0.83885 & 0.83377 & 0.02593 \\ \hline
|
||||||
|
graph1 & (3637, 530) & 0.07081 & 0.07181 & 0.00898 \\ \hline
|
||||||
|
graph2 & (2931, 3234) & 0.10388 & 0.09968 & 0.01496 \\ \hline
|
||||||
|
graph2 & (3164, 1155) & 0.34259 & 0.33861 & 0.01795 \\ \hline
|
||||||
|
graph2 & (2276, 343) & 0.28973 & 0.28291 & 0.01197 \\ \hline
|
||||||
|
graph3 & (807, 623) & 0.83488 & 0.82191 & 0.01693 \\ \hline
|
||||||
|
graph3 & (3745, 2398) & 0.84344 & 0.8455 & 0.02094 \\ \hline
|
||||||
|
graph3 & (2390, 655) & 0.28474 & 0.28483 & 0.01396 \\ \hline
|
||||||
|
graph4 & (4620, 67) & 0.8794 & 0.8789 & 0.02892 \\ \hline
|
||||||
|
graph4 & (4213, 2705) & 1.13884 & 1.17542 & 0.02793 \\ \hline
|
||||||
|
graph4 & (2556, 2853) & 1.15356 & 1.22388 & 0.1139 \\ \hline
|
||||||
|
graph5 & (3335, 2706) & 0.47613 & 0.33744 & 0.00997 \\ \hline
|
||||||
|
graph5 & (2950, 1368) & 0.42144 & 0.41225 & 0.02294 \\ \hline
|
||||||
|
graph5 & (657, 2650) & 0.02793 & 0.02992 & 0.00898 \\ \hline
|
||||||
|
graph6 & (4133, 3082) & 0.06682 & 0.06733 & 0.01297 \\ \hline
|
||||||
|
graph6 & (641, 218) & 0.57718 & 0.57742 & 0.04041 \\ \hline
|
||||||
|
graph6 & (4168, 2508) & 0.31241 & 0.28752 & 0.01792 \\ \hline
|
||||||
|
graph7 & (300, 1212) & 0.05685 & 0.05883 & 0.00795 \\ \hline
|
||||||
|
graph7 & (1872, 3056) & 0.03494 & 0.0359 & 0.03089 \\ \hline
|
||||||
|
graph7 & (2673, 1551) & 0.36807 & 0.366 & 0.01496 \\ \hline
|
||||||
|
graph8 & (1788, 319) & 0.03391 & 0.03292 & 0.02391 \\ \hline
|
||||||
|
graph8 & (3219, 452) & 0.61233 & 0.61523 & 0.02097 \\ \hline
|
||||||
|
graph8 & (4330, 4283) & 0.38218 & 0.37903 & 0.01396 \\ \hline
|
||||||
|
graph9 & (282, 4009) & 1.36691 & 1.37665 & 0.0229 \\ \hline
|
||||||
|
graph9 & (741, 325) & 0.16356 & 0.16663 & 0.02192 \\ \hline
|
||||||
|
graph9 & (3275, 427) & 1.39584 & 1.39674 & 0.06485 \\ \hline
|
||||||
|
graph10 & (264, 3217) & 0.49667 & 0.49797 & 0.02892 \\ \hline
|
||||||
|
graph10 & (1932, 86) & 0.59541 & 0.58572 & 0.03887 \\ \hline
|
||||||
|
graph10 & (3789, 3859) & 0.1825 & 0.18169 & 0.01293 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
36
output/grids_memory.out
Normal file
36
output/grids_memory.out
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
\begin{table}[]
|
||||||
|
\begin{tabular}{|l|l|l|l|l|}
|
||||||
|
\hline
|
||||||
|
nazwa siatki & (s, t) & Dijkstra & A* & Bi A* \\ \hline
|
||||||
|
grid1 & ((208, 78), (193, 313)) & 13175208 & 5960837 & 14074640 \\ \hline
|
||||||
|
grid1 & ((133, 142), (282, 167)) & 11188912 & 5216016 & 14609812 \\ \hline
|
||||||
|
grid1 & ((224, 298), (249, 137)) & 10972088 & 5822780 & 14950104 \\ \hline
|
||||||
|
grid2 & ((163, 84), (144, 201)) & 5849168 & 2957536 & 7555256 \\ \hline
|
||||||
|
grid2 & ((94, 101), (128, 189)) & 5343824 & 3039216 & 7612488 \\ \hline
|
||||||
|
grid2 & ((154, 224), (157, 90)) & 5912496 & 2590128 & 7101992 \\ \hline
|
||||||
|
grid3 & ((191, 133), (180, 155)) & 2740648 & 2422680 & 7300360 \\ \hline
|
||||||
|
grid3 & ((159, 245), (269, 251)) & 9316760 & 3381848 & 7864808 \\ \hline
|
||||||
|
grid3 & ((103, 190), (123, 99)) & 6617248 & 2996656 & 7763936 \\ \hline
|
||||||
|
grid4 & ((130, 350), (59, 203)) & 11425208 & 6628816 & 15638608 \\ \hline
|
||||||
|
grid4 & ((108, 314), (130, 162)) & 10967424 & 5115480 & 14182476 \\ \hline
|
||||||
|
grid4 & ((152, 212), (280, 254)) & 13013960 & 5950344 & 14811352 \\ \hline
|
||||||
|
grid5 & ((193, 333), (93, 223)) & 18250132 & 8540904 & 17088024 \\ \hline
|
||||||
|
grid5 & ((240, 368), (202, 168)) & 18239428 & 8508956 & 17866616 \\ \hline
|
||||||
|
grid5 & ((267, 406), (328, 293)) & 8760144 & 6492704 & 15933288 \\ \hline
|
||||||
|
grid6 & ((155, 104), (225, 147)) & 5992328 & 3410328 & 7946864 \\ \hline
|
||||||
|
grid6 & ((248, 188), (206, 256)) & 5428616 & 3151168 & 7572016 \\ \hline
|
||||||
|
grid6 & ((212, 232), (244, 215)) & 2972352 & 2422680 & 7014920 \\ \hline
|
||||||
|
grid7 & ((206, 145), (266, 134)) & 5997360 & 4978744 & 13891832 \\ \hline
|
||||||
|
grid7 & ((257, 99), (255, 142)) & 4978576 & 4978576 & 13891664 \\ \hline
|
||||||
|
grid7 & ((92, 279), (247, 173)) & 13515236 & 9202544 & 19062000 \\ \hline
|
||||||
|
grid8 & ((267, 79), (133, 98)) & 6488952 & 3032800 & 7300056 \\ \hline
|
||||||
|
grid8 & ((231, 125), (163, 24)) & 8799464 & 4465016 & 8835800 \\ \hline
|
||||||
|
grid8 & ((135, 90), (270, 92)) & 5893664 & 2954108 & 6988848 \\ \hline
|
||||||
|
grid9 & ((35, 155), (42, 121)) & 2859976 & 2422680 & 6879472 \\ \hline
|
||||||
|
grid9 & ((198, 192), (25, 215)) & 8792032 & 3986756 & 7765844 \\ \hline
|
||||||
|
grid9 & ((78, 104), (108, 271)) & 6741008 & 4060480 & 8109348 \\ \hline
|
||||||
|
grid10 & ((191, 266), (304, 264)) & 10898012 & 4978744 & 13891832 \\ \hline
|
||||||
|
grid10 & ((235, 350), (284, 64)) & 19392492 & 12808116 & 19511180 \\ \hline
|
||||||
|
grid10 & ((142, 189), (140, 313)) & 11011232 & 5395416 & 14090392 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
36
output/grids_times.out
Normal file
36
output/grids_times.out
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
\begin{table}[]
|
||||||
|
\begin{tabular}{|l|l|l|l|l|}
|
||||||
|
\hline
|
||||||
|
nazwa siatki & (s, t) & Dijkstra & A* & Bi A* \\ \hline
|
||||||
|
grid1 & ((208, 78), (193, 313)) & 0.97547 & 0.65044 & 0.32221 \\ \hline
|
||||||
|
grid1 & ((133, 142), (282, 167)) & 0.67833 & 0.21254 & 0.27779 \\ \hline
|
||||||
|
grid1 & ((224, 298), (249, 137)) & 0.68965 & 0.28482 & 0.31787 \\ \hline
|
||||||
|
grid2 & ((163, 84), (144, 201)) & 0.37655 & 0.09874 & 0.12965 \\ \hline
|
||||||
|
grid2 & ((94, 101), (128, 189)) & 0.29137 & 0.10773 & 0.13267 \\ \hline
|
||||||
|
grid2 & ((154, 224), (157, 90)) & 0.38826 & 0.07979 & 0.08727 \\ \hline
|
||||||
|
grid3 & ((191, 133), (180, 155)) & 0.06483 & 0.03992 & 0.0783 \\ \hline
|
||||||
|
grid3 & ((159, 245), (269, 251)) & 0.99566 & 0.11769 & 0.12467 \\ \hline
|
||||||
|
grid3 & ((103, 190), (123, 99)) & 0.47224 & 0.09176 & 0.11416 \\ \hline
|
||||||
|
grid4 & ((130, 350), (59, 203)) & 0.7361 & 0.31638 & 0.34315 \\ \hline
|
||||||
|
grid4 & ((108, 314), (130, 162)) & 0.6939 & 0.19754 & 0.21945 \\ \hline
|
||||||
|
grid4 & ((152, 212), (280, 254)) & 1.86474 & 0.25312 & 0.27071 \\ \hline
|
||||||
|
grid5 & ((193, 333), (93, 223)) & 1.70941 & 0.51266 & 0.42399 \\ \hline
|
||||||
|
grid5 & ((240, 368), (202, 168)) & 1.47604 & 0.77196 & 0.87325 \\ \hline
|
||||||
|
grid5 & ((267, 406), (328, 293)) & 0.5223 & 0.23535 & 0.30725 \\ \hline
|
||||||
|
grid6 & ((155, 104), (225, 147)) & 0.39372 & 0.13515 & 0.1486 \\ \hline
|
||||||
|
grid6 & ((248, 188), (206, 256)) & 0.27286 & 0.08628 & 0.10971 \\ \hline
|
||||||
|
grid6 & ((212, 232), (244, 215)) & 0.08833 & 0.03491 & 0.06984 \\ \hline
|
||||||
|
grid7 & ((206, 145), (266, 134)) & 0.28069 & 0.06805 & 0.12022 \\ \hline
|
||||||
|
grid7 & ((257, 99), (255, 142)) & 0.0748 & 0.05184 & 0.11336 \\ \hline
|
||||||
|
grid7 & ((92, 279), (247, 173)) & 1.05079 & 0.7273 & 0.70458 \\ \hline
|
||||||
|
grid8 & ((267, 79), (133, 98)) & 0.47181 & 0.11669 & 0.11124 \\ \hline
|
||||||
|
grid8 & ((231, 125), (163, 24)) & 0.5606 & 0.26279 & 0.24619 \\ \hline
|
||||||
|
grid8 & ((135, 90), (270, 92)) & 0.35506 & 0.11719 & 0.08475 \\ \hline
|
||||||
|
grid9 & ((35, 155), (42, 121)) & 0.08375 & 0.03793 & 0.05582 \\ \hline
|
||||||
|
grid9 & ((198, 192), (25, 215)) & 0.47002 & 0.29917 & 0.16811 \\ \hline
|
||||||
|
grid9 & ((78, 104), (108, 271)) & 0.45982 & 0.2244 & 0.21892 \\ \hline
|
||||||
|
grid10 & ((191, 266), (304, 264)) & 0.81184 & 0.1002 & 0.13913 \\ \hline
|
||||||
|
grid10 & ((235, 350), (284, 64)) & 1.54801 & 2.3618 & 2.10291 \\ \hline
|
||||||
|
grid10 & ((142, 189), (140, 313)) & 0.718 & 0.17307 & 0.18807 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
36
output/grids_weights.out
Normal file
36
output/grids_weights.out
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
\begin{table}[]
|
||||||
|
\begin{tabular}{|l|l|l|l|l|}
|
||||||
|
\hline
|
||||||
|
nazwa siatki & (s, t) & Dijkstra & A* & Bi A* \\ \hline
|
||||||
|
grid1 & ((208, 78), (193, 313)) & 256 & 256 & 256 \\ \hline
|
||||||
|
grid1 & ((133, 142), (282, 167)) & 174 & 174 & 174 \\ \hline
|
||||||
|
grid1 & ((224, 298), (249, 137)) & 186 & 186 & 186 \\ \hline
|
||||||
|
grid2 & ((163, 84), (144, 201)) & 136 & 136 & 136 \\ \hline
|
||||||
|
grid2 & ((94, 101), (128, 189)) & 122 & 122 & 122 \\ \hline
|
||||||
|
grid2 & ((154, 224), (157, 90)) & 145 & 145 & 145 \\ \hline
|
||||||
|
grid3 & ((191, 133), (180, 155)) & 33 & 33 & 33 \\ \hline
|
||||||
|
grid3 & ((159, 245), (269, 251)) & 130 & 130 & 130 \\ \hline
|
||||||
|
grid3 & ((103, 190), (123, 99)) & 115 & 115 & 115 \\ \hline
|
||||||
|
grid4 & ((130, 350), (59, 203)) & 218 & 218 & 218 \\ \hline
|
||||||
|
grid4 & ((108, 314), (130, 162)) & 176 & 176 & 176 \\ \hline
|
||||||
|
grid4 & ((152, 212), (280, 254)) & 170 & 170 & 170 \\ \hline
|
||||||
|
grid5 & ((193, 333), (93, 223)) & 210 & 210 & 210 \\ \hline
|
||||||
|
grid5 & ((240, 368), (202, 168)) & 238 & 238 & 238 \\ \hline
|
||||||
|
grid5 & ((267, 406), (328, 293)) & 174 & 174 & 174 \\ \hline
|
||||||
|
grid6 & ((155, 104), (225, 147)) & 119 & 119 & 119 \\ \hline
|
||||||
|
grid6 & ((248, 188), (206, 256)) & 110 & 110 & 110 \\ \hline
|
||||||
|
grid6 & ((212, 232), (244, 215)) & 49 & 49 & 49 \\ \hline
|
||||||
|
grid7 & ((206, 145), (266, 134)) & 73 & 73 & 73 \\ \hline
|
||||||
|
grid7 & ((257, 99), (255, 142)) & 53 & 53 & 53 \\ \hline
|
||||||
|
grid7 & ((92, 279), (247, 173)) & 261 & 261 & 261 \\ \hline
|
||||||
|
grid8 & ((267, 79), (133, 98)) & 153 & 153 & 153 \\ \hline
|
||||||
|
grid8 & ((231, 125), (163, 24)) & 169 & 169 & 169 \\ \hline
|
||||||
|
grid8 & ((135, 90), (270, 92)) & 149 & 149 & 149 \\ \hline
|
||||||
|
grid9 & ((35, 155), (42, 121)) & 63 & 63 & 63 \\ \hline
|
||||||
|
grid9 & ((198, 192), (25, 215)) & 202 & 202 & 202 \\ \hline
|
||||||
|
grid9 & ((78, 104), (108, 271)) & 201 & 201 & 201 \\ \hline
|
||||||
|
grid10 & ((191, 266), (304, 264)) & 125 & 125 & 125 \\ \hline
|
||||||
|
grid10 & ((235, 350), (284, 64)) & 353 & 353 & 353 \\ \hline
|
||||||
|
grid10 & ((142, 189), (140, 313)) & 154 & 154 & 154 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
Loading…
Reference in New Issue
Block a user