A data structure problem
Dear All:
I want to build a 3D Euclidean space by using an index accessible class like Code:
3DSpace<T*> my_space[1000][1000][1000]; Code:
T* grid_point; Code:
hash_map<int, float> my_hash; Does anyone have any idea to help me with this problem please? Thanks Merry Christmas!!! [/code] |
1) Look at "sparse matrix" libraries.
2) Consider using a tree list where the "leaf" is your data and the address your coordinates, and your "look up" process process does a search in the tree for the coordinate token. If you keep the tree sorted, or hashed, or both, the look-up should be fairly fast. |
All times are GMT -5. The time now is 07:29 AM. |