CS FundamentalsVery hardGATE CS · DBMS
Extendible hashing uses the LOWEST-order bits of a key's binary value, bucket capacity 2, and starts with global depth 0 and one empty bucket. A full bucket splits on its next bit; the directory doubles only when the splitting bucket's local depth equals the global depth (repeat splits if needed). After inserting 21, 39, 55, 10, 8, 25, 56 in this order, what are the global depth and the number of distinct buckets?
- A. Global depth 3, 4 buckets
- B. Global depth 2, 5 buckets
- C. Global depth 1, 4 buckets
- D. Global depth 2, 4 buckets
Correct answer: D. Global depth 2, 4 buckets
Tracing the low-order bits: the directory grows to 2^2 = 4 entries, but buckets that never split stay shared by several entries, so only 4 distinct buckets exist.
More DBMS and SQL questions
- Which statement about shadow paging is correct?
- A bitmap index is built on an attribute with 4 distinct values over a table of 1,000,000 rows (uncompressed, one bit per row per value)…
- Classify the schedule R2(A), W2(B), C2, W1(B), R1(A), C1 (Ci = commit of Ti) by the strongest property it satisfies.
- 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'…
- A file has 120,000 records of 150 bytes, stored unspanned in 4096-byte blocks and ordered on key K. A primary (sparse) index on K has one…
- Employee(eid, name) has a recursive one-to-many relationship 'manages' (a manager manages many employees; each employee has at most one…