DBMS Basics Practice Test: Indexing and Hashing — Flashcards | Databases | FatSkills

DBMS Basics Practice Test: Indexing and Hashing — Flashcards

Fast review mode: answers are shown by default so you can skim quickly. Hide them if you want to self-test.

Quiz questions on index definition, bitmap and ordered indices and various hashing techniques.

Indexing and hashing are two important concepts in database management systems (DBMS) that improve database efficiency. Indexing improves efficiency by reducing the number of disk accesses needed to process queries. Hashing determines the direct location of a data record on a disk without the use of an index structure. 

Indexing is used for rapid random lookups and efficient access of ordered records. It uses pre-organized data structures to speed up data retrieval, especially for range queries and ordered records. Some of the most commonly used indexing algorithms include:
B-tree indexing:
Stores records in a sorted order, allowing the database to quickly iterate over the records in sorted order
Hash indexing: Maps each record in the table to a unique bucket based on its hash value, resulting in random order records in buckets 

Hashing is used to organize data into buckets that are easily searchable. It outperforms indexing when searching for specific items, especially in large databases. Hashing can also be used to ensure data integrity by implementing hash-based checksums. For example, hash functions such as MD5 or SHA-1 can verify if a record has been modified or tampered with. 

Here are some types of hashing:
Static hashing:
The hash function always generates the same bucket's address
Dynamic hashing: Also known as extended hashing, this provides a mechanism in which data buckets are added and removed dynamically and on-demand 

1 of 50 Ready
In ordered indices the file containing the records is sequentially ordered, a ___________ is an index whose search key also defines the sequential order of the file.
Clustered index
Shortcuts
Prev Space Show / hide Next
Turn this into a study set.
Sign in with Google to save tricky questions to your reminder list and resume on any device.
Sign in with Google Free • no extra password