Question: CSE 2320 Lab Assignment 4 Due August 6, 2018 Goals: 1. Understanding of red-black tree structural constraints 2. Application of recursion. Requirements: 1. Write a

CSE 2320 Lab Assignment 4 Due August 6, 2018 Goals: 1. Understanding of red-black tree structural constraints 2. Application of recursion. Requirements: 1. Write a linear-time program to test whether a binary tree satisfies the red-black tree properties. The simple input format corresponds to preorder traversal. An "R" corresponds to a red tree node, a "B" to a black tree node, and a""to the sentinel. If a tree includes n data nodes, then the sentinel will be processed n + 1 times. The input ABC D EF GH IJ corresponds to the tree GH IJK (This line is not part of the input) Submit your program on Blackboard by 1245 pim on August 6. One of the comment lines should indicate the compilation command used on OMEGA 2. Getting Started: I. The following test cases are useful BRB..B. .BR..R.. BBRB. . B..BR..R. .BB..BR. .RB..B. 2. Your program may print any debugging information that you choose, but the last line of your output should indicate from your data whether or not the tree satisfies the red-black tree properties. Your program must echo the tree recursively structure. Likewise, your code for reading the tree must be recursive 3. Your program should not prompt for an input file name. The maximum length for the input string is 200 symbols 4. Pointers are not necessary for implementing this assignment. Simple tables are sufficient
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
