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 48, 15, 43, 47, 26, 45, 13 in this order, what are the global depth and the number of distinct buckets?
- A. Global depth 3, 8 buckets
- B. Global depth 2, 4 buckets
- C. Global depth 4, 4 buckets
- D. Global depth 3, 4 buckets
Correct answer: D. 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 Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- R(A, B, C, D, E) with functional dependencies AB → C, BD → CE, A → B is decomposed into R1(C, D), R2(A, B, E). Which statement is correct?
- A fuzzy checkpoint differs from a simple (quiescent) checkpoint because it:
- Table Dept(did PRIMARY KEY) rows: (10), (20), (30). Table Emp(eid PRIMARY KEY, did REFERENCES Dept(did) ON DELETE CASCADE, mentor…
- Classify the schedule W3(A), R1(A), R2(B), R2(A), R3(B), C2, W1(B), R1(B), C1, C3 (Ci = commit of Ti) by the strongest property it…
- R(A, B) has 120 tuples and S(B, C) has 40 tuples, where B is a key of neither relation. What are the minimum and maximum possible numbers…