CS FundamentalsVery hardGATE CS (PYQ pattern)

An extendible hash index uses the LOW-order bits of the hash value, with bucket capacity 2 and an initial directory of global depth 1 (two empty buckets). Hash values (6-bit) are inserted in this order: 101100, 001100, 110100, 000100, 100000, 111001, 010101. What are the final global depth and number of buckets?

  1. A. global depth 5, 5 buckets
  2. B. global depth 4, 5 buckets
  3. C. global depth 4, 6 buckets
  4. D. global depth 3, 4 buckets

Correct answer: B. global depth 4, 5 buckets

Five of the values end in 00 (…100, …100, …100, …100, …000): they keep splitting until they are separated by their low bits, which forces the directory to grow; simulating each split gives the stated depth and bucket count.

More DBMS and SQL questions

Exams that ask this topic