Answer the question
In order to leave comments, you need to log in
How to bypass the maximum number of edges of an undirected weighted graph?
There is an undirected weighted cyclic graph, an entry vertex is given. It is necessary to bypass the maximum number of vertices and then return to the original one, without increasing the maximum allowable weight (which is also set).
Please help with the algorithm, or at least advise some literature.
UPD. I still think that it is necessary to build on the smallest distance. Until the maximum weight is exceeded, look for the minimum path to the vertex (also because the graph is large, and the vertices that should be bypassed make up only a fraction of all). I read a little e-maxx, found this algorithm for finding the shortest paths between all n ... , maybe it will help me, but I still don’t know how to approach it, with algorithms for "you". And, yes, the maximum weight can be slightly exceeded.
UPD. Just in case, I attach a file with an adjacency matrix
Answer the question
In order to leave comments, you need to log in
There is an undirected weighted cyclic graph, an entry vertex is given. It is necessary to bypass the maximum number of vertices and then return to the original one, without increasing the maximum allowable weight (which is also set).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question