
Practice questions from the second half of the semester
We prepared a series of practice questions to help you familiarize with the fundamental concepts introduced in the lecture, from Chapter 12 through Chapter 16.
(8 pts) Consider the following partially filled B+ tree with n = 5 (maximum of 5 pointers per node, therefore maximum of 4 keys per node)

inserting [A, B, C] will lead to the root node to split because…).(8 pts) Use the following B+ tree with n = 4 (maximum 4 pointers, maximum 3 keys per node), apply each of the following operations in order, and show the tree after each operation

(12 pts) Construct a B+ tree for the following set of key values:
(5, 15, 25, 35, 45, 55, 20, 40, 60, 70, 80, 30, 50, 10, 65, 75)
Assume that the tree is initially empty and values are added in the order as described. Construct the B+ tree for the case where the number of pointers (n) that will fit in one node is four (n = 4).
You may draw and fill the tree by hand, take a screenshot/picture, and embed it in your report. Draw/write legibly; we have to deduct points if we are unsure what you drew/wrote.
(12 pts) Use the B+ tree constructed from the last question (question 3), apply each of the following operations in order, and show the tree after each operation:
Join Cost Estimation: Let relations employee(emp_id, name, dept_id) and project(proj_id, dept_id, budget) have the following properties:
Estimate the number of block transfers and seeks required using each of the following join strategies for employee ⋈ project:
Student(student_id, name, major) and Enrollment(student_id, course_id, grade) with the following properties: