Write an algorithm to determine if two general trees are


1. Write an algorithm to determine if two general trees are identical. Make the algorithm as efficient as you can. Analyze your algorithm's running time.

2. Write an algorithm to determine if two binary trees are identical when the ordering of the subtrees for a node is ignored. For example, if a tree has root node with value R, left child with value A and right child with value B, this would be considered identical to another tree with root node value R, left child value B, and right child value A. Make the algorithm as efficient as you can. Analyze your algorithm's running time. How much harder would it be to make this algorthm work on a general tree?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write an algorithm to determine if two general trees are
Reference No:- TGS01649302

Expected delivery within 24 Hours