Question: [6 points] Write a C++ function to determine if two binary trees are identical when the ordering of the sub-trees for a node is ignored.
![[6 points] Write a C++ function to determine if two binary](https://s3.amazonaws.com/si.experts.images/answers/2024/08/66c95fc419451_28366c95fc390220.jpg)
[6 points] Write a C++ function to determine if two binary trees are identical when the ordering of the sub-trees 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 algorithm work on a general tree
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
