Electrical Engineering > Solutions Guide > University of Michigan - EECS 484HW4 Solution (All)
Question 1 (20 points) 1.1) (6 points) Block Nested Loops Join (A) Reads = |R| + |S| * ceil(|R|/(B-2)) = 5,000 + 15,000 * ceil(5,000/(800-2)) = 110,000 (B) Writes = 0 (no writes are required fo ... r nested loops joins) 1.2) (7 points) Grace Hash Join (A) Reads in Partition phase = |R| + |S| = 20,000 Reads in Probe phase = |R| + |S| = 20,000 Total reads = 2 * (|R| + |S|) = 40,000 (B) Total writes = |R| + |S| = 20,000 1.3) (7 points) BNJ = 110,000 * 1 [reads; no writes] = 110,000 GHJ = 40,000 * 1 [reads] + 20,000 * X [writes] From BNJ = GHJ → 110,000 = 40,000 + 20,000 * 3.5, we get X = 3.5 So we should choose BNJ if X > 3.5, but GHJ if X < 3.5 Question 2 (20 points) 2.1) (4 points) B - 1 buckets 2.2) (4 points) Recursively apply hash-based projection technique to further split the buckets with different hash functions until no more partition overflow. 2.3) (4 points) (B - 1)^2 buckets 2.4) (4 points) Accelerate the record matching in memory or reduce CPU cost of record matching. 2.5) (4 points) No. In the probing phase, using the same hash function will assign each data record into the same bucket. No speeding up for join in the probing phase is obtained by using the same hash function. [Show More]
Last updated: 3 years ago
Preview 1 out of 3 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Apr 02, 2021
Number of pages
3
Written in
All
This document has been written for:
Uploaded
Apr 02, 2021
Downloads
0
Views
130
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·