(a) Write a function to decode the sequential representation for binary trees illustrated by Example 6.5. The...
Question:
(a) Write a function to decode the sequential representation for binary trees illustrated by Example 6.5. The input should be the sequential representation and the output should be a pointer to the root of the resulting binary tree.
In Figure 6.17
(b) Write a function to decode the sequential representation for full binary trees illustrated by Example 6.6. The input should be the sequential representation and the output should be a pointer to the root of the resulting binary tree.
(c) Write a function to decode the sequential representation for general trees illustrated by Example 6.8 . The input should be the sequential representation and the output should be a pointer to the root of the resulting general tree.
Step by Step Answer:
Practical Introduction To Data Structures And Algorithm Analysis Java Edition
ISBN: 9780136609117
1st Edition
Authors: Clifford A. Shaffer