Answer:
a. Pre-order tree walk: 4, 2, 1, 3, 8, 6, 5, 7, 10, 9, 12, 11, 13
b. Post-order tree walk: 1, 3, 2, 5, 7, 6, 9, 11, 13, 12, 10, 8, 4
c. One possible assignment of colors to satisfy the Red-Black Tree properties and the given black-heights is:
Red nodes: {6, 2, 1}
Black nodes: {4, 3, 5, 7, 10, 8, 9, 12, 11, 13}
This coloring ensures that the Red-Black Tree properties are satisfied, bh(T) = 3, and bh(12) = 1.
d. One possible assignment of colors to satisfy the Red-Black Tree properties and the given black-heights is:
Red nodes: {8, 5, 2}
Black nodes: {4, 3, 1, 6, 7, 10, 9, 12, 11, 13}
This coloring ensures that the Red-Black Tree properties are satisfied, bh(T) = 3, and bh(8) = 3.