Re: Graph optimization
- From: Thad Smith <ThadSmith@xxxxxxx>
- Date: Sat, 25 Feb 2006 19:29:15 -0700
amol.panchabhai@xxxxxxxxx wrote:
I have a black box with a complex internal circuitry that is
represented in the form of a graph. I have to abstract the graph by
reducing the number of internal points and constructing cumulative
paths from each input to every possible output in case a path exists (a
series combination of edges). Each edge of the graph has a weight
associated with it. I have to add up all the weights to form the
resultant path.
It is unclear from your description what you know about the box.
Normally, "black box" means that you have no /a priori/ description of
the contents, yet the description indicates you might know weights of
edges between internal nodes. This is confusing.
My representation of the graph is in the form of a linked list
structure as I do not know the number of nodes in the graph apriori ..
Forget the data structure for a moment. What information, exactly,
are you given about your graph?
I have to find a cumulative path from each input to
every possible output in the most efficient manner. I know the input
points as well as the output points.
Again what information do you have? If you know the graph and the
edge weights, you can use Dijkstra's algorithm for shortest path, if
that is what you are seeking.
Can any C++ guru suggest an detailed algorithm with pseudo code for
solving this problem ?
Oh, sorry, I'm not a C++ guru. Ignore this post.
--
Thad
.
- Follow-Ups:
- Re: Graph optimization
- From: Logan Shaw
- Re: Graph optimization
- References:
- Graph optimization
- From: amol . panchabhai
- Graph optimization
- Prev by Date: Re: proportionality problem
- Next by Date: Re: proportionality problem
- Previous by thread: Graph optimization
- Next by thread: Re: Graph optimization
- Index(es):
Relevant Pages
|