Pathfinding algorithm comparison: Dijkstra's vs. A* (A-Star)

Pathfinding algorithm comparison: Dijkstra's vs. A* (A-Star)

Anthony Madorsky

1 год назад

141,803 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@infraia
@infraia - 29.11.2024 21:35

So cool

Ответить
@darksider2162
@darksider2162 - 02.10.2024 21:18

du coup si je comprend bien Dijkstra's est plus longs mais donne un chemin plus précis alors que A* est extrêmement rapide mais ne donnera pas le chemin le plus court.

Ответить
@justrobin2176
@justrobin2176 - 20.07.2024 14:39

could you give out tutorial?

Ответить
@Sasham4
@Sasham4 - 09.07.2024 16:10

superb animation i got an idea for a new video game

Ответить
@OnfeVS
@OnfeVS - 10.06.2024 16:36

Tutorial de como usar blender please!

Ответить
@andyrob6565
@andyrob6565 - 18.05.2024 22:04

why does it flash bang me when it finds the path?

Ответить
@julienboistel914
@julienboistel914 - 09.05.2024 11:35

Great visu ! Do you have a Git where we can follow your work ?

Ответить
@AbdulSamad-kb3sm
@AbdulSamad-kb3sm - 04.05.2024 11:40

Wonderful!! Just wow ✨✨✨

Ответить
@alwaysluffy.
@alwaysluffy. - 03.05.2024 12:52

Hello, Please can someone tell me how to do this, is there any github repo on this project, please let me know if anyone has resources on this ?

Ответить
@ujjwalhat
@ujjwalhat - 03.05.2024 12:05

Code please ???

Ответить
@mr-dan-coleman
@mr-dan-coleman - 01.05.2024 23:55

Hi YT sent me here for some reason. Can someone far more intelligent than me explain how this is different to what something like Google Maps does? Or is it the same principle?

Ответить
@MartijnMols
@MartijnMols - 01.05.2024 16:41

would be cool to see how you made the visualisations

Ответить
@Sam-bt4fm
@Sam-bt4fm - 01.05.2024 10:54

Does A* have to flashbang us?

Ответить
@Juni_Dingo
@Juni_Dingo - 29.04.2024 21:11

That poorly-implemented A* reminds me of that ancient Intel joke:
me: what's 27/14
pentium: 3
me: that's wrong
pentium: maybe, but fast!

Ответить
@wlockuz4467
@wlockuz4467 - 28.04.2024 10:54

Looking at the video description, you can implement A* with greedy-best-first search since those are two different algorithms. So this is more of a Djikstra va Greedy-best-first search.

Ответить
@EdKolis
@EdKolis - 27.04.2024 23:53

Dijkstra: The evil empire is hunting for you.

A*: The evil empire is hunting for you - and they have spies everywhere.

Ответить
@Edvit40
@Edvit40 - 25.04.2024 22:58

WHY DID YOU FLASHBANG MEEEEEEEEEE

Ответить
@quint3ssent1a
@quint3ssent1a - 25.04.2024 09:25

Dijkstra is like doing work meticulously. A* is like doing "ehh, whatever, close enough."

Ответить
@LoPhatKao
@LoPhatKao - 25.04.2024 07:23

is it faster to climb straight over a mountain or go around it?
the length of the path may be longer, but the amount of time it takes to traverse is shorter
i submit that the a* implementation found the shortest temporal route
the expressways and bypasses it picked should be faster timewise due to their higher speed limits and lower number of traffic lights

Ответить
@rubenlarochelle1881
@rubenlarochelle1881 - 24.04.2024 14:52

So it comes down to: "Are you more in a rush of finding a path or to actually go there?"

Ответить
@dongameleone2489
@dongameleone2489 - 22.04.2024 02:19

what? you are unable to at least read some english text and tell us what tf is that a* algorithm?

Ответить
@andrewmerrick601
@andrewmerrick601 - 20.04.2024 01:39

This is not the fastest route on either one, this is a simulation of a path of least resistance (A*) and the other is a simulation of first discovery (Dijkstra)

both can connect the dots, neither are exactly accurate.

A* is unable to represent the speed of an object since Evey line has its own speed. Every intersection is a dilemma, and the less decisions it has to make the faster it moves.

Dijkstra is unable to connect obvious paths if the map appears broken until a path that connects the two is discovered. It then automatically assumes that this is the fastest path (first discovery) as seen in the last example. Even if there is a more efficient path.

Ответить
@MrGhosT29.
@MrGhosT29. - 19.04.2024 22:18

Para saber realmente cual es mejor seria probandolo en la vida real los dos tipos de sistemas, teniendo en cuenta el trafico y las distintas velocidades de las vias ya que muchas veces el mas corto no es el mas rapido

Ответить
@NguyenGiang_Basic
@NguyenGiang_Basic - 19.03.2024 06:47

finnally I found it, thanks <3

Ответить
@KremitDeFrog
@KremitDeFrog - 24.02.2024 09:29

A* is so much faster that it can afford to find a number of more paths so it can then evaluate the shortest of those.. and still likely finish processing faster than Dijkstra.. so it would be faster and very likely to provide the shortest route every time..

Ответить
@adamschneider868
@adamschneider868 - 28.01.2024 06:48

Is it possible for Dijkstras algorithm to log all the paths to all the nodes it searched on the journey to its Destination? Then you store these for later retrieval?

Ответить
@Speiger
@Speiger - 25.01.2024 01:15

Fun fact. A* breaks apart when you have more then 1 target.
Because it turns into O(X) while the other one stays at O(1) no matter how many targets are left.

Ответить
@johndeleon8741
@johndeleon8741 - 25.01.2024 00:31

Either that A* is not properly implemented or they're using a Potato as heuristic.

Ответить
@uwuowo4856
@uwuowo4856 - 23.01.2024 10:59

Singapore research !

Ответить
@marcomaltschik6951
@marcomaltschik6951 - 23.01.2024 02:34

A* is optimized dijkstra. If yout set the weight of the cost funtion to zero in A*, you basically only the path information(Dijkstra).

Ответить
@klimmesil9585
@klimmesil9585 - 16.01.2024 17:30

Fix the title this is not A* it's just A

Ответить
@flippert0
@flippert0 - 16.01.2024 16:34

Of course it starts in Rome. All roads lead to Rome.

Ответить
@josiahjack455
@josiahjack455 - 15.01.2024 07:47

Turns out one cannot simply use the Manhattan distance in Manhattan.

Ответить
@JordanMcCaughey
@JordanMcCaughey - 14.01.2024 21:01

A* is not implemented correctly. Why bother looking for a first arbitrary path solution, we want the shortest.

Ответить
@thesimpilot2022
@thesimpilot2022 - 13.01.2024 19:33

Is it possible to merge the intentions of both algorithms to find a partially efficient path while also ensuring there’s a lesser time for the algorithm to calculate?

Ответить
@henrykkaufman1488
@henrykkaufman1488 - 09.01.2024 13:43

Those algos might seem similar to unexperienced programmers, but they are diffirent things and serve diffirent purposes.

A* is a pathfinding algorithm and Djkstra is a mapping algorithm. Therefore it processes much more data than A* given the same dataset.

For example, in a game, use djkstra to map information on the game envirnoment for AI, and use A* for player controlled entities.

Ответить
@llejk
@llejk - 07.01.2024 19:51

I think you used a bad heuristic for A* . I was yelling “Manhattan Distance” at my screen, i bet that would work really well in NY example. Edit: Remembering A*, the heuristic works best if it (almost) always better than the real path. So euclidian distance at 60mph should work. Curious what you used?

Ответить
@abdulrahmanabunabhan4919
@abdulrahmanabunabhan4919 - 05.01.2024 14:44

What was the heuristic function used in this implementation?

Ответить
@omkarbhale442
@omkarbhale442 - 05.01.2024 00:16

I just got flashbanged a few times

Ответить
@aric7726
@aric7726 - 04.01.2024 13:46

Why don't the source and target actually line up with the map

Ответить
@TheMasonX23
@TheMasonX23 - 04.01.2024 08:54

Cool, but A* and Dijkstra should return the same shortest path

Ответить
@tylerbakeman
@tylerbakeman - 04.01.2024 08:33

A* is fast, but it’s weakness is obvious: moving backwards as part of the solution

Ответить
@camelotenglishtuition6394
@camelotenglishtuition6394 - 04.01.2024 08:10

Beautifully animated

Ответить
@tvguyofnature
@tvguyofnature - 04.01.2024 07:10

This is wild but the location you chose on the new york map is my house

Ответить
@FutureAIDev2015
@FutureAIDev2015 - 04.01.2024 04:39

Dijkstra's algorithm looks like how a slime mold navigates toward food.

Ответить
@nabeelsherazi8860
@nabeelsherazi8860 - 03.01.2024 04:46

your description says you used “greedy best first logic” - that is not A* which is why you don’t get the optimal solution

Ответить
@SebastianPuertaCO
@SebastianPuertaCO - 03.01.2024 03:53

Can you make a tutorial of how make this?, this is incredible

Ответить
@BooleanDisorder
@BooleanDisorder - 03.01.2024 01:45

Imagine an AI enhanced A* algorithm that has been trained on billions of these examples.

Ответить