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?
- A. The directory doubles to 16 entries and the bucket splits
- B. The bucket splits into two with local depth 3, the directory stays at 8 entries and some of its pointers are updated
- C. The bucket gets an overflow page, since only buckets of local depth 3 may split
- 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
- R(Emp, Skill, Lang) satisfies Emp ↠ Skill (so also Emp ↠ Lang), and it is decomposed into the 4NF relations (Emp, Skill) and (Emp, Lang)…
- R(a) = {1, 2, 3} and S(a) = {2, 3, 3, 4} (S is a bag). How many rows does SELECT FROM R FULL OUTER JOIN S ON R.a = S.a return? (Checked in…
- A relation has 6 attributes. What is the largest possible number of candidate keys it can have under some set of functional dependencies?
- In multiple-granularity locking, how many of these lock-mode pairs (held, requested) on the same node are compatible? IS–IX, IX–IX, S–IX…
- Which statement correctly states the write-ahead logging (WAL) rule?
- Which statement about compensation log records (CLRs) in ARIES is correct?