Click here to Skip to main content
11,484,402 members (64,834 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hi all,

Can anybody tell me how do i identify a person or a thing in a hierarchical tree. Like i actual want to know form a group people if 1 misbehaves, i should be in a position to show it was from such a person, belonging a Group A, belonging to "A" locality, "Z" street, House no ### n so on..

House no
|
Z street
|
Locality A
|
Group A
|
Person A
Thanks in Advance.
Posted 10-May-13 21:48pm
Comments
Mehdi Gholam at 11-May-13 2:52am
   
Your question makes little sense, add more explanation.
Mohammed Hameed at 11-May-13 2:52am
   
Can u plz explain further for clear understanding...
Jagadisha_Ingenious at 11-May-13 3:40am
   
@Mehdi Gholam & @Mohammed Hameed: Like if you consider faulty status of a device in a array of devices connected in a network, i should findout from which device it was, from which network it was, what exactly was the fault..

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If i understand you well, you have hierarchical (tree) structure of data, so... all you need to do, is to use hierarchical alorithm(s)[^].

Please, refer these CP articles:
Tree Iterators[^] - this is what you are looking for!
Hierarchical Tree Represented by Modified Preorder Tree Traversal Technique using C# 3.0 and SQL 2005.[^]
Retrieve Hierarchical Data from Database[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 190
1 Sergey Alexandrovich Kryukov 170
2 Raje_ 155
3 OriginalGriff 147
4 Mehdi Gholam 120
0 Sergey Alexandrovich Kryukov 8,484
1 OriginalGriff 7,948
2 Sascha Lefèvre 3,199
3 Maciej Los 2,681
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 11 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100