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 52, 3, 50, 35, 1, 32, 22 in this order, what are the global depth and the number of distinct buckets?
- A. Global depth 3, 4 buckets
- B. Global depth 1, 4 buckets
- C. Global depth 2, 4 buckets
- D. Global depth 2, 5 buckets
Correct answer: C. 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
- R(A, B, C, D, E) has functional dependencies C → E, AC → DE, E → D, BC → DE, AD → CE. How many prime attributes does R have?
- In a wait-for graph, T1 waits for T2, T2 waits for T3, T3 waits for T4 and T4 waits for T2. T5 waits for T1. Which transactions are…
- 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) = {(a1, b1), (a1, b2), (a2, b1), (a2, b3), (a3, b1), (a3, b2), (a3, b3), (a4, b1), (a4, b2)} and S(B) = {b2, b3}. What is R ÷ S?
- Σ = {DE → C, AB → CE, D → ABE}. Consider the FD DE → C while computing a canonical cover. Which statement about extraneous attributes on…
- R(A, B, C, D, E) has functional dependencies A → D, CE → AB, AB → C, C → AB. How many prime attributes does R have?