Question: SOMEONE gave this answer for 1.1 but its wrong as 13 is greater then 12 so how can it be on left side of 12?

 SOMEONE gave this answer for 1.1 but its wrong as 13

SOMEONE gave this answer for 1.1 but its wrong as 13 is greater then 12 so how can it be on left side of 12? so whole tree is wrong

is greater then 12 so how can it be on left side

Consider the sequence of values S=[12,44,13,88,23,94,11,39,20,16,5]. P1.1. Draw the binary search tree obtained by adding the values in S in sequence. P1.2. Draw the red-black tree obtained by adding the values in S in sequence. P1.3. Consider the hash-function h(k)=(2k+5)mod11 and a hash-table of 11 table entries that uses hashing with separate chaining. Draw the hash-table obtained by adding the values in S in sequence. P1.4. Consider the hash-function h(k)=(3k+2)mod11 and a hash-table of 11 table entries that uses hashing with linear probing. Draw the hash-table obtained by adding the values in S in sequence

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!