Click here to Skip to main content
15,897,891 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Math Software Pin
Bassam Abdul-Baki11-Aug-10 15:36
professionalBassam Abdul-Baki11-Aug-10 15:36 
GeneralRe: Math Software Pin
Matthias Van Parys30-Sep-10 7:23
Matthias Van Parys30-Sep-10 7:23 
GeneralRe: Math Software Pin
Bassam Abdul-Baki30-Sep-10 7:30
professionalBassam Abdul-Baki30-Sep-10 7:30 
Questionhow to convert an array of records into a hierarchical structure Pin
makumazan8428-Jul-10 22:13
makumazan8428-Jul-10 22:13 
GeneralRe: how to convert an array of records into a hierarchical structure [modified] Pin
harold aptroot29-Jul-10 0:27
harold aptroot29-Jul-10 0:27 
GeneralRe: how to convert an array of records into a hierarchical structure Pin
makumazan8429-Jul-10 3:03
makumazan8429-Jul-10 3:03 
GeneralRe: how to convert an array of records into a hierarchical structure Pin
harold aptroot29-Jul-10 3:04
harold aptroot29-Jul-10 3:04 
GeneralRe: how to convert an array of records into a hierarchical structure Pin
makumazan8429-Jul-10 6:01
makumazan8429-Jul-10 6:01 
Partly my fault:
original message has been parsed and it dropped the fact, that the field Children is a generic of type TreeBranch - it contains children of a certain node. Each of those children can have its own List of children, and so on. Anyways, it's all about converting an array of objects which have ID and ParentID into a tree hierarchy. Consider a case
an array: (ParentID;ID)
-,1
1,2
1,3
2,4
4,5
should look something like
1-
2-
3 4-
5
Because the depth of the tree is unknown, recursion is the only option - we have no idea about the nodes, that are inhereted from the current.
For some dumb security reasons of my job I can't post the code here, but I'll do that later, since the task is very real life
GeneralRe: how to convert an array of records into a hierarchical structure Pin
harold aptroot29-Jul-10 6:07
harold aptroot29-Jul-10 6:07 
GeneralRe: how to convert an array of records into a hierarchical structure Pin
harold aptroot2-Aug-10 4:51
harold aptroot2-Aug-10 4:51 
AnswerRe: how to convert an array of records into a hierarchical structure Pin
T M Gray2-Aug-10 8:41
T M Gray2-Aug-10 8:41 
GeneralRe: how to convert an array of records into a hierarchical structure Pin
harold aptroot2-Aug-10 8:56
harold aptroot2-Aug-10 8:56 
GeneralRe: how to convert an array of records into a hierarchical structure Pin
getroshan6-Sep-10 21:47
getroshan6-Sep-10 21:47 
AnswerRe: how to convert an array of records into a hierarchical structure Pin
Andrew Rissing11-Oct-10 4:12
Andrew Rissing11-Oct-10 4:12 
GeneralAutomatic Assignment Pin
alkowarizmi27-Jul-10 14:38
alkowarizmi27-Jul-10 14:38 
AnswerRe: Automatic Assignment Pin
Luc Pattyn27-Jul-10 14:58
sitebuilderLuc Pattyn27-Jul-10 14:58 
GeneralRe: Automatic Assignment Pin
alkowarizmi28-Jul-10 3:47
alkowarizmi28-Jul-10 3:47 
GeneralRe: Automatic Assignment Pin
Luc Pattyn28-Jul-10 4:04
sitebuilderLuc Pattyn28-Jul-10 4:04 
GeneralRe: Automatic Assignment Pin
Yusuf28-Jul-10 4:07
Yusuf28-Jul-10 4:07 
GeneralRe: Automatic Assignment Pin
getroshan7-Sep-10 0:44
getroshan7-Sep-10 0:44 
QuestionWANTED: Programmer looking for an algorithmic challenge PinPopular
Xpnctoc23-Jul-10 5:58
Xpnctoc23-Jul-10 5:58 
AnswerRe: WANTED: Programmer looking for an algorithmic challenge Pin
PIEBALDconsult23-Jul-10 17:01
mvePIEBALDconsult23-Jul-10 17:01 
AnswerRe: WANTED: Programmer looking for an algorithmic challenge Pin
ProtoBytes24-Jul-10 11:57
ProtoBytes24-Jul-10 11:57 
GeneralRe: WANTED: Programmer looking for an algorithmic challenge Pin
Xpnctoc24-Jul-10 12:09
Xpnctoc24-Jul-10 12:09 
AnswerRe: WANTED: Programmer looking for an algorithmic challenge Pin
ProtoBytes24-Jul-10 12:56
ProtoBytes24-Jul-10 12:56 

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.