Labels

Monday, February 28, 2011

UVA - 10307 - Killing Aliens in Borg Maze


  • ID : UVA - 10307 - Killing Aliens in Borg Maze
  • Status : Accepted
  • Type : Graph MST & BFS.
  • Time : 5 Hours to Submission.
  • Language : Java
  • Solution :
          1. Assume 'S' is a normal node as 'A'
          2. BFS on all Nodes and Find all Edges.
          3. Kruskal MST on Edges using Union-Find Algorithm
  • Problems :
          1. hashCode() Function shouldn't be implemented without equals()
          2. Hashing should be avoided with pre-indexing.




No comments:

Post a Comment