CS FundamentalsVery hardGATE CS
A B+ tree has order p = 4 (at most 4 children per internal node, at most 3 keys per leaf) and every node except the root is at least half full. The tree has exactly 3 levels: root, one internal level and leaves. What is the MINIMUM number of keys it can hold?
- A. 8
- B. 6
- C. 4
- D. 12
Correct answer: A. 8
The root needs at least 2 children; each internal node at least ⌈4 / 2⌉ = 2 children, giving 4 leaves; each leaf at least ⌈3 / 2⌉ = 2 keys. So 4 × 2 = 8 keys.
More DBMS and SQL questions
- A relation R has candidate keys AB and BC, and FDs AB → C, C → A. Which statement explains why R is in 3NF but not BCNF?
- Which relational-algebra equivalence is NOT valid in general?
- R(A, B, C, D, E, F, G) has the functional dependencies AB -> C, C -> D, D -> A, BE -> F, F -> E, CG -> B. How many candidate keys does R…
- R(A, B, C, D, E) has the functional dependencies C → B, A → D, A → C, BE → A. How many superkeys does R have (counting every attribute set…
- R(A, B, C, D, E, F) has the functional dependencies EB → FA, EB → F, AB → C, D → AC, D → A, DF → A. After splitting right sides into…
- R(A, B, C, D, E, F) has the functional dependencies F → E, B → F, E → C, AB → F, D → E. R is decomposed into (B, D), (A, C, D, E), (A, B…