Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 4 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 14 Sep 2017 My Price 9.00

page l/Os unless

Exercise  14.4   Consider   the   join    given   the  following   information  about   the relations to be joined.  The  cost  metric  is  the  number  of page  l/Os  unless  otherwise  noted, and  the  cost  of writing out  the  result  should  be  uniformly ignored.

 

Relation  R  contains  10,000  tuples and  has  10  tuples  per page.

Relation S contains 2000 tuples and also has 10 tuples per page. Attribute b of relation  S  is  the  primary  key  for  S.

Both  relations  are stored      simple  heap files. Neither relation  has  any  indexes  built  on it.

52  buffer pages  are available.

 

1.    What is the cost of joining Rand S using a page-oriented simple nested loops join? What is the minimum number of buffer pages required for this cost to remain unchanged?

2.    What is the cost of joining Rand S using a block nested loops join? What is the minimum number of buffer pages required for this cost to remain unchanged?

3.     What is the cost of joining Rand S using a sort-merge join? What  is  the minimum number of buffer pages required for this cost to remain unchanged?

4.     What is the cost of joining Rand S using a hash join? What is the minimum number of buffer pages required for this cost to remain unchanged?

5.    What would be the lowest possible I/O cost for joining Rand S using any join algorithm, and how much buffer space would be needed to achieve this cost? Explain briefly.

6.     How many tuples does the join of R. and S produce, at most, and how many pages are required to store the result of the join back on disk?

7.     Would your answers to any of the previous questions in this exercise change if you were told that R.a is a foreign key that refers to S.b?

Answers

(5)
Status NEW Posted 14 Sep 2017 12:09 PM My Price 9.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)