100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CMPT 454 Assignment 3 Solutions - All Answers are Correct - Simon Fraser University $8.99   Add to cart

Exam (elaborations)

CMPT 454 Assignment 3 Solutions - All Answers are Correct - Simon Fraser University

 74 views  2 purchases
  • Course
  • CMPT 454
  • Institution
  • CMPT 454

CMPT 454 Assignment 3 Solution Question 1 For each of the operations described below you are to calculate the number of disk reads (and writes) to perform the operation in the most efficient way. Do not include the cost to write out the result of the operation. Briefly explain the process of ea...

[Show more]

Preview 1 out of 3  pages

  • July 3, 2023
  • 3
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
  • CMPT 454
  • CMPT 454
avatar-seller
ExamsConnoisseur
CMPT 454 Assignment 3: Query Evaluation This assignment is worth approximately 7 % of your final grade. Question 1 For each of the operations described below you are to calculate the numb er of disk reads (and writes) to perform the operation in the most efficient way . Do not include the cost to write out the result of the operation. Briefly explain the process of ea ch operation a nd its components . For e xample, use the index on a, read x nodes of the index and y records of the file . Assume the root node of tree indexes and directory of extensible hash index es are not held in main memory at the start of the operation . [2 marks each , unless noted otherwise ] Product = {pid, pname , ptype , pnumber , description , manu facturer , mcountry , mcity , price } Table Statistics (note for all V the table is the Product table ) B(Product) T(Product) V(pid) V(pname ) V(ptype ) V(pnumb er) 25,000 250,000 250,000 50,000 500 1,000 V(mcountry ) V(mcity ) V(manu facturer ) V(price) V(description ) 40 1,000 10,000 50,000 125,000 V({ptype , pnumber }) V({mcountry , mcity }) 250,000 2,500 Indexes ▪ Primary dense B+ tr ee index on {ptype , pnumber } wh ere ptype is the pre fix of the search key. The index is height 4 (includes lea f and root level ) and interior and leaf nodes contain 50 search ke ys on average. ▪ B+ tr ee index on {mcountry , mcity } wh ere mcountry is the pre fix of the search key. The index is height 5 (includes lea f and root level ) and interior and leaf nodes contain 30 search ke ys on average. ▪ B+ tr ee index on pname . The index is height 4 (includes lea f and root level ) and interior and leaf nodes contain 60 search ke ys on average. ▪ Extensible hash index on pid. The director y resides on two disk blocks and each bucket contain s 100 search ke ys on average. ▪ Linear hash index on manufacturer . Each bucket contain s 40 search ke ys on average – there are no overflow blo cks. a) (ptype = 'AB C'  pnumber = 13) (Product ) b) (ptype = 'AB C') (Product) c) (pid = 123456  pid = 678324 ) (Product) This study source was downloaded by 100000850872992 from CourseHero.com on 07-03-2023 11:35:59 GMT -05:00
https://www.coursehero.com/file/64159634/assignment3pdf/

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller ExamsConnoisseur. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

78121 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.99  2x  sold
  • (0)
  Add to cart