Hello,
considering an application where a map is represent by a graph (array of vertex and adjmatrix). Also in that application, 2 agents have to go on the map and find ways in it (using different algorithms).
A possible way to do it: using an AdjMatrix for each agent. When the agent goes into a new node it checks the real adj of the map and then update it's own adjmatrix.
What do you think? Thanks.
Mr.
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.