CS FundamentalsHardGATE CS

In extendible hashing, the global depth is 3 and a full bucket with local depth 2 must split on an insert. What happens?

  1. A. The directory doubles to 16 entries and the bucket splits
  2. B. The bucket splits into two with local depth 3, the directory stays at 8 entries and some of its pointers are updated
  3. C. The bucket gets an overflow page, since only buckets of local depth 3 may split
  4. D. All buckets are rehashed with a new hash function

Correct answer: B. The bucket splits into two with local depth 3, the directory stays at 8 entries and some of its pointers are updated

When local depth < global depth, several directory entries point to the bucket, so it can split (local depth becomes 3) by redirecting half of those pointers. The directory doubles only when the splitting bucket's local depth equals the global depth.

More DBMS and SQL questions

Exams that ask this topic