Presentation is loading. Please wait.

Presentation is loading. Please wait.

ACS-4902Assignment 4 due: April 03, 2013 1.(15) What is the shadow paging principle? Assume that a database contains 7 pages and during the execution of.

Similar presentations


Presentation on theme: "ACS-4902Assignment 4 due: April 03, 2013 1.(15) What is the shadow paging principle? Assume that a database contains 7 pages and during the execution of."— Presentation transcript:

1 ACS-4902Assignment 4 due: April 03, 2013 1.(15) What is the shadow paging principle? Assume that a database contains 7 pages and during the execution of a transaction page 5 and 1 are changed. Give the structures of the current directory and shadow directory before and after the transaction execution, respectively. 2.(20) (a) Consider the five types of transactions given in Fig. 1. If "deferred update" strategy is used, which needs to be redone after the crash? (b) Consider the five types of transactions given in Fig. 1. If "immediate update" strategy is used, which needs to be undone/redone after the crash?

2 T1 T2 T3 Time TransactionTransaction T4 T5 Time of checkpoint Time of failure Fig. 1. ACS-4902Assignment 4 due: April 03, 2013

3 3.(20) (a) Discuss the two main types of constraints on specializations and generalization. (b) How does a category differ from a regular shared subclass? (c) Map the EER diagram shown in Fig. 4.1 (on page 77, 3rd edition; it can also be found on my home page) into a relational schema. ACS-4902Assignment 4 due: April 03, 2013

4 ACS-4902Assignment 4 due: April 03, 2013 4.(15) Given the spatial database shown in the lecture notes on Spatial and Temporal Data Management. Design an SQL statement to find all the cities which are closer to Limerick than to Dublin.

5 ACS-4902Assignment 4 due: April 03, 2013 5. (30) In the following table, we show the key words of five documents, as well as the key word sequences sorted by frequencies. Please construct a trie for the sorted sequences and a header table for all the key words to speed up the evaluation of conjunctive queries of form word1  word2  …  wordi. Also, show how a conjunctive query is evaluated by using the trie. Fig. 2 DocIDItemsSorted item sequence 1f, a, c, i, j, m, pc, f, i, a, m, p, j 2a, b, c, h, fc, f, a, b, h 3b, i, ff, b, i 4b, c, ic, b, i 5a, f, c, m, pc, f, a, m, p


Download ppt "ACS-4902Assignment 4 due: April 03, 2013 1.(15) What is the shadow paging principle? Assume that a database contains 7 pages and during the execution of."

Similar presentations


Ads by Google