|
||
Title: Which Data Structure to Use Post by R0B1N on Nov 17th, 2007, 9:34pm Am basically looking for data structure which suits the best for the following problem . I Guess i need to look for some kinda hierarchical data structure , am aware of some of the spatial data structures but not able to come up with a design . the plus (+) sign before each of the data indicates that you can expand that particular data .(and - indicates its already expanded ) (check the attachment ) So i need a data structure which will efficiently support all combinations of + and - signs |
||
Title: Re: Which Data Structure to Use Post by R0B1N on Nov 17th, 2007, 9:42pm 1 |
||
Title: Re: Which Data Structure to Use Post by R0B1N on Nov 17th, 2007, 9:43pm 2 |
||
Title: Re: Which Data Structure to Use Post by R0B1N on Nov 18th, 2007, 2:00am :-/ :'( no one going for it ? |
||
Title: Re: Which Data Structure to Use Post by towr on Nov 18th, 2007, 6:55am on 11/18/07 at 02:00:46, R0B1N wrote:
|
||
Title: Re: Which Data Structure to Use Post by towr on Nov 18th, 2007, 7:10am I would use trees of classes. For example you'd have a company-object, which can contain any number of product-objects. |
||
Title: Re: Which Data Structure to Use Post by R0B1N on Nov 18th, 2007, 7:54am BTW , here the number of columns,rows might very , its not necessarily 2 always . . . |
||
Title: Re: Which Data Structure to Use Post by towr on Nov 18th, 2007, 9:06am Have you considered a relational database? What do you need to use this for, anyway? That's a rather important question that needs answering. How much data will you deal with? |
||
Title: Re: Which Data Structure to Use Post by wanderer on Nov 18th, 2007, 2:09pm on 11/18/07 at 07:54:46, R0B1N wrote:
you might want not to lomit the number of children of a node in the tree by having the children of any node as a linked list to which any number of children can be added / deleted.. this does take its toll on time complexity though .. :-/ |
||
Powered by YaBB 1 Gold - SP 1.4! Forum software copyright © 2000-2004 Yet another Bulletin Board |