I need to find out the best data structures for A* algorithm. Well, it is not exactly A*, but I've changed it a bit. What I need is as follows. I am using Visual C++.
1. I am keeping a Map(not the STL map, but my own Map.), It is a 200*200 array.
2. i need to find the shortest paths between two locations.
3. I am keeping an Open list and a closed list for the implementation.
4. The basic operations on the Open list are by order of priority, Insertion, membership test and remove best.
5. The basic operations for the closed list are insertion and membership test. It only occationally needs a removal.
The efficiency is definitely a concern. So, what are the best data structures to be used? It would be nice if I can use the STL.
1. I am keeping a Map(not the STL map, but my own Map.), It is a 200*200 array.
2. i need to find the shortest paths between two locations.
3. I am keeping an Open list and a closed list for the implementation.
4. The basic operations on the Open list are by order of priority, Insertion, membership test and remove best.
5. The basic operations for the closed list are insertion and membership test. It only occationally needs a removal.
The efficiency is definitely a concern. So, what are the best data structures to be used? It would be nice if I can use the STL.
Comment