J
J
JunPupil2016-01-19 23:52:34
C++ / C#
JunPupil, 2016-01-19 23:52:34

How to find the shortest path in a graph with a heuristic algorithm?

Hello,
a weighted undirected graph is given by an adjacency matrix. need a heuristic algorithm to find the shortest path between two points. I understood A * and ants, in the end nothing good came of it.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
U
uvelichitel, 2016-01-20
@uvelichitel

The simplest heuristic - find some path and optimize it until you get bored

A
AtomKrieg, 2016-01-20
@AtomKrieg

www.redblobgames.com Pathfinding
examples here

S
SeptiM, 2016-01-20
@SeptiM

Start simple, with Dijkstra: e-maxx.ru/algo/dijkstra

A
Ai Lab, 2016-01-20
@vpuhoff

HEURISTICS - A set of research methods that contribute to the discovery of the previously unknown.
That is, "heuristic" is a method that "does something smart and useful", that is, nothing specific. As uvelichitel already said, start with any algorithm, then look for more optimal ways, as this is another question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question