Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » alternative to array of linked list
alternative to array of linked list [message #46369] Mon, 02 May 2016 00:52 Go to previous message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I am doing experiments with molecular dynamics.
The domain of simulation is divided in cells and each cell contains a number of particles.
The particle can move from a cell to another.
Usually it is used an array of linked list. I would like to replicate this structure with U++ containers.
I do not know what to use:
Vector< Vector<int> >
Vector< Index<int> >
Map< ... >
something else?
Here the speed is very important: search quickly a particle in a given cell, delete it, move in another cell.
Does anybody have suggestions? If somebody have already done similar experiment snippet code are greatly appreciated.

Thanks,
Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MT opens up whole new can of worms :)
Next Topic: Outage...
Goto Forum:
  


Current Time: Thu Mar 28 18:29:23 CET 2024

Total time taken to generate the page: 0.01054 seconds