Click here to Skip to main content
15,892,927 members
Home / Discussions / Algorithms
   

Algorithms

 
Questioninversion algorithm Pin
amnakhan78612-Aug-13 18:51
amnakhan78612-Aug-13 18:51 
GeneralRe: inversion algorithm Pin
harold aptroot15-Aug-13 21:43
harold aptroot15-Aug-13 21:43 
AnswerRe: inversion algorithm Pin
Alan Balkany16-Aug-13 4:31
Alan Balkany16-Aug-13 4:31 
QuestionTLS HMAC and the Pseudorandom Function Simplification Assistance Pin
Dominick Marciano10-Aug-13 19:37
professionalDominick Marciano10-Aug-13 19:37 
Question[Closure and System.Reflection] Pin
Member 823782310-Aug-13 1:43
Member 823782310-Aug-13 1:43 
QuestionGARCH algo Pin
ExcellentOrg5-Aug-13 22:46
ExcellentOrg5-Aug-13 22:46 
QuestionHow to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
ahuzhangbo2-Aug-13 19:08
ahuzhangbo2-Aug-13 19:08 
AnswerRe: How to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
Argonia14-Aug-13 5:10
professionalArgonia14-Aug-13 5:10 
I think the best way of solving is using Divide and conquer/Dynamic Optimization. Just find the shortest path between the first node and the intermediate nodes using BFS until you find the first of these nodes. After that you get that found node and using BFS you look for the next intermediate node and so on until you find the last intermediate node. After that using BFS you find the path between the last visited intermediate node and the last given node.

Before all of that you can check in case your graph is not connected if the first , last and all of the intermediate nodes are in one subgraph.

Other way of solving the problem is using complete depletion algorithm. This means making all possible paths and looking for the min path which contains the intermediate nodes.

I hope this will help you Smile | :)
Microsoft ... the only place where VARIANT_TRUE != true

GeneralRe: How to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
ahuzhangbo14-Aug-13 15:30
ahuzhangbo14-Aug-13 15:30 
GeneralRe: How to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
Argonia14-Aug-13 21:36
professionalArgonia14-Aug-13 21:36 
GeneralRe: How to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
ahuzhangbo15-Aug-13 0:21
ahuzhangbo15-Aug-13 0:21 
GeneralRe: How to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
Argonia15-Aug-13 1:22
professionalArgonia15-Aug-13 1:22 
GeneralRe: How to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
ahuzhangbo15-Aug-13 16:03
ahuzhangbo15-Aug-13 16:03 
AnswerRe: How to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
Member 1222963626-Dec-15 6:59
Member 1222963626-Dec-15 6:59 
Questionneed help in algorithum Pin
snehal1221-Aug-13 21:16
snehal1221-Aug-13 21:16 
GeneralRe: need help in algorithum Pin
harold aptroot1-Aug-13 22:05
harold aptroot1-Aug-13 22:05 
GeneralRe: need help in algorithum Pin
Richard MacCutchan1-Aug-13 23:16
mveRichard MacCutchan1-Aug-13 23:16 
GeneralRe: need help in algorithum Pin
Bernhard Hiller2-Aug-13 0:02
Bernhard Hiller2-Aug-13 0:02 
AnswerRe: need help in algorithum Pin
SoMad2-Aug-13 0:08
professionalSoMad2-Aug-13 0:08 
GeneralRe: need help in algorithum Pin
koll Zhu22-Sep-13 23:55
koll Zhu22-Sep-13 23:55 
QuestionCubic Spline Interpolation [Answered] Pin
Skippums18-Jul-13 15:02
Skippums18-Jul-13 15:02 
AnswerRe: Cubic Spline Interpolation Pin
Bernhard Hiller18-Jul-13 20:53
Bernhard Hiller18-Jul-13 20:53 
GeneralRe: Cubic Spline Interpolation Pin
Skippums19-Jul-13 7:38
Skippums19-Jul-13 7:38 
GeneralRe: Cubic Spline Interpolation Pin
Stefan_Lang22-Jul-13 1:21
Stefan_Lang22-Jul-13 1:21 
AnswerRe: Cubic Spline Interpolation Pin
Stefan_Lang22-Jul-13 2:07
Stefan_Lang22-Jul-13 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.