C
C
CrazyAngel2013-10-27 20:29:08
Algorithms
CrazyAngel, 2013-10-27 20:29:08

Pathfinding with mandatory points

Please tell me what to look for.

There are points on the map, as well as a path for the object, but this path is not completely written.
that is, there is a way: point 1; point 2; point 4; point 6;
But what to pass a way, I should make such way: point 1; point 2; point 58; point 4; point 17; point 6;

Answer the question

In order to leave comments, you need to log in

6 answer(s)
M
mayorovp, 2013-10-27
@mayorovp

This problem obviously reduces to the problem of finding the optimal path between two points, without restrictions on mandatory points.
But the solution of the second problem already depends on what a “map” is, what are the optimality criteria, etc.

B
barker, 2013-10-27
@barker

If you need to figure out the algorithm, then there is not enough information. How are the missing points described? As I understand it, there is a way, but it needs to be supplemented with dots? Then what are the criteria for including the missing points in each segment of the path? Etc.

S
Sergey Lerg, 2013-10-27
@Lerg

Sequential pathfinding from point to point using "A*" algorithm?
http://en.wikipedia.org/wiki/A*_search_algorithm

T
TDK, 2013-10-28
@TDK

If the points cannot be visited several times, then here. Let the points that are already known lie in the points array. Then, using the wave or A*, we find all the shortest distances from points[i] to points[i+1] and put them in the paths[i,j] array, where j is the j-th path from points[i] to points[i+ one]. Then, by enumeration (or you can also consider paths on a graph of paths), we try to build a common path from all paths, such that no point is visited twice. Those. if in a stupid way: we take paths[1,1] and iterate over all paths[2,1], etc.
If points can be visited several times, then as mentioned above: sequential search for a path from point to point.

S
sizenko, 2013-11-22
@sizenko

George everything is simple - contact me (Sizenko Dmitry) and let's finish the job. I advise you to get in touch and answer messages on VK, skype or mail

S
sizenko, 2013-12-16
@sizenko

George, contact me urgently, your silence will not lead to anything good.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question