Draw the hash table containing the hash structure

Assignment Help Database Management System
Reference no: EM13922676

Problem 1


We want to index the following key values based on an extensible hash table.

Such keys are inserted into the database in the order of 21, 35, 49, 56. The hash function h(x) for the key x is (x mod 32).

Namely, the hash value is the remainder of the key x divided by 32, and it is a 5-bit value. Assume each block holds 2 tuples.

1. Please draw the hash table containing the hash structure in main memory and the data blocks on disks after these four keys are inserted.

Make sure to indicate the number of bits used during hashing;

2. We keep inserting 82 and 89 into the hash table. Draw the table to refl the new values. Be sure to indicate the number of bits used during hashing.

Problem 2

1. Explain why it is not necessarily desirable to execute multiple transactions as a serial schedule in a database system;

2. If two transactions consist of 7 and 3 read/write actions, respectively, how many interleaving of these two transactions are there?

Problem 3

Suppose that the consistency constraint on the database is 0 ≤ A ≤ B. Tell whether each of the following transactions preservers

consistency:

1. A := A + B; B := A + B;

2. B := A + B; A := A + B

3. A := B + 1; B := A + 1;

Problem 4

Show the undo-log records of each of the following transactions (call each T ), assuming that initially A = 5 and B = 10 and

both values are stored in memory.

1. A := A + B; B := A + B;

2. B := A + B; A := A + B

3. A := B + 1; B := A + 1;

Problem 5

The following is a sequence of undo-log records written by two transactions T and

U : < START T >; < T, A, 10 >; < START U >; < U, B, 20 >; < T, C, 30 >;

< U, D, 40 >; < COMMIT U >; < T, E, 50 >; < COMMIT T >. Describe the

actions of the recovery manager, including changes to both disk and the log, if there is a crash and the last log record to

appear on the disk is

1. < START U >

2. < T, E, 50 >

3. < COMMIT T >

Problem 6

Repeat the Problem 5 for redo logging.

COP 4710: Database Systems Assignment 4

Reference no: EM13922676

Questions Cloud

Pulmonary case presentations : Pulmonary Case Presentations. Please select one case presentation below and provide answers to the following; Three differential diagnoses and Definitive diagnosis
Simple regression-multiple regression analysis : Use the data in the chart to answer the questions below. The data indicates the number of "sick days" appliance installers take during a three month period, and the number of complaints filed by customers during the same interval. Use the Analysis..
Compute the economic order quantity : Prepare a statement of cost of goods manufactured for Widget Company for the year ended December 31, 2011 - Compute the economic order quantity and compute the order size that results in the minimum total order and carrying cost
News due to ethical problems : Research a company that has been in the news due to ethical problems. Evaluate the ethical dilemma under two ethical frameworks. Analyze what part whistleblowers played in the exposure to the company.
Draw the hash table containing the hash structure : We keep inserting 82 and 89 into the hash table. Draw the table to refl the new values. Be sure to indicate the number of bits used during hashing.
Calculate linear regression-correlation between two variable : The manager of a catering company is using the number of people in the party to predict the cost of the drinks that are required for the event. The following are the data for 12 recently catered events:
Determining the change model assignment : Assume you are the Sales and Marketing Director for Sea Treasures, a small group of well-known retail stores specializing in exotic sea life and high-end accessories for aquariums.
Discuss the meaning of empowerment : Please list and discuss the four competing philosophies that strongly influence an organization's marketing processes. Discuss the meaning of "empowerment" and why do firms pursue this approach to employer-employee relations?
Criminals punished for their crime of course : When criminals are punished for their crime of course they suffer from their actions, but it is the one who they left behind struggles also.

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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