We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

# Assignment No. 4 Graded Semester Fall 2015 Data Warehousing– CS614 due date 8 Feb,2016

Objective:

The assignment has been designed to develop your ability to calculate the Bitmap index.

Instructions:

1. 1.      The assignment will not be accepted after due date in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.).
2. 2.      Zero marks will be awarded to the assignment that does not open or the file is corrupt.
3. 3.      The assignment file must be an MS Word (.doc) file format; Assignment will not be accepted in any other format.
4. 4.      Zero marks will be awarded to the assignment if copied (from other student or copied from handouts or internet).
5. 5.      Zero marks will be awarded to the assignment if the Student ID is not mentioned in the assignment file.

For any query about the assignment, contact only at CS614@vu.edu.pk

Do not post queries related to assignment on MDB.

GOOD LUCK

Question 1                                                                                                                                         [10 Marks]

Consider the following table:

Player_Team

 Player_ID Player_Name Team_ID Pool_ID IND-06 Gangoli IND A AFG-05 Najeeb AFG B SA-07 AB Devillier SA A AU-01 Steve Waugh AU B IND-01 Tandulker IND A AU-04 Maxwell AU B AFG-01 Nawroze AFG B SA-09 Dal Styn SA A

Consider the following query:

SELECT Count (Player_Team.Pool_ID) AS CountOfPool_ID

FROM Player_Team

GROUP BY Player_Team.Pool_ID;

1. You need to identify the number of clusters from this data.
2. Secondly, you have to identify whether the given clustering is one way or two way clustering. Your answer should support by valid reasons.

Question 2                                                                                                                                         [10 Marks]

Consider the following tables:

Player

 Player_ID Player_Name Team PK-01 Wasim Pakistan PK-02 Misbah Pakistan SA-03 AB Devillier South Africa

Award

 Award_ID Match_ID Player_ID 01 01 PK-01 01 02 PK-01 02 03 PK-02 01 04 SA-03

Consider the following query:

Select * from Player P, Award A where P.Team= ‘Pakistan’ and A.Award_ID = ‘01’ and P.Player_ID = A.Player_ID

Suppose this query is executed using Naive Nested-Loop join and (i.e. there is no index created on both Player and Award tables). Mention that which table should be the Outer table to get minimum I/O by manually calculating the cost in both cases i.e. when “Player” is outer table and when “Award” is outer table.

Note: You need to mention the calculations in your solutions where required.

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

Views: 7227

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Attachments:

### Replies to This Discussion

sahi kartay raho wait phir solution ka

yar time is short, that's y ab to solution he chahie...

anyone there ????

Plzz koi to solution dee de aj last date hai.....

ye assignmnt kb ai ???

koe to upload kar e do yar

bs abi abi hi pohnchi hai assig

Please koi idea he dedu koi ALLAH ka banda

Friends men ne to ye submit ki he ho sakta he ghlt hn q...!

sir ap ne q.no 2 me galat formula lagaya hay...is liey apka answer bhi galat aya hay....

question 1 k first part me ap ney no of clusters tu bataey hi nahi...

secondly count query apko already global view tu dey rahi hay ab ager hum further data ko cluster karna chahain tu team id ki base pey kar saktey hain. so this might be our local view that is provided by bicluster. So someone may think on these lines to find the right answer....mujhey tu yehi samajh me aya.

Solution :

Attachments:

tariq bhai you are too early to send the solution of assignment no 3's solution on the time when we have to submit the assignment no 4.

## Latest Activity

Rabia Imran and Muskaan Ch joined +M.Tariq Malik's group

### CS304 Object Oriented Programming

53 minutes ago
1 hour ago
Rizwan Asim, mahnoor, Rehan.Aqeel and 19 more joined Virtual University of Pakistan
1 hour ago
1 hour ago
+.Ãŋɠɜʆḁ.+ and Muhammad Ahsan joined +M.Tariq Malik's group

### CS402 Theory of Automata

1 hour ago
2 hours ago
3 hours ago
Moona added a discussion to the group CS201 Introduction to Programming

### somia%27s%20solution.cpp

3 hours ago
Moona joined +M.Tariq Malik's group

### CS201 Introduction to Programming

3 hours ago
3 hours ago
Noorfatima posted a status
"Anyone have assignment sol cs614"
4 hours ago
Muhammad Bilal liked Ateeqa's discussion Kbi tu wh mry liy udaas ho
4 hours ago

1

2