CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
A B+ tree has at most 21 children per internal node and at most 20 keys per leaf. A non-root internal node must have at least ⌈21/2⌉ children, a leaf at least ⌈20/2⌉ keys, and the root (if internal) at least 2 children. What is the MINIMUM number of keys in such a tree with exactly 3 levels?
- A. 1210
- B. 220
- C. 2420
- D. 440
Correct answer: B. 220
Minimum: root has 2 children, each lower internal level multiplies by 11, so there are 2·11^1 = 22 leaves, each with 10 keys: 220. Forgetting that the root needs only 2 children gives 1210.
More DBMS and SQL questions
- R(A, B, C, D, E) with functional dependencies B → A, E → D, D → C is decomposed into R1(A, B), R2(A, C), R3(C, D, E). Which statement is…
- Classify the schedule R3(A), W1(B), R1(A), R3(B), W2(B), R2(A), R2(B), W3(B).
- R(A, B, C, D, E, F) has functional dependencies F → AB, D → C, C → F, CE → D. How many superkeys does R have?
- R(A, B, C, D, E) has the set of functional dependencies Σ = {E → AC, C → B, AE → B, A → D}. Which of the following FDs is NOT in Σ⁺ (not…
- Table Sale(id, rep, region, amt) rows: (1, 'Ira', 'N', 100), (2, 'Jai', 'S', 250), (3, 'Ira', 'S', NULL), (4, 'Kim', 'N', 300), (5, 'Jai'…
- Keys 47, 46, 27, 42, 22, 7, 58, 45, 48, 51 are inserted in this order into an empty B+ tree where a node holds at most 3 keys; an…