bsnoor / OOP_EX2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assignment_2 Summary

IMPORTANT NOTE FOR THE CODE CHECKER : our project unfortunately isn't complete , and we had to submit it as it is , we would be more than greatful if you do a manual check #on or code , that would be really appreciated


Section A

  • in the first part of this assignment we modified the classes to become compatible with the concept of directed graph, in other words we slightly modified the algorithms in isconnected(), shortestPath() & shortestPathDest()we didn't need to work hard on the modifications since in the very first assignment (Ex0) our graph was compatible with directed manner a single edge would appear in both enteries of the source node and the destination node in our m_Edges hashmap

  • regrading the tests we modified the tests to be also compatible with the concept of directed-weighted-graph :

  1. DWGraph_AlgoTest
  2. DWGraph_DSTest
  • in WDGraph_DS we used 3 hashmaps :
  1. vertices hashmap(hashmap <Integer,NodeData>)
  2. Edges hashmap(hashmap <Integer,Hashmap<Integer,EdgeData>>)
  3. Neighbors hashmap (hashmap < Integer,ArrayList ) (for the purposes of optimization when removing a node out of the graph so we can get instant access to it's neighbors pointers, this things saves us from traversing in the graph so we can find each Node's neighbors)

Section B

  • regarding the Graphical User Interface that was semi-made, we worked on fixing it and customizing it with the help of Java Swing library

  • when it comes to placing Agents in the graph to collect the Rewards , we achieved it with the help of shortest path algorithm from different Nodes and placed number of agents in arbitrary close point to the reward. with the respect of not spawning more than 1 agent on the same edge


Links:



Contributed by:

  • Abed El Kareem Massarweh
  • Nour Bsoul

End of Summary

About


Languages

Language:Java 100.0%