shortest-path
creating predicates from facts from a database in prolog from the open street map project
i downloaded some facts from open streetmap project, you can download it here http://www.mediafire.com/?15pttpp847ld71x[详细]
2023-01-26 18:31 分类:问答Dijkstra vs. Floyd-Warshall: Finding optimal route on all node pairs
I am reading up on Dijkstra\'s algorithm and the Floyd-Warshall algorithm. I understand that Dijkstra\'s finds the optimal route from one node to all other nodes and Floyd-Warshall finds the optimal r[详细]
2023-01-25 11:37 分类:问答Using a fibonacci heap, is it possible/easy to represent neighbors aswell as minimum distance
I am trying to devise an implementation of dijkstras with fibonacci heaps. What I am trying to understand is if it is possible to represent, other than the min开发者_StackOverflowimum distance in O(lo[详细]
2023-01-24 10:01 分类:问答Shortest route with no set destination in Google Maps V3?
So I\'m just learning javascript to mess with the Google Maps API. I was wondering if anyone had an elegant solution to this problem I\'m running into.[详细]
2023-01-22 12:12 分类:问答Does dijkstras algorithm relax the edges of the shortest path in order?
In 开发者_开发技巧\"Introduction to algorithms, 3rd edition\" exercise 24.3-5 wants an example that this is wrong (not always true). Is that possible? In my mind this is impossible because every edge[详细]
2023-01-17 04:37 分类:问答A* implementation always returns same value
I seem to be either losing my mind or misimplementing the A* algorithm: Below is my code, it seems that no matter what values I enter it will always return 360.Am I missing some critical piece of inf[详细]
2023-01-17 03:05 分类:问答shortest paths not path in graph
I was wondering if there is an algorithm which would find shortest paths in graph. Let\'s say that I have a graph where there are couples of path from one vertex to another. Two or more of these path[详细]
2023-01-10 16:17 分类:问答develop distance matrix using coordinates
hey, I have been given a problem, I basically have been given a piece of grid paper of arbitary size and have to develop a distance matrix using only the coordinates for each of the grid points on the[详细]
2023-01-07 20:14 分类:问答What is meant by diameter of a network?
The diagram shown on this link of the \"A graph with 6 vertices and 7 edges where the vertex no 6 on the far-left is a leaf vertex or a pendant vertex.\" has DIAMETER 4? right or wrong?[详细]
2023-01-06 11:19 分类:问答Google Map Get Direction Search Algorithm
I learned that Google Map has a Get Direction feature that let users find the shortest path from one point to another. What search algorithm did Google used for this search? Is this algorithm can be i[详细]
2023-01-05 09:04 分类:问答