A*?

Let's talk about algorithms!

Moderator: Board moderators

Post Reply
msn
New poster
Posts: 6
Joined: Mon Feb 24, 2003 12:29 pm

A*?

Post by msn »

What are the differences betwen Dijkstra and A*
Nak
New poster
Posts: 14
Joined: Sat Oct 26, 2002 5:59 am
Location: Sweden

Post by Nak »

A* uses a heuristic to guide it's search. The only difference is what value you use for nodes on the priority queue. In Dijkstra you order nodes with their distance from the start node. In A* you simply add a heuristic value which estimates the distance from the current node to the goal. This way the search will choose likely nodes first. As long as the heuristic is admissible (never pessimistic, less than or equal to the real distance) the solution found will be optimal.
msn
New poster
Posts: 6
Joined: Mon Feb 24, 2003 12:29 pm

Post by msn »

How can i use A* in Pascal ?
Shahab
New poster
Posts: 24
Joined: Sun Nov 10, 2002 2:17 pm

Post by Shahab »

hi, every body

i think that Nak must add this note that the A* is optimally efficient
it means that if u use an unit heuristic in some different algorithms including A*, the A* will use the minimum time to find it

Best regards,
Shahab Tasharrofi
Post Reply

Return to “Algorithms”