CS FundamentalsVery hardGATE CS · Product placement
A B+ tree has at most 10 children per internal node and at most 8 keys per leaf. A non-root internal node must have at least ⌈10/2⌉ children, a leaf at least ⌈8/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. 40
- B. 100
- C. 200
- D. 80
Correct answer: A. 40
Minimum: root has 2 children, each lower internal level multiplies by 5, so there are 2·5^1 = 10 leaves, each with 4 keys: 40. Forgetting that the root needs only 2 children gives 100.
More DBMS and SQL questions
- Which tuple relational calculus expression is UNSAFE (may produce an infinite result)?
- On R(A, B, C, D, E), F = {BE → CD, D → B, AC → D} and G = {B → C, AC → B, E → A}. Which statement is correct? ("F covers G" means every FD…
- R(A, B, C, D) has FDs A → B, B → C, C → D and D → A. Every attribute is a candidate key. A designer still decomposes R into R1(A, B) and…
- Optimistic (validation-based) concurrency control runs each transaction in three phases. In which order, and when are its writes applied…
- R(A, B, C, D, E) has functional dependencies DE → B, AC → E, AD → E, BD → CE, C → A. How many prime attributes does R have?
- A file has 50,000 records of 200 bytes stored unspanned in 2048-byte blocks, NOT ordered on attribute X. A dense secondary index on X (a…