Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Q2. Give the optimal estimate for the disk-IO cost of r JOIN s using
(2.a) Sort-merge join, assuming that the two relations are sorted on the join attributes and r’s join attribute is a key
for r.
(2.b) Block nested loop join
Assume r has 2,000 tuples with 20 tuples per block; s has 4,000 tuples with 4 tuples per block; and the main memory
buffer for this operation is 22 blocks
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Question 1 Demonstrate the operation of quicksort using median of 3 and cutoffs of length 3 on the data below. Clearly show the result of each median of 3 process and each partitioning process. You do not need to show me the insertion sort process. 12 2 9 16 20 41 13 8 9 1 51 18 19 5 10 14 Full explain this question and text typing work only thanksarrow_forwardTransaction management deals with the problems of always keeping the database in a consistent state even when concurrent accesses and failures occur. Isolation requires that each transaction sees a consistent database at all times and that an executing transaction cannot reveal its results to other concurrent transactions before its commitment. ANSWER If two concurrent transactions access a data item that is being updated by one of them, it is not possible to guarantee that the second will read the correct value. Dirty reads and nonrepeatable reads may occur when one transaction can see intermediate results of another transaction before it has been committed.. Given below are two concurrent transactions T1 and T2 whose balances of amount x (balx) were recorded at times t, between t₁ and tg. As shown in the table below: If these two transactions interfere with each other, fill in the table below by selecting from the drop down list the values of balance X (bal,) at specified times…arrow_forwardThe Oracle database system uses undo log records to provide a snapshot view of the database under snapshot isolation. The snapshot view seen by transaction Ti reflects updates of all transactions that had committed when Ti started and the updates of Ti; updates of all other transactions are not visible to Ti. Describe a scheme for buffer handling whereby transactions are given a snapshot view of pages in the buffer. Include details of how to use the log to generate the snapshot view. You can assume that operations as well as their undo actions affect only one page.arrow_forward
- Suppose you need to sort a relation of 50 gigabytes, with 4 kilobyte blocks, using a memory size of 40 megabytes. Suppose the cost of a seek is 4 milliseconds, while the disk transfer rate is 50 megabytes per second. a. Find the cost of sorting the relation, in seconds, with bb = 100 b. How many merge passes are required?arrow_forwardIn this exercise we look at memory locality properties of matrix computation. The following code is written in MATLAB, where elements within the same column are stored contiguously. Assume each word is a 32-bit integer.for I = 1:8for J = 1:8000A[1][I]=B[J][J]+A[I][J];For each variable, identify whether or not it exhibits temporal locality.For each variable, identify whether or not it exhibits spatial locality.arrow_forwardWhat is the meaning of “Atomic” with regards to atomic transactions in relational databases? a. A correctly executed transaction is not susceptible to system failures. b. Concurrent execution of transactions does not lead to incorrect results. c. Execution of a transaction does not invalidate the data. d. a) A transaction is either executed completely or not at all. How does taxation handle the issue of spider traps while computing PageRank? a. a) It allows a random surfer to teleport to a random web page with a certain probability. b. It prevents a surfer from going to any web page that is part of a spider trap. c. It repositions a random surfer to the starting web page when it visits a web page that is part of a spider trap. d. None of the abovearrow_forward
- Consider the join r ▷◁ s of two relations r and s whose common attribute set is {A}. Physically, r is stored on 25 blocks and s on 21 blocks on the disk, tuples in both relations are unordered. Assume that the buffer pool allocated for carrying out the join has 3 frames. Compare block nested-loop join against merge join in facilitating r ▷◁ s by analyzing their I/O costs. The I/Os for exporting the final joined results to the disk is called the reporting cost, which shall be excluded from the calculation of the I/Os of r ▷◁ s, because the reporting costs of both nested-loop join and merge join cancel each other out in the comparison. Specifically, (a) Compute the # of I/Os, excluding the reporting cost, engaged by block nested-loop join. (b) Compute the # of I/Os, excluding the reporting cost, engaged by merge join in the worst-caseand best-case scenarios, respectively. Here a scenario indicates an instantiation of the tuples in rand s.arrow_forwardSuppose that you are running manually the Apriori algorithm to find the frequent itemsets in a given transaction database. Currently, you have determined the candidate set of 2-itemsets, C2, and the corresponding support count of each candidate 2-itemset. Assuming that the minimum support count is 3, which candidate 2-itemsets in C₂ would be frequent 2- itemsets? Select all that apply. {I1, I2), support count = 1 {I₁, I3}, support count 3 {I₁, I4}, support count = 3 {I2, I3), support count {I2, I4}, support count = 1 {I3, I4}, support count = 4 = 2arrow_forwardPlease answer the questionarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education