Docsity

CS 4440 Quiz 2: Emerging Database Technologies and Applications, Quizzes of Computer Science

Toggle sidebar
bg1
QUIZ 2 – TAKEHOME (CS 4440)
Emerging Database Technologies and Applications
Given: November 18, 2002
Due: December 3 by 4 p.m. (Give to Ylonda in CoC office)
Note: This quiz is based on the various topics discussed in class so far. Hints are
provided wherever necessary. Collaboration is strictly prohibited. TA’s may be
consulted for general advice. If you consult outside references or sources, please
state them at the end of an answer.
Q1. (Mobile Databases – formation of groups, based on paper #4 from CIKM 2000
by Yee et al. with the spanning tree algorithm)
You are given the following publications with their corresponding weights:
Publication Weight
D1 30
D2 30
D3 20
D4 15
D5 5
You are also given the following client to publication subscription pattern:
D
1
D
2
D
3
D
4
D
5
C
1
XXX
C
2
X
C
3
X X
C
4
X X
C
5
XXX
Assuming that ==1, generate groups using the graphical algorithm. Show your work.
Use the formulae included in the paper where necessary.
pf3

Partial preview of the text

Download CS 4440 Quiz 2: Emerging Database Technologies and Applications and more Quizzes Computer Science in PDF only on Docsity!

QUIZ 2 – TAKEHOME (CS 4440)

Emerging Database Technologies and Applications Given: November 18, 2002 Due: December 3 by 4 p.m. (Give to Ylonda in CoC office) Note: This quiz is based on the various topics discussed in class so far. Hints are provided wherever necessary. Collaboration is strictly prohibited. TA’s may be consulted for general advice. If you consult outside references or sources, please state them at the end of an answer. Q1. (Mobile Databases – formation of groups, based on paper #4 from CIKM 2000 by Yee et al. with the spanning tree algorithm) You are given the following publications with their corresponding weights: Publication Weight D1 30 D2 30 D3 20 D4 15 D5 5 You are also given the following client to publication subscription pattern: D 1

D

D

D

D

C

X X X

C

X

C

X X

C

X X

C

X X X

Assuming that ==1, generate groups using the graphical algorithm. Show your work. Use the formulae included in the paper where necessary.

Q2. XML Schemas Consider the following non-1NF relation with an embedded multivalued composite attribute: EMPLOYEE (Ssn, Date_of_birth, Phone, Education (School, Year, Degree)). The outer relation has key Ssn. For the embedded relation Education, the key is (School, Degree). a. Set up an XML schema to represent the above data in XML. Use w3.org types where available, and define new XML types where necessary. SSNs are US social security numbers and Phone is a US phone number. School is char(25), Degree is char(6). b. Convert the above data to a first normal form with 2 relations and set up the XML schema again. Q3. Data Mining (based on team presentation on the topic; consult Ch 26 in Elmasri and Navathe). Consider the following 6 transactions in Rich’s store. T1: DRESS, SHIRT, TROUSER, TOY T2: PERFUME, DRESS, SWEATER, HANDBAG, JEWELRY T3: SHIRT, WATCH, TROUSER T4: PERFUME, HANDBAG, SHOES T5: PERFUME, SHIRT, TROUSER, HANDBAG T6: TOY, HANDBAG, TROUSER a. Define Support and Confidence for discovering association rules. b. Given that support has to be at least 50% and confidence at least 75%, evaluate if the following rules hold for this database of transactions:

  1. SHIRT => TROUSER
  2. TROUSER => SHIRT
  3. HANDBAG => PERFUME Q4. Data Warehousing (based on Navathe’s class presentation and Delta presentation; consult Ch 26 in Elmasri and Navathe )