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

  Create example model of relationship using mysq workbench

Come up with an original example of a one to many unary relationship. Create an example model of this relationship using the MySQL Workbench data modeler.

  Explain new objects based on extending other objects

One of the new classes must be based on a reference extending an existing class from package task02 directly(similar to how Customer extends Person in the sample code).Do not repeat that package task02 class in the task03 package.

  Best data type to use to store the given data in oracle

Identify the best data type to use to store the following data in Oracle, in SQL Server, and in Access.

  Technical paper on database

This Final Project Paper must be a technical paper on Database topics that have been pre-approved in earlier weeks by your instructor, using knowledge gained in the course. A general paper written for the common IT user or general reader is NOT ac..

  A uml class diagram to describe the ordering system class

a UML class diagram to describe the ordering system class

  Construct an e-r diagram for the database

Consider a database used to record the marks that students get on different examinations of different course offerings. Construct an E-R diagram for the database that models exams as entities, and uses a ternary relationship

  Retrieve all the data in the project table

How many projects do John New and Alice Johnson work on - Which Job Class is the second highest Charge Hour in the table and List all the employees in alphabetical order - CREATE TABLE for every table (entity) represented on the ER Diagram

  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

  Build a gantt chart using microsoft project

Discuss what it will take to build a Web architecture, move an existing Website with minimal downtime, and provide a disaster recovery solution to ensure the site is always available.

  What do you understand by data analytics

Watch the 36-minute video on ‘Data Analytics at Facebook' at www.youtube.com/watch?v=D19.JiG-Ow9g or http://bit.ly/1Vk0r3K or tinyurl.com/facebook-data-analytics, What do you understand by data analytics

  Show turing machine can be simulated using counter automaton

A counter is a stack with an alphabet of exactly two symbols, a stack start symbol and a counter symbol.

  Problem 1 produce a scatterplot of rent vs size square

problem 1. produce a scatterplot of rent vs. size square meters of the apartment for the rental data in

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