How to implement tree structure in c# using data structures in C#?
-
Hi, I want to build an application that will enable the user to create chart of accounts in nXn(n by n) tree structure. I want to use data structures to do so. The user should be able to not only add new nodes to the tree but also manipulate the data in the tree using references to parent and child nodes(Traversing). Please, help me and provide a solution ASAP. Thank You.
HASAN ABBAS
-
Hi, I want to build an application that will enable the user to create chart of accounts in nXn(n by n) tree structure. I want to use data structures to do so. The user should be able to not only add new nodes to the tree but also manipulate the data in the tree using references to parent and child nodes(Traversing). Please, help me and provide a solution ASAP. Thank You.
HASAN ABBAS
Basically, i would just use the treeview. But if not have a struct or class for your node, and within it, have a list of itself:
class Node
{
List<node> nodeCollection;
...
}My current favourite word is: Bauble!
-SK Genius
-
Hi, I want to build an application that will enable the user to create chart of accounts in nXn(n by n) tree structure. I want to use data structures to do so. The user should be able to not only add new nodes to the tree but also manipulate the data in the tree using references to parent and child nodes(Traversing). Please, help me and provide a solution ASAP. Thank You.
HASAN ABBAS
I implemented a simple AVL-tree (that are balanced trees) - the code will only compile in .net 3.5 (because I use some simple LINQ to object statements and a lot of var-declerations) but you should be able to modify it to .net 2.0 without problems (.net 1.1 is not that easy because I use generics for the tree-structures) I only commented the code in german but I can send you the files if you PM me your adress.
-
I implemented a simple AVL-tree (that are balanced trees) - the code will only compile in .net 3.5 (because I use some simple LINQ to object statements and a lot of var-declerations) but you should be able to modify it to .net 2.0 without problems (.net 1.1 is not that easy because I use generics for the tree-structures) I only commented the code in german but I can send you the files if you PM me your adress.
Hi, Even I am working on similar tree-project. I have already performed lot of research on it but not getting some proper result. Can you please mail your code on ujjavalmodi@gmail.com It would be a great help. Thanx in advance ! :)
Regards, Ujjaval Modi :) Manpower moves wrenches, horsepower moves cars, and the power of the mind moves the world.
-
Hi, I want to build an application that will enable the user to create chart of accounts in nXn(n by n) tree structure. I want to use data structures to do so. The user should be able to not only add new nodes to the tree but also manipulate the data in the tree using references to parent and child nodes(Traversing). Please, help me and provide a solution ASAP. Thank You.
HASAN ABBAS
Hasan_Abbas wrote:
provide a solution ASAP
Nope.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
I implemented a simple AVL-tree (that are balanced trees) - the code will only compile in .net 3.5 (because I use some simple LINQ to object statements and a lot of var-declerations) but you should be able to modify it to .net 2.0 without problems (.net 1.1 is not that easy because I use generics for the tree-structures) I only commented the code in german but I can send you the files if you PM me your adress.
Hey!! I'd love to have ur code. My email ID is hasanabbas19@hotmail.com. Thanks.
HASAN ABBAS
-
Hey!! I'd love to have ur code. My email ID is hasanabbas19@hotmail.com. Thanks.
HASAN ABBAS
-
Ok, thx for ur cooperation buddy. I am working on it in the meantime. I think I have come up with some kinda solution. But, please do send the code anyhow. Thanks again for ur cooperation.
HASAN ABBAS