Part 1: Generate two random 16-node Red-Black BSTs. Draw them (either by hand or with a program). Compare them with the (unbalanced) BST built with the same keys.
Part 2: Ascending input: Q13, Q14: Draw the red-black BST that results when you insert letters A through K in order into an initially empty red-black BST. Then, describe what happens in general when red-black BSTS are built by inserting keys in ascending order.
Part 3: Descending input: Draw the red-black BST that results when you insert letters K through A in order into an initially empty red-black BST. Then, describe what happens in general when red-black BSTs are built by inserting keys in descending order.
Part 1: Generate two random 16-node Red-Black BSTs. Draw them (either by hand or with a program). Compare them with the
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Part 1: Generate two random 16-node Red-Black BSTs. Draw them (either by hand or with a program). Compare them with the
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!