What are the causes of bucket overflow in a hash file, Database Management System

Assignment Help:

What are the causes of bucket overflow in a hash file organization? What can be done to reduce the occurrence of bucket overflow?

When a record is inserted, the bucket to that it is mapped has space to store the record. If the bucket does not have sufficient space, a bucket overflow is said to occur.

Bucket overflow can occur for various reasons:

Insufficient buckets: The number of buckets, that we indicate nb, must be chosen such than nb>nc/ff, where n, denote the total number of records that will be stored, and fr denotes the number of records in which will fit in a bucket. This designation, of course, supposes that the total number of records is known while the hash function is chosen.

Skew : Some buckets are assigned more records than are others, so a bucket might overflow even while other buckets still have space. This situation is known as bucket skew.

Skew can occur for two reasons:
1. Multiple records might have the same search key.
2. The chosen hash function may result in non-uniform distribution of search keys.
So, that the probability of bucket overflow is reduced, the number of buckets is selected to be (n/f)*(1+d), where d is a fudge factor typically around 0.2. Some space is wasted:r r

About 20 percent o the space in the buckets will be empty. But the advantages are that the probability of overflow is decreased.
Despite allocation of a few more buckets than needed, bucket overflow can still occur. We handle bucket overflow through using overflow buckets. If a record must be inserted into a bucket b, and b is already full, the system gives an overflow bucket for b, and inserts the record within the overflow bucket, and so on.

All the overflow buckets of a given bucket are chained together in a linked list. Overflow handling using like linked list is known as overflow chaining.


Related Discussions:- What are the causes of bucket overflow in a hash file

Principles of good e-governance, Question: (a) e-Government implementa...

Question: (a) e-Government implementations normally evolve through a multi-stage process. Describe, using appropriate examples, the stages involved in an e-Government implemen

What are the two methods for dealing deadlock problem, What are the two met...

What are the two methods for dealing deadlock problem? The two procedures for dealing deadlock problem is deadlock detection and deadlock recovery.

Describe application programming interface, Describe Application programmin...

Describe Application programming interface? Application Programming Interface - Commercial SQL implementations take one of the two primary techniques for involving SQL in a p

Which data type can store unstructured data, Which data type can store unst...

Which data type can store unstructured data? Raw data type can store unstructured data.

Explain nonclustered indexes, What is the difference between SQL Server 200...

What is the difference between SQL Server 2000 clustered and nonclustered indexes? With a clustered index, the data are kept in the bottom level of the index and in the similar

Explain cursors in sql, Explain cursors in SQL? Cursors in SQL - An o...

Explain cursors in SQL? Cursors in SQL - An object used to store the output of a query for row-through-row processing through the application programs. Cursors are constructs

What is sql?, What Is Sql?  Structured Query Language (SQL) is a standa...

What Is Sql?  Structured Query Language (SQL) is a standard query language. It is usually used with all relational databases for data manipulation and definition. All the re

System level permissions-data control, System level permissions : With the ...

System level permissions : With the use of data dictionary you can view them.       Let us take the table name as user_sys_privs (used in oracle).       DESCRIBE USER_SYS_PRI

The maximum no of key fields that can be used in a header, The Maximum no o...

The Maximum no of key fields that can be used in a header is?? 50

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd