Click here to Skip to main content
15,914,820 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Big Oh Computation Pin
Ian Uy15-Aug-08 6:56
Ian Uy15-Aug-08 6:56 
GeneralRe: Big Oh Computation Pin
Member 419459316-Aug-08 3:20
Member 419459316-Aug-08 3:20 
GeneralRe: Big Oh Computation Pin
Mark Churchill17-Aug-08 15:18
Mark Churchill17-Aug-08 15:18 
GeneralRe: Big Oh Computation Pin
Ian Uy17-Aug-08 19:29
Ian Uy17-Aug-08 19:29 
GeneralRe: Big Oh Computation Pin
Mark Churchill17-Aug-08 19:33
Mark Churchill17-Aug-08 19:33 
AnswerRe: Big Oh Computation Pin
sableng22-Aug-08 10:04
sableng22-Aug-08 10:04 
Questionde-Compress algorith Pin
Howard Richards11-Aug-08 22:57
Howard Richards11-Aug-08 22:57 
QuestionPatterns for data sorting/grouping in memory Pin
petrveit5-Aug-08 4:15
petrveit5-Aug-08 4:15 
Hi all,

are there any general patterns about sorting and grouping of data in memory?

My application should read statistic results from a poultry scale. The poultry scale is used to weigh live chicks during they grow and the main reason to use the scale is to get an average weight of a flock during the growing period. There can be more scales used at one farm and after the results are downloaded to the PC, I have a set of scales and a set of weighing results for each scale. For example:

SCALE_NAME * DATE * AVERAGE_WEIGHT
SCALE1 * 2008-08-01 * 2.56
SCALE1 * 2008-08-05 * 2.75
SCALE2 * 2008-08-01 * 2.32
SCALE2 * 2008-08-05 * 2.60

Once I load the data from a database, I need to sort and group it according to the scale name and time. For example, I need to display a graph of weight over time for one scale, compare this graph to another scale etc.

What I don't know is how the data will be organized in memory? Do I have the scale name stored directly in the Weighing class or do I make some list of scales first and then in each Weighing class I point it to the appropriate Scale object? I can imagine how to get the data from database, but I somehow don't know how to work similarly when the data is in memory. I use .NET 2.0, so LINQ is out of question.

As you can see, I don't even know what to ask or what to look for... Are there any general approaches to this? I believe this problem must be common.

Thank you,
Petr
AnswerRe: Patterns for data sorting/grouping in memory [modified] Pin
Alan Balkany5-Aug-08 4:42
Alan Balkany5-Aug-08 4:42 
AnswerRe: Patterns for data sorting/grouping in memory Pin
Mark Churchill5-Aug-08 4:45
Mark Churchill5-Aug-08 4:45 
QuestionBin Packing Algorithm [modified] Pin
248912830-Jul-08 2:22
248912830-Jul-08 2:22 
AnswerRe: Bin Packing Algorithm Pin
CPallini30-Jul-08 2:39
mveCPallini30-Jul-08 2:39 
AnswerRe: Bin Packing Algorithm Pin
Alan Balkany30-Jul-08 3:22
Alan Balkany30-Jul-08 3:22 
GeneralRe: Bin Packing Algorithm Pin
Paul Conrad30-Jul-08 6:12
professionalPaul Conrad30-Jul-08 6:12 
GeneralRe: Bin Packing Algorithm Pin
248912830-Jul-08 19:17
248912830-Jul-08 19:17 
GeneralRe: Bin Packing Algorithm Pin
Tim Craig30-Jul-08 21:31
Tim Craig30-Jul-08 21:31 
GeneralRe: Bin Packing Algorithm Pin
248912830-Jul-08 22:45
248912830-Jul-08 22:45 
GeneralRe: Bin Packing Algorithm Pin
CPallini30-Jul-08 23:25
mveCPallini30-Jul-08 23:25 
GeneralRe: Bin Packing Algorithm Pin
Tim Craig31-Jul-08 9:36
Tim Craig31-Jul-08 9:36 
GeneralRe: Bin Packing Algorithm Pin
CPallini31-Jul-08 21:28
mveCPallini31-Jul-08 21:28 
GeneralRe: Bin Packing Algorithm Pin
Paul Conrad1-Aug-08 5:45
professionalPaul Conrad1-Aug-08 5:45 
GeneralRe: Bin Packing Algorithm Pin
Tim Craig1-Aug-08 17:56
Tim Craig1-Aug-08 17:56 
GeneralRe: Bin Packing Algorithm Pin
Paul Conrad1-Aug-08 18:01
professionalPaul Conrad1-Aug-08 18:01 
GeneralRe: Bin Packing Algorithm Pin
Tim Craig1-Aug-08 19:59
Tim Craig1-Aug-08 19:59 
GeneralRe: Bin Packing Algorithm Pin
Paul Conrad1-Aug-08 20:04
professionalPaul Conrad1-Aug-08 20:04 

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.