Question

Using the Red-Black Tree applet, you input the following numbers into the Red-Black tree, keep all...

  1. Using the Red-Black Tree applet, you input the following numbers into the Red-Black tree, keep all red-black rules (on page 433) either using color changes or rotation. The result graph should be height balance and red-black correct. (20 pts)

Attach your results of screen shots for every question.

  1. Insert 50, 70, 20, 90

  1. Insert 50, 70, 20, 90, 99

  1. Insert 50, 70, 20, 90, 80

  1. Insert 50, 70, 20, 80, 60, 90, 75, 95

  1. Insert 50, 70, 20, 90, 60, 55, 65, 68
  1. Given input {4371, 1323, 6173, 4199, 4344, 9679, 1989} and a hash function h(x) = x %10 (table size is 10), showing the resulting (20 pts)
    1. Separate chaining hash table
    2. Open addressing hash table using linear probing.
    3. Open addressing hash table using quadratic probing.
    4. Open addressing hash table with second hash function h2(x) = 7- (x %7)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Following are the final RED-BLACK trees.

1.

2.

3.

4.

5.

Friend: As a Chegg expert, I am obliged to do only four parts of the question, but I still completed five of them.
I hope you understand, You can re-post the remaining of them.
Thanks

Add a comment
Know the answer?
Add Answer to:
Using the Red-Black Tree applet, you input the following numbers into the Red-Black tree, keep all...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Given input {4371, 1323, 6173, 4199, 4344, 9679, 1989} and a hash function h(x) = x...

    Given input {4371, 1323, 6173, 4199, 4344, 9679, 1989} and a hash function h(x) = x (mod () 10), show the resulting: a. Separate chaining hash table b. Hash table using linear probing c. Hash table using quadratic probing d. Hash table with second hash function h2(x) = 7 - (x mod 7) *Assume the table size is 10.

  • Given the input sequence 4371, 1323, 6173, 4199, 4344, 9679, 1989, a hash table of size...

    Given the input sequence 4371, 1323, 6173, 4199, 4344, 9679, 1989, a hash table of size b=10, and a hash function h(x)=x mod b, show each step needed to build a hash table A closed hash table using double hashing, with the second hash function as h′(x)=7 − (x mod 7) This yields the sequence of hash functions hi(x)=(x mod b + i⋅ (7 − ( x mod 7)))mod b for i=0,1,…

  • 2.1. Insert 85 into the following red-black tree. Show all your steps. (Note that the leaves...

    2.1. Insert 85 into the following red-black tree. Show all your steps. (Note that the leaves (nil) are not shown) 33 o = black (20 50 80 70 90 2.2. Insert 23 into the following red-black tree. Show all your steps. (Note that the leaves (nil) are not shown) (33) 33 0 = black , 20 60 26 50 5 15 22 30

  • In this assignment, you will develop a C program to construct a red and black tree....

    In this assignment, you will develop a C program to construct a red and black tree. For a given input sequence the tree is unique by using RB-INSERT on one number at a time. Below is an example: The input is a sequence of numbers separated by comma, e.g. 1,8,11,2, … You can enter the numbers using an input file and output the tree, or through a command line with one number at a time (with “X” to stop entering...

  • Q1: How many levels your binary search tree has (including level 0)? Is the binary search tree you created height balanc...

    Q1: How many levels your binary search tree has (including level 0)? Is the binary search tree you created height balanced? 2.1 Click the animations “Binary Search Tree”. Click “Insert” button to insert the following elements in the sequence, “50, 20, 30, 70, 90, 80, 40, 10, 5, 60, 85, 95”. http://algoanim.ide.sk/index.php?page=showanim&id=44 Q2: What is the insertion process of the binary search tree? The new identical element is inserted as left or right child of the existing same value? 2.3...

  • Q1: How many levels your binary search tree has (including level 0)? Is the binary search...

    Q1: How many levels your binary search tree has (including level 0)? Is the binary search tree you created height balanced? 2.1 Click the animations “Binary Search Tree”. Click “Insert” button to insert the following elements in the sequence, “50, 20, 30, 70, 90, 80, 40, 10, 5, 60, 85, 95”. http://algoanim.ide.sk/index.php?page=showanim&id=44 Q2: What is the insertion process of the binary search tree? The new identical element is inserted as left or right child of the existing same value? 2.3...

  • Using the following input data: 50 60 90 80 70 78 75 73 74 Demonstrate how...

    Using the following input data: 50 60 90 80 70 78 75 73 74 Demonstrate how to insert nodes into a splay tree. You are required to show steps and indicate when splaying was carried out. 1d. Compare and Contrast AVL and Splay Trees.

  • [Heap] Create a min-binary heap using following numbers (appearing/inserting in the given order): 5, 22, 19,...

    [Heap] Create a min-binary heap using following numbers (appearing/inserting in the given order): 5, 22, 19, 56, 50, 25, 1, 3, 10, 6, 32, 12, 11                [Hint: you can put the items in sequence in a binary tree and then use the buildHeap() method.] [Hashing] Consider a hash table where the hash function h is defined as the modulo 10 operation i.e., for any integer k, h(k) = k % 10 (the ‘modulo 10’ operator returns the remainder when k...

  • Using Matlab, only need part b to be done thank you. 1. Below you will find...

    Using Matlab, only need part b to be done thank you. 1. Below you will find a table with hours of life of a cupper plate used in an industrial process. They are 45 data samples (they are just an array, but in this document, they are presented in three columns to save space) 63 59 75 78 70 64 75 93 90 70 98 92 85 90 83 95 89 92 92 90 82 81 89 80 79 46...

  • Please box answers! Thank you. 11. Monetary policy and the LM curve Aa Aa The following graph shows the demand and supply of real money balances in a hypothetical economy. Use the black point (X point...

    Please box answers! Thank you. 11. Monetary policy and the LM curve Aa Aa The following graph shows the demand and supply of real money balances in a hypothetical economy. Use the black point (X point) to indicate the equilibrium in this market. Dashed drop lines will automatically extend to both axes. REAL INTEREST RATE [Percent) 10 Equilibrium Supply New Supply New Equilibrium Demand 3 0 10 20 30 40 50 60 70 80 90 100 REAL MONEY BALANCES Help...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT