Examine the recoverable characteristic

Assignment Help Database Management System
Reference no: EM132314256

Advanced Databases and Applications Assignment -

Transaction Processing -

Consider schedules S1 and S2 below.

S1: r2(X), r2(Z), r3(Y), w2(X), w2(Z), w3(Y), r1(Z), r3(X), w3(X), r1(X), r3(Z), w1(X), w3(Z), w1(Z)

S2: r1(X), r1(Z), r2(Y), w2(Y), w1(X), r3(Y), w1(Z), r2(X), r3(X), r2(Z), w2(Z), r3(Z), w3(Y), w3(Z)

(a) Apply the basic timestamp ordering (BTO) algorithm to schedules S1 and S2. Determine whether or not the algorithm allows the execution of the schedules, and discuss cascading rollback (if any). Hints: each operation takes one time unit, and timestamp of each transaction is the time associated to its first operation. For example, timestamps of transactions T1, T2, and T3 in schedule S1 are 7, 1, and 3 (respectively).

(b) Testing the serializability of S1 and S2 by serialization graph technique to prove that the successful execution of a schedule under BTO will ensure the serializability of the schedule.

(c) Examine the recoverable characteristic of S1 and S2. What schedule (S1 or S2) can be executed under the strict timestamp ordering (STO) algorithm and write an equivalent strict schedule for it? We assume that a transaction will be be committed or aborted right after its last operation.

(d) Examine the two-phase locking (2PL) technique on S1 and S2 with an assumption of unlock operations being done as late as possible. Are BTO schedules also 2PL schedules?

Deductive Database -

ANCESTOR(X, Y) :- PARENT(X, Y)

ANCESTOR(X, Y) :- PARENT(X, Z), ANCESTOR(Z, Y)

Notice that PARENT(X, Y) means that X, Y are human-beings and Y is the (biological) parent of X; ANCESTOR(X, Y) means that Y is the ancestor of X.

Consider the following fact base: PARENT(john, steve), PARENT(john, olivia), PARENT(olivia, emma), PARENT(olivia, william).

(a) Construct a model theoretic interpretation of the above rules using the given facts.

The following information is used for question (b), (c) and (d).

Consider that a database contains the following relations PARENT(X, Y).

Assume that we have the following family tree:

2004_figure.png

PARENT(olivia, william).

PARENT(olivia, emma).

PARENT (tony, martin).

PARENT (tony,olivia).

PARENT (john, olivia).

PARENT (john, steve).

PARENT (jenny, tony).

PARENT (david, tony).

PARENT (michael, john).

PARENT (dorothy, john).

PARENT (sophia, jenny).

PARENT (christopher, michael).

(b) State a new rule named as SIBLING(X, Y) and construct a proof theoretic interpretation of this rule to find all siblings

(c) State a new rule named as DESCENDANT(X, Y) and construct a proof theoretic interpretation of this rule to find all descendants of Martin. Note DESCENDANT(X, Y) means Y is a descendant of X.

(d) Given the following rules:

FIRST_COUSIN(X, Y) :- PARENT(X, Z), PARENT(Y, T), SIBLING(Z, T)

COUSIN(X, Y) :- FIRST_COUSINS(X, Y)

COUSIN(X, Y) :- PARENT(X, Z), PARENT(Y, T), COUSIN(Z, T)

Note: Two people are first cousins if their parents are siblings. Cousins means any kind of cousins. Cousins can be second cousins who are the children of the two first cousins or third cousins who are the children of two second cousins etc.

1. Prove that FIRST_COUSIN(jenny, michael) is true.

2. Prove that COUSIN(sophia, christopher) is true.

Verified Expert

This is regarding timestamp solution of database problems.Various strategies are used to avoid deadlock and other problems in the system.Three time stamp protocols are used to find the solution of the given problems.

Reference no: EM132314256

Questions Cloud

How are processes of learning in the organization evaluated : For the first part of this week's section of the course project, briefly review your chosen organization (Walmart). Presume that the reader does not know.
Generation limit what society believes they are capable : Tim Elmore suggests that Generation iY is overwhelmed, How do these perceptions of the iY Generation limit what society believes they are capable of?
Requirements needed to succeed in e-commerce : What are several key factors and Web store requirements needed to succeed in e-commerce.
What is an unconditioned stimulus : How did the video explain the following: What is an unconditioned stimulus (US)? Give an example of positive and negative reinforcement and punishments.
Examine the recoverable characteristic : CP5520 - Advanced Databases and Applications Assignment, James Cook University, JCU, Australia. Examine the recoverable characteristic of S1 and S2
Did your resource change your opinion : What else can impact your ability to drive while having cell phone conversation? How do emotions play into this scenario? Did your resource change your opinion?
Web-gather relevant general information regarding hospital : Search Web and gather relevant general information regarding hospital for seniors-direct data pertaining to external environment of proposed Golden Age Hospital
What did you learn from the project about aggression : What did you learn from this project about aggression and prosocial behaviors.?How are these behaviors more often displayed? Do you believe the amount.
Which study had the superior methodology and why : COH 606-Epidemiology-National University-US- Discuss the study's strengths and limitations, including sources of bias or possible confounding.

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