代做CSC-30002 ADVANCED DATABASES AND APPLICATIONS 2022/23帮做R程序

OPEN-BOOK EXAMINATION, 2022/23

May 2023

COMPUTER SCIENCE

CSC-30002

ADVANCED DATABASES AND APPLICATIONS

1.

(a)     In the context of open distributed database architectures, discuss the main advantage of using a global conceptual schema (GCS) instead of bi-directional mappings between dissimilar nodes. Use a diagram to illustrate the function of the GCS in the extended ANSI/SPARC architecture for distributed heterogeneous databases and explain clearly the role of the other components of this architecture. [40%]

(b)     Three nodal relations located at nodes N1, N2 and N3, respectively, are:

N1: Emp1 (Eno, Ename, Location, Bdate, Gr-sal)

N2: Emp2 (E#, En, Loc, Net-sal, Tax)

N3: Emp3 (Eno, En, City, Birthd, Net-sal, Tax)

Assume that E# and Eno are employee numbers; En and Ename are employee names; Location, Loc and City are locations; Net-sal is the net salary; Gr-sal represent the gross salary and Gr-sal = Net- sal + Tax; Bdate and   Birthd represent the date ofbirth.

In addition, the unit of currency is pound sterling in N1 and N2, and US dollar in N3. The conversion between the two currencies is given by the expression £1 = CF*$1, where CF is the conversion factor or exchange rate.  Furthermore, the location “London” is written as “Londres” in Emp2, and “Rome” as “Roma” in Emp3. (English is your default working language.)

Use PAL syntax to answer questions (i) and (ii) below.

(i)      Integrate the three nodal relations to create the following global relation:  EMP (Eno, Ename, Loc, Bdate, Gsal). Gsal represents gross salary. [30%]

(ii)     Decompose the query below into three nodal queries:

Q == ?[Eno, Loc, Bdate, Gsal] %

EMP : Gsal > 20000 [30%]

2.

(a)     In the context of distributed updates and recovery, explain why the two-phase commit protocol is potentially a blocking protocol and discuss briefly how the three-phase commit protocol is anon-blocking protocol in the absence of complete site failure. [20%]

(b)     Three relations SUP, PART and SPL at nodes N1, N2, and N3, respectively, are:

N1

SUP

S#

SN

CITY

100 tuples

5

5

20

30 bytes

N2

PART

P#

PN

COL

200 tuples

5

10

10

25 bytes

N3

SPL

S#

P#

QTY

2000 tuples

5

5

5

15 bytes

Where:

S# = Supplier number, SN = Supplier name, P# = Part number,

PN = Part name,  COL = Colour, and QTY = Quantity

The following query originates from N1, and intends to retrieve the quantities of blue washers supplied by Joan or Mona of Paris. The total number of those tuples is 150. The PAL query for retrieving this information is given by:

Q == ?[S#, SN, P#, QTY] % SUP(S#)*(S#) SPL

(P#)*(P#) PART: [(SN = “Joan” | SN = “Mona”),

CITY = “Paris”, PN = “Washer”, COL = “Blue”]

Assume that the final result of executing this query has 150 tuples and there are 10 supplier tuples for Joan or Mona of Paris, and there are only  50 blue washers. For simplicity, assume also that suppliers have an equal share of supplies and all joins are natural joins.

Answer questions (i), (ii) and (iii) below. Show all steps and computations clearly. Answers without derivation will receive no marks.

(i)      Calculate the size of nodal partitions which will be required for

evaluating the minimal data movements for the distributed query in the three strategies given in (ii) below. [20%]

(ii)     Calculate the minimal data movement for the following three strategies.

Strategy 1: Move data from N2 to N3 for the partial evaluation, and then from N3 to N1 for the final evaluation. [20%]

Strategy 2: Move data from N1 to N3, process the partial result there and then move the data to N2. Process the final result at N2 and move it to N1. [20%]

Strategy 3: Move data from N1 and N2 toN3 for the complete evaluation, and then move the result to N1. [15%]

(iii)    Identify the best strategy from the three above and justify your answer. [5%]

3.

(a)     Web-based e-commerce and e-business systems rely heavily on distributed database architectures for transaction processing. Explain why this is the case and discuss briefly the key operational issues that need to be addressed before distributed databases can be deployed on the Web. [20%]

(b)     Use a simple example to show how semantic interoperability between XML and relational database system can be achieved. [20%]

(c)      Summarise the key issues that need to be addressed during the following stages of building a data warehouse, and identify which components or parts of the data warehouse architecture are involved in each stage.

(i)      Data extraction and loading

(ii)     Data management

(iii)    Query processing [30%]

(d)     The use of relational databases in a data warehouse generally introduces significant computational overheads in Online Analytical Processing (OLAP).  Explain why this is the case and describe how Relational OLAP (ROLAP) and Multidimensional OLAP (MOLAP) systems overcome this challenge. Give examples for each system to support your answer. [30%]







热门主题

课程名

eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 nbs-7041x mbas902 comp-1027 dpst1091 comp7315 econ0060 comp9417 comp3425 litr1-uc6201.200 ee1102 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst math39512 cosc2803 omp9727 ddes9903 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 cisc102 07 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 efim20036 mn-3503 math21112 comp9414 fins5568 comp4337 bcpm0054 comp(2041|9044) 110.807 bcpm000028 info6030 inft6800 bma0092 math20212 cs365 ce335 math2010 ec3450 comm1170 cenv6141 ftec5580 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 econ7230 math350-real math2014 eec180 msinm014/msing014/msing014b stat141b econ2101 fit2004 comp643 compsci 369 bu1002 cm2030 mn7182sr ectb60h3s ib2d30 ohss7000 fit3175 acct7104 econ20120/econ30320 math226 127.241 info1110 37007 math137a mgt4701 comm1180 fc300 ectb60h3 llp120 bio99 econ7030 csse2310/csse7231 comm1190 110.309 125.330 csc3100 bu1007 comp 636 qbus3600 compx222 stat437 kit317 hw1 ag942 fit3139 115.213 ipa61006 6010acc econ214 envm7512 fit4005 fins5542 slsp5360m 119729 cs148 hld-4267-r comp4002/gam cava1001 or4023 cosc2758/cosc2938 cse140 fu010055 csci410 finc3017 24309 bsys702 mgec61 cive9831m pubh5010 fsc60504 5bus1037 caes1000 plana4310 info90004 p6769 bsan3209 ap/adms4540 ast101h5f plan6392 625.609.81 csmai21 fnce6012 misy262 ifb106tc csci910 502it comp603/ense600 4035 csca08 8iar101 bsd131 msci242l csci 4261 elec51020 blaw1002 ec3044 acct40115 csi2108–cryptographic 158225 7014mhr econ60822 ecn302 philo225-24a acst2001 fit9132 comp1117b ad654 comp3221 st332 cs170 econ0033 engr228-digital
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图