Describe the static hash file with buckets and chaining, Database Management System

Assignment Help:

Describe the static hash file with buckets and chaining and show how insertion, deletion and modification of a record can be performed.

In static hash file organization, the word bucket is used to associate a unit storage in which can store one or more records. A file consists of buckets 0 through N-1, with one primary page per bucket initially and additional overflow pages chained along with bucket, if needed later.

Buckets holds data entries (or data records). In hashing scheme, a hash function, h, is perform on the key of the record to identify the bucket to that data record belongs to.
The hash function is an significant component of the hashing approach. The major problem along with static hash file is in which the number of buckets is fixed.

Insertion of a record - To insert a data entry, the hash function is used to recognize the

1350_Insertion of a record.png


Static Hash File

correct bucket and then put the data entry there. If there is no space for this data entry, a latest overflow page will be allocated, put the data entry on this page or the page to the overflow chain of the bucket.

Deletion of a record - To delete a data entry, the hash function is used to recognize the correct bucket, locate the data entry through searching the bucket, and then erase it. If the data entry is the last in an overflow page, the overflow page is erased from the overflow chain of the bucket and added to a list of free pages.

Modification of a record - To modify a data entry, the hash function is used to recognize the correct bucket, locate the data entry through searching the bucket and contain it, modify the data entry, and then rewrite the modified data entry on it.


Related Discussions:- Describe the static hash file with buckets and chaining

Write a program within embedded sql to associative relation, Write a progra...

Write a program within embedded SQL to associative the total trip expenses of the salesman named ‘John' for the relations. EXEC SQL BEGIN DECLARE SECTION; long total_expenses;

What are called index-sequential files, What are called index-sequential fi...

What are called index-sequential files? The files that are ordered sequentially with a primary index on the search key are known as index-sequential files

Shadow paging, Describe the shadow paging technique.

Describe the shadow paging technique.

Derived horizontal fragmentation, Derived horizontal fragmentation: Some ap...

Derived horizontal fragmentation: Some applications may include a join of two or more relations. If the relations are stored at dissimilar locations, there may be a major overhead

Functional dependencies and normalization for relational dat, Consider the ...

Consider the 1ollowin8 relation: CAR SALE (Car_id, Option_type, Option_listprice, Sale_date, Option_discountedprice) This relation refers to options installed in cars (e.g., crui

Describe drop table command or cascade of sql, Describe DROP TABLE command ...

Describe DROP TABLE command of SQL along with both the options - CASCADE and RESTRICT. DROP TABLE command - This command drops the specified table. Dropping a table also dro

What is a primary index, What is a primary index? A primary index is an...

What is a primary index? A primary index is an index whose search key also explains the sequential order of the file.

Define data conversion, Define data conversion? Helpful to load data in...

Define data conversion? Helpful to load data into temporary staging tables. Then can write SQL code to do much of data processing. SQL code is simpler and faster to write than

Physical model of traffic data management, After the completion of the logi...

After the completion of the logical model the physical model is to be made. The oracle 10 G will be used as a database server and all the tables with their column are created and i

Briefly describe the different kinds of users of a dbms, Briefly describe t...

Briefly describe the different kinds of users of a DBMS.  Ans: Different sorts of DBMS users are: (a)  Software Engineers: These are the people accountable for developing ap

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