This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Logic for comparing two trees of unequal hierarchies. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Logic for comparing two trees of unequal hierarchies." Watch "Logic for comparing two trees of unequal hierarchies." New topic
Author

Logic for comparing two trees of unequal hierarchies.

Etao Laishram
Greenhorn

Joined: Dec 12, 2012
Posts: 1
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Logic for comparing two trees of unequal hierarchies.
 
Similar Threads
WA #1.....word association
equals doubt??
Confusion on equals() method
SCWCD or OCP??
How to check whether two trees have identical structure ?