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 59, 44, 33, 53, 58, 17, 15 in this order, what are the global depth and the number of distinct buckets?
- A. Global depth 2, 4 buckets
- B. Global depth 3, 8 buckets
- C. Global depth 3, 4 buckets
- D. Global depth 4, 4 buckets
Correct answer: C. Global depth 3, 4 buckets
Tracing the low-order bits: the directory grows to 2^3 = 8 entries, but buckets that never split stay shared by several entries, so only 4 distinct buckets exist.
More DBMS and SQL questions
- Table Takes(sid, cid, marks) rows: (1, 'C1', 80), (1, 'C2', NULL), (2, 'C1', 65), (3, 'C2', 90), (3, 'C3', 75), (5, 'C1', 50). What does…
- R(A, B, C, D, E, F) has functional dependencies BD → E, D → AF, E → AB, BC → D. Which of the following is the complete set of candidate…
- T1: W1(B), R1(B), R1(A) and T2: W2(A), R2(B), R2(A). Of all 20 interleavings that keep each transaction's own order, how many are conflict…
- Σ = {B → C, C → B, AE → D, F → B, DF → C} on R(A, B, C, D, E, F). Exactly one FD in Σ is redundant (it can be derived from the others)…
- 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'…
- R(A, B) = {(1, 1), (1, 3), (3, 2), (4, 1), (4, 2), (4, 4)} and S(B, C) = {(1, 5), (1, 7), (3, 7), (4, 5)}. What is πA(R) − πA(R ⋈ S)?