Assuming that a query has a buffer holding up to 3 blocks, and each block can hold two records. Use merge-sort to sort the following records in ascending order: 10, 11, 1, 5, 90, 1, 2, 101 (a) How many runs will be produced in the whole algorithm and what are the contents of the runs? (b) Clearly identify what the algorithm will do in each merge pass. (c) Over the entire course, how many blocks are transferred from the disk to the memory?
Assuming that a query has a buffer holding up to 3 blocks, and each block can hold two records. Use merge-sort to sort the following records in ascending order: 10, 11, 1, 5, 90, 1, 2, 101 (a) How many runs will be produced in the whole algorithm and what are the contents of the runs? (b) Clearly identify what the algorithm will do in each merge pass. (c) Over the entire course, how many blocks are transferred from the disk to the memory?
Chapter6: Additional Database Objects
Section: Chapter Questions
Problem 1HOA
Related questions
Question
Assuming that a query has a buffer holding up to 3 blocks, and each block can hold two records. Use merge-sort to sort the following records in ascending order: 10, 11, 1, 5, 90, 1, 2, 101
(a) How many runs will be produced in the whole
(b) Clearly identify what the algorithm will do in each merge pass.
(c) Over the entire course, how many blocks are transferred from the disk to the memory?
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
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 now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
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.Recommended textbooks for you
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)