Q.1 [36 pts, 12 pts each] Construct a B+ tree for each of the following parts...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q.1 [36 pts, 12 pts each] Construct a B+ tree for each of the following parts by inserting the following key values in the given order: 44, 20, 22, 32, 34, 46, 17, 38, 26, 18 You should use the insertion algorithm provided in the textbook. (a) The order of the tree (i.e., n) is 3 (i.e., cach node can hold 2 search key values). (b) The order of the tree is 1. (c) The order of the tree is 5. Q.2 [40 pts pts] Consider an extendable hash structure where buckets can hold 3 search key values. The entries with the key values listed below are inserted in the following order: 57, 28, 26, 98, 38, 79, 7, 109, 30 The hash function given is h(x)= x mod 16. The hash value of a search key is a 4-bit binary value. Use the most significant bit of the hash value during insertion. (a) [25 pts] Insertion of which key values leads to bucket splits? Which of those splits causes the bucket address table to double? (b) [15 pts] After inserting all key values, i. What is the global depth of the bucket address table? ii. What is the local depth of the bucket that contains 267 iii. What is the local depth of the bucket that contains 109? iv. What is the local depth of the bucket that contains 7? v. What is the local depth of the bucket that contains 79? Q.3 [24 pts] (a) [8 pts] If the size of a file is 5,000 pages, and the memory size is 50, what is the number of merge passes required to sort the file? (b) [16 pts] If the size of a file is 100,000, what is the minimum number of pages of memory required to sort the file in 2 merge passes? Q.1 [36 pts, 12 pts each] Construct a B+ tree for each of the following parts by inserting the following key values in the given order: 44, 20, 22, 32, 34, 46, 17, 38, 26, 18 You should use the insertion algorithm provided in the textbook. (a) The order of the tree (i.e., n) is 3 (i.e., cach node can hold 2 search key values). (b) The order of the tree is 1. (c) The order of the tree is 5. Q.2 [40 pts pts] Consider an extendable hash structure where buckets can hold 3 search key values. The entries with the key values listed below are inserted in the following order: 57, 28, 26, 98, 38, 79, 7, 109, 30 The hash function given is h(x)= x mod 16. The hash value of a search key is a 4-bit binary value. Use the most significant bit of the hash value during insertion. (a) [25 pts] Insertion of which key values leads to bucket splits? Which of those splits causes the bucket address table to double? (b) [15 pts] After inserting all key values, i. What is the global depth of the bucket address table? ii. What is the local depth of the bucket that contains 267 iii. What is the local depth of the bucket that contains 109? iv. What is the local depth of the bucket that contains 7? v. What is the local depth of the bucket that contains 79? Q.3 [24 pts] (a) [8 pts] If the size of a file is 5,000 pages, and the memory size is 50, what is the number of merge passes required to sort the file? (b) [16 pts] If the size of a file is 100,000, what is the minimum number of pages of memory required to sort the file in 2 merge passes?
Expert Answer:
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date:
Students also viewed these databases questions
-
Besides Executives, what other special groups (in terms of compensation) are there? How are these groups "special"? Is there any special groups in your organization's compensation?
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
A researcher wanted to find out if there was difference between older movie goers and younger movie goers with respect to their estimates of a successful actors income. The researcher first...
-
What type of business and industry is Fourevr Enterprises? What products or services do Fourevr Enterprises deliver?
-
A volume v of gas is confined in a cylinder, one end of which is closed by a movable piston. If A is the area in square inches of the face of the piston and x is the distance in inches from the...
-
Based on the GUI given below, (i) develop at least 10 validity checks (ii) design test cases for the validity checks (include both valid and invalid values).
-
Use the February information from the Work Together above. An income statement for Wightman Lumber is included in the Working Papers. Work independently to complete this problem. 1, Prepare Wightman...
-
1. Do you believe that the diagnosis and resulting profile prepared by Management Analysis Corporation were necessary steps in the process of finding a potentially successful group of general...
-
Which tool or resource did you find most interesting and why? Provide an example of how the tool you selected could be used as part of a security team's toolkit. What are some advantages and...
-
Handy Howard's Incorporated, is a student co-op. Handy Howard uses a perpetual Inventory system, The following transactions (summarized) have been selected for analysis: a. Sold merchandise for cash...
-
Using 'Accounting information', find tickers that meet following condition: # - Having low debt, represented by average debt ratio (=Total liabilities / Total Assets) belonging to bottom 10...
-
Consider the following differential equation: (1-x) dy dx dy 2x+2y=0 dx given the following initial conditions: y = 2 and dy / dx=1 at x =0. a. Use MATLAB to solve the above differential equation for...
-
1. Compute cost per completed unit for the current month2.Also the company budget cost per completed unit of 16.80. Does the cost per unit calculated for the current month indicated better or worse...
-
A 677-g quantity of a substance is at its melting point of -115.8C in the liquid state. The heat of fusion of ethanol is 1.68 x 105 J/kg, the molecular mass is 36.9 g/mol, and the ideal gas constant...
-
Salem Manufacturing currently uses a plantwide rate based on Direct Labour hours. It has two products, the Header and the Tailer. The Tailer is the more complex product, requiring 1 hour of direct...
-
consider two parallel rectangular conducting plates each of area A = 1.5 m separated by a distance d = 0.25 mm forming a parallel-plate capacitor. The region between the plates contains vacuum and...
-
On October 1 Computer Solutions purchased an office building for $523,000, which included land, building, and office equipment. The purchase was financed with a 30 year loan from the bank with an...
-
Design an experiment to demonstrate that RNA transcripts are synthesized in the nucleus of eukaryotes and are subsequently transported to the cytoplasm.
-
When do you use OLAP?
-
What is a LAN?
-
What is a three-tier architecture?
-
Burger King announced it would phase abused chicken out of its supply chain by 2024. The new standards include the requiring of higher-welfare strains of chickens, a reduction in the stocking density...
-
Ilectronics Inc. makes high-quality speakers for a variety of applications. Electronics Inc. is a St. Louis-based company but has significant manufacturing operations in China. When manufacturing...
-
Sony ('orp). launched its PlayStation 4 in late 2013. It was introduced at a price point of \(\$ 399\). At the time of introduction, a technology firm performed a tear-down of the PlayStation and...
Study smarter with the SolutionInn App