Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

Data Structure recommendation

Thread view: 
James - 28 Mar 2008 01:49 GMT
I am looking for your recommendations on data structures to
consider for use in a program for efficiency, etc. . . .  I have tens
of thousands of small text files that are the output of some analysis
algorithms.  (Their number may grow significantly in the future.)

   Each file name indicates a variety of attributes of the image
files from which they were derived.  I need to read in each file and
count a few items for each but in a number of ways, according to
different attributes individually and in combination.  Then I need to
write out these counts in many different ways to a CSV output file.

   Finally, my question: What data structure(s) would you recommend
that I consider to hold all these different counts by attributes (and
combinations of attributes), so I can efficiently report it out a
bunch of different ways?

   For example, if you think of these statistics in a tree structure,
I want to be able to take each branch of the tree and quickly
determine the sum of the counts.  I also want to be able to go down to
particular leaves of the tree and sum their counts.  etc.

   Thanks in advance for any recommendations.
Patricia Shanahan - 28 Mar 2008 02:24 GMT
...
>     Each file name indicates a variety of attributes of the image
> files from which they were derived.  I need to read in each file and
> count a few items for each but in a number of ways, according to
> different attributes individually and in combination.  Then I need to
> write out these counts in many different ways to a CSV output file.
...

Have you considered loading the data into a database and querying it?

Patricia


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.