I want to construct a threaded binary tree consisting of nine nodes A, B, C, D, E, F, G, H, and I with post-order threads. Each node has five fields, which are LeftThread (true or false), LeftChild (pointer to a node), data (of char type), RightChild(pointer to a node), and RightThread (true or false). This is how the binary tree (with only the data of the nodes showing) looks like:
A
/ \
B C
/ \ / \
D E F G
/ \
H I
I have two main doubts, which are:
- Is B the left child of F, even though they have different parent nodes?
- Where does the right child of G point to? Does it point to the root, or does it point back to node C?
Please note that the image only reflects my attempt at solving the problem and might be incorrect.
