-
comparing trees
Hey,
I have 2 BSTs containing strings - e.g. Tree1, Tree2.
The strings in each tree are from an input file
I want to check the contents of each tree, and if a string is in tree1, but not in tree2, i want to either add it, or alert the user.
I'm not entirely sure how to compare the two trees. I've coded the trees correctly and inserted the files into them. My methods for adding/deleting/etc work. Comparing is the problem.
Appreciate any help.

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks