# Assignment5A - Assignment#5 Jennifer kim 10 points 1 For...

This preview shows pages 1–4. Sign up to view the full content.

Assignment #5 Jennifer kim 10 points 1) For the splay tree shown below, show how an access of node 50 is performed. (Show all steps). 10 \ 20 / \ 15 30 / \ 25 40 / \ 35 50 \ 60 10 \ 20 / \ 15 30 / \ 25 40 / \ 35 50 \ 60 10 \ 20 / \ 15 50 / \ 40 60 / \ 30 35 \ 25 50 / \ 20 60 / \ 10 40 \ 15 / \ 30 35 \ 25

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
10 points 2) For the splay tree shown below, show how an access of node 45 is performed. (Show all steps). 80 / \ 40 120 / \ / \ 20 60 100 140 /\ /\ /\ /\ 10 30 50 70 90 110 130 150 / \ 45 75 80 / \ 40 120 / \ / \ 20 45 100 140 /\ /\ /\ /\ 10 30 75 50 90 110 130 150 / \ 70 60 80 / \ 40 120 / \ / \ 20 45 100 140 /\ /\ /\ /\ 10 30 75 50 90 110 130 150 / \ 70 60 45 / \ 40 80 / \ / \ 20 75 50 120 /\ /\ /\ / \ 10 30 70 60 90 110 100 140 /\ /\ 90 110 130 150 10 points 3) For the B-tree of order 3 with L=5 shown below, show how an insert of value 50 is handled. || 20 ||
/ \ / \ 2 20 5 25 7 70 75 78 || 20 || 70 || / | \ / | \ 2 20 70 5 25 75 7 50 78 10 points 4) For the B-tree of order 3 with L=5 shown below, show how an insert of value 19 is handled. || 10 || 50 || / | \ / | \ 2 10 50 5 18 65 7 20 70 21 24 || 10 || 20 || 50 || / | | \ / | | \ 2 10 20 50 5 18 21 65 7 19 24 70 Use a tablesize of 23 for these 3 hashing questions: 9 points 5) Given the input {3823, 8806, 8783, 2850, 3593, 8479, 7412, 4290, 1942, 8823, 2023, 1206} and a hash function h(x) = x mod 23, show the resulting separate chaining table. 0

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern