Click here to Skip to main content
15,914,413 members
Home / Discussions / C#
   

C#

 
AnswerRe: DataTable Find Connected Object Pin
Moreno Airoldi18-Aug-09 7:47
Moreno Airoldi18-Aug-09 7:47 
You have to use a path finding algorithm. First you should define a structure which can describe your data set. The data structure for these kind of problems is usually a tree, but you should describe your problem more in detail. Are the connections one-way or two-way ?

Path finding can then be achieved by using a function to walk the data structure, starting from the source node (PC1) and visiting all of its children, and their children recursively, until the destination (PC4) node is found or you run out of children nodes.

If your connections are not one-way, then you must also flag the visited nodes in order to avoid infinite loops.

2+2=5 for very large amounts of 2
(always loved that one hehe!)

QuestionInvalid Padding when decrypting Pin
musefan18-Aug-09 6:29
musefan18-Aug-09 6:29 
AnswerRe: Invalid Padding when decrypting Pin
DaveyM6918-Aug-09 7:08
professionalDaveyM6918-Aug-09 7:08 
GeneralRe: Invalid Padding when decrypting Pin
Hristo-Bojilov18-Aug-09 7:21
Hristo-Bojilov18-Aug-09 7:21 
GeneralRe: Invalid Padding when decrypting Pin
musefan18-Aug-09 7:23
musefan18-Aug-09 7:23 
AnswerRe: Invalid Padding when decrypting Pin
musefan19-Aug-09 1:29
musefan19-Aug-09 1:29 
QuestionHow to identify the active tab in IE? Pin
Jacobb Michael18-Aug-09 6:22
Jacobb Michael18-Aug-09 6:22 
Questionsort list Pin
nikhil123418-Aug-09 5:13
nikhil123418-Aug-09 5:13 
AnswerRe: sort list Pin
Hristo-Bojilov18-Aug-09 5:46
Hristo-Bojilov18-Aug-09 5:46 
AnswerRe: sort list Pin
Luc Pattyn18-Aug-09 13:19
sitebuilderLuc Pattyn18-Aug-09 13:19 
QuestionGetting Authentication Failure error message. Pin
V K 218-Aug-09 5:10
V K 218-Aug-09 5:10 
AnswerRe: Getting Authentication Failure error message. Pin
Saksida Bojan18-Aug-09 7:12
Saksida Bojan18-Aug-09 7:12 
AnswerRe: Getting Authentication Failure error message. Pin
Luc Pattyn18-Aug-09 13:20
sitebuilderLuc Pattyn18-Aug-09 13:20 
Question[Message Deleted] Pin
VengefulSakhmet18-Aug-09 5:06
VengefulSakhmet18-Aug-09 5:06 
AnswerRe: SQL Query of HKEY_LOCAL_MACHINE Pin
riced18-Aug-09 6:39
riced18-Aug-09 6:39 
AnswerRe: SQL Query of HKEY_LOCAL_MACHINE Pin
Dave Kreskowiak18-Aug-09 7:12
mveDave Kreskowiak18-Aug-09 7:12 
QuestionCheck when webservice method is completed Pin
kstxx18-Aug-09 4:26
kstxx18-Aug-09 4:26 
AnswerRe: Check when webservice method is completed Pin
Pete O'Hanlon18-Aug-09 4:34
mvePete O'Hanlon18-Aug-09 4:34 
GeneralRe: Check when webservice method is completed Pin
kstxx18-Aug-09 4:40
kstxx18-Aug-09 4:40 
QuestionIContainer Confusion Pin
Xmen Real 18-Aug-09 3:39
professional Xmen Real 18-Aug-09 3:39 
AnswerRe: IContainer Confusion Pin
Henry Minute18-Aug-09 4:52
Henry Minute18-Aug-09 4:52 
GeneralRe: IContainer Confusion Pin
Xmen Real 18-Aug-09 7:19
professional Xmen Real 18-Aug-09 7:19 
QuestionHow to define a bitmap at varible Pin
Ronenb18-Aug-09 2:53
Ronenb18-Aug-09 2:53 
AnswerRe: How to define a bitmap at varible Pin
Luc Pattyn18-Aug-09 3:08
sitebuilderLuc Pattyn18-Aug-09 3:08 
AnswerRe: How to define a bitmap at varible Pin
Hristo-Bojilov18-Aug-09 3:46
Hristo-Bojilov18-Aug-09 3:46 

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.