Click here to Skip to main content
15,909,324 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionPrime Number Generation Pin
Joshua Guyette14-Dec-12 9:36
Joshua Guyette14-Dec-12 9:36 
AnswerRe: Prime Number Generation Pin
Alan Balkany17-Dec-12 4:39
Alan Balkany17-Dec-12 4:39 
AnswerRe: Prime Number Generation Pin
April Fans19-Dec-12 19:34
April Fans19-Dec-12 19:34 
AnswerRe: Prime Number Generation Pin
_Kel_30-Dec-12 4:44
_Kel_30-Dec-12 4:44 
QuestionFinding Bounding Entities Pin
Kyudos9-Dec-12 12:10
Kyudos9-Dec-12 12:10 
AnswerRe: Finding Bounding Entities Pin
Alan Balkany10-Dec-12 5:28
Alan Balkany10-Dec-12 5:28 
Questionneed a guidance Pin
en4114-Dec-12 22:08
en4114-Dec-12 22:08 
AnswerRe: need a guidance Pin
Alan Balkany5-Dec-12 4:55
Alan Balkany5-Dec-12 4:55 
There are many ways to do this. Probably the simplest is depth-first search, which visits each unvisited node connected to the current node, recursively.

To implement this, you need a Boolean "visited" member of the node structure, which is initially false in all nodes.

You call the search function with any node to start. The function then sets "visited" to true, and calls itself recursively with each of the node's unvisited neighbors. When it returns at the top level, you've visited all the nodes.
"Microsoft -- Adding unnecessary complexity to your work since 1987!"

AnswerRe: need a guidance Pin
Dr. Hurol Aslan1-Feb-13 3:55
Dr. Hurol Aslan1-Feb-13 3:55 
GeneralUSING PARTICLE SWARM OPTIMIZATION IN MATLAB Pin
李不凡 Dec20123-Dec-12 6:34
李不凡 Dec20123-Dec-12 6:34 
Questionalgorithms??? Pin
en4111-Dec-12 15:13
en4111-Dec-12 15:13 
AnswerRe: algorithms??? Pin
Peter_in_27801-Dec-12 19:34
professionalPeter_in_27801-Dec-12 19:34 
QuestionRe: algorithms??? Pin
April Fans27-Dec-12 4:17
April Fans27-Dec-12 4:17 
NewsWilling to Trade Ad Space on My site for work on my site Pin
Beyslist114-Nov-12 17:15
Beyslist114-Nov-12 17:15 
QuestionNeed a Classified Ad Aggregator Algorithm Pin
Beyslist114-Nov-12 17:14
Beyslist114-Nov-12 17:14 
Questionfinding the best algorithm Pin
speedchandu20-Oct-12 11:32
speedchandu20-Oct-12 11:32 
AnswerRe: finding the best algorithm Pin
Alan Balkany22-Oct-12 5:00
Alan Balkany22-Oct-12 5:00 
GeneralRe: finding the best algorithm Pin
speedchandu22-Oct-12 20:12
speedchandu22-Oct-12 20:12 
GeneralRe: finding the best algorithm Pin
_Kel_22-Oct-12 23:36
_Kel_22-Oct-12 23:36 
GeneralRe: finding the best algorithm Pin
AshrafKawarezmey14-Nov-12 4:57
AshrafKawarezmey14-Nov-12 4:57 
AnswerRe: finding the best algorithm Pin
YvesDaoust22-Oct-12 21:41
YvesDaoust22-Oct-12 21:41 
AnswerRe: finding the best algorithm Pin
YvesDaoust22-Oct-12 22:11
YvesDaoust22-Oct-12 22:11 
GeneralRe: finding the best algorithm Pin
Peter_in_27802-Dec-12 14:45
professionalPeter_in_27802-Dec-12 14:45 
GeneralRe: finding the best algorithm Pin
YvesDaoust2-Dec-12 20:59
YvesDaoust2-Dec-12 20:59 
GeneralRe: finding the best algorithm Pin
Peter_in_27802-Dec-12 23:34
professionalPeter_in_27802-Dec-12 23:34 

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.