Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer all questions thank you 3. B-trees (4 points) (1) (2 points) Show the results of inserting the keys E, F, G,U, V, W,

Please answer all questions thank youimage text in transcribed

3. B-trees (4 points) (1) (2 points) Show the results of inserting the keys E, F, G,U, V, W, H in order into the B-tree shown below. Assume this B-tree has minimum degree k - 2. Draw only the configurations of the tree just before some node(s) must split, and also draw the final configuration B,D.J R.S,T (2) (2 points) Suppose you have a B-tree of height h and minimum degree k What is the largest number of keys that can be stored in such a B-tree? Prove that your answer is correct (Hint: Your answer should depend on k and h. This is similar to theorem we proved in the B-tree notes) 4. Choose Function (4 points) Given n andwith n > k > 0, we want to compute the choose function (t using the following recurrence Base Cases: ( and (1, for n > 0 0 Recursive Case: (2) C)-(n-1), for n > k > 0 (1) (1 point) Compute (5) using the above rccurrenco (2) (2 points) Give pseudo-code for a bottom-up dynamic programming algorithm to compute () using the above recurrence (3) (1 point) Show the dynamic programming table your algorithm creates 3. B-trees (4 points) (1) (2 points) Show the results of inserting the keys E, F, G,U, V, W, H in order into the B-tree shown below. Assume this B-tree has minimum degree k - 2. Draw only the configurations of the tree just before some node(s) must split, and also draw the final configuration B,D.J R.S,T (2) (2 points) Suppose you have a B-tree of height h and minimum degree k What is the largest number of keys that can be stored in such a B-tree? Prove that your answer is correct (Hint: Your answer should depend on k and h. This is similar to theorem we proved in the B-tree notes) 4. Choose Function (4 points) Given n andwith n > k > 0, we want to compute the choose function (t using the following recurrence Base Cases: ( and (1, for n > 0 0 Recursive Case: (2) C)-(n-1), for n > k > 0 (1) (1 point) Compute (5) using the above rccurrenco (2) (2 points) Give pseudo-code for a bottom-up dynamic programming algorithm to compute () using the above recurrence (3) (1 point) Show the dynamic programming table your algorithm creates

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago

Question

LO6 Describe how individual pay rates are set.

Answered: 1 week ago