GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Jan-2009, 15:42
biancareanys biancareanys is offline
New Member
 
Join Date: Jan 2009
Posts: 2
biancareanys is on a distinguished road
Lightbulb

Shortest path includes all subset


In graphs (V,E) with negative edge weights but with no negative cycles , X <V and s, t in V .I need an algorithm to decide if exist in the graph shortest path from s to t with which includes all the nodes from X
i've tried to modify A* , Bellman-Ford algorithms but without success .
  #2  
Old 05-Jan-2009, 16:15
Blake's Avatar
Blake Blake is offline
Member
 
Join Date: Nov 2005
Posts: 255
Blake is a jewel in the roughBlake is a jewel in the rough

Re: shortest path includes all subset


If I'm understanding what you're asking correctly, the problem you're trying to solve is NP-Complete.
__________________
www.blake-foster.com
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortest path algorithm with a maximum number of edges limit blackslither C++ Forum 1 28-Dec-2008 11:39
Shortest Path for Airport mxb1145 C++ Forum 1 16-Dec-2008 07:28
Need Help - Shortest Path Problem mas287 C Programming Language 5 18-Jun-2008 03:59
Shortest Path Program. bomber456 C++ Forum 1 05-Mar-2007 13:32
shortest path algorithm and file saving Pandiani C++ Forum 10 17-Jul-2006 11:46

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 05:15.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.