DataStructure Isomorphism of Trees
Zhejiang University
Understanding of the Puzzle
We simply regard the trees as the same as long as they have the same children for every node.
Divide and Conquer
- The representation of a binary tree
- Build a Binary Tree
- Judge whether they are Isomers.
Representing a Binary Tree
Static Linked List: A Special Array.
Structure of the Program
1 | BinTree Build(); |
Design the Functions
1 |
|