Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logic for comparing two trees of unequal hierarchies.

 
Etao Laishram
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am trying to write a recursive function to compare two trees of different hierarchies, like comparing two different XML files. Any idea on this? HashMap can be used for representing the tree.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic