We compare the speed of searching a B-tree with a standard binary search tree (BST). If...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
We compare the speed of searching a B-tree with a standard binary search tree (BST). If there are n keys, let TBfree (n) and TBST(n) denote their worst case search times. We write TBST(n) = lgn, measured in some idealized time unit. NOTE: each time unit is less than e machine cycles for some moderate constant c> 1 (most likely, c < 40). A B-tree with n leaves has height at most loggn for some constant B2 2. Each internal node is stored in a disc block, and assume that the time to read or write a disc block is 1000 time units. In the search algorithm, assume that we read and write one disc block per level. Moreover, assume that it takes lg B time units to find the correct child in the next level of the search. (a) Write an expression for TBtree(n). (b) What is TBtree (nº) when n = 10° is 1 billion, and B = 500? Use the "Computer Science approximation of "Ig", e.g., Ig 1000 = 10, and lg 10º = 30. (c) Comparing TBST (n) and TBtree (n), my student Sharp exclaimed: we should NEVER use B-trees! If Mr.Sharp right, then it is a paradox to say that B-trees are very important! Explain this paradox. We compare the speed of searching a B-tree with a standard binary search tree (BST). If there are n keys, let TBfree (n) and TBST(n) denote their worst case search times. We write TBST(n) = lgn, measured in some idealized time unit. NOTE: each time unit is less than e machine cycles for some moderate constant c> 1 (most likely, c < 40). A B-tree with n leaves has height at most loggn for some constant B2 2. Each internal node is stored in a disc block, and assume that the time to read or write a disc block is 1000 time units. In the search algorithm, assume that we read and write one disc block per level. Moreover, assume that it takes lg B time units to find the correct child in the next level of the search. (a) Write an expression for TBtree(n). (b) What is TBtree (nº) when n = 10° is 1 billion, and B = 500? Use the "Computer Science approximation of "lg", e.g., Ig 1000 = 10, and lg 10⁰ = 30. (c) Comparing TBST (n) and TBtree (n), my student Sharp exclaimed: we should NEVER use B-trees! If Mr.Sharp right, then it is a paradox to say that B-trees are very important! Explain this paradox. We compare the speed of searching a B-tree with a standard binary search tree (BST). If there are n keys, let TBfree (n) and TBST(n) denote their worst case search times. We write TBST(n) = lgn, measured in some idealized time unit. NOTE: each time unit is less than e machine cycles for some moderate constant c> 1 (most likely, c < 40). A B-tree with n leaves has height at most loggn for some constant B2 2. Each internal node is stored in a disc block, and assume that the time to read or write a disc block is 1000 time units. In the search algorithm, assume that we read and write one disc block per level. Moreover, assume that it takes lg B time units to find the correct child in the next level of the search. (a) Write an expression for TBtree(n). (b) What is TBtree (nº) when n = 10° is 1 billion, and B = 500? Use the "Computer Science approximation of "Ig", e.g., Ig 1000 = 10, and lg 10º = 30. (c) Comparing TBST (n) and TBtree (n), my student Sharp exclaimed: we should NEVER use B-trees! If Mr.Sharp right, then it is a paradox to say that B-trees are very important! Explain this paradox. We compare the speed of searching a B-tree with a standard binary search tree (BST). If there are n keys, let TBfree (n) and TBST(n) denote their worst case search times. We write TBST(n) = lgn, measured in some idealized time unit. NOTE: each time unit is less than e machine cycles for some moderate constant c> 1 (most likely, c < 40). A B-tree with n leaves has height at most loggn for some constant B2 2. Each internal node is stored in a disc block, and assume that the time to read or write a disc block is 1000 time units. In the search algorithm, assume that we read and write one disc block per level. Moreover, assume that it takes lg B time units to find the correct child in the next level of the search. (a) Write an expression for TBtree(n). (b) What is TBtree (nº) when n = 10° is 1 billion, and B = 500? Use the "Computer Science approximation of "lg", e.g., Ig 1000 = 10, and lg 10⁰ = 30. (c) Comparing TBST (n) and TBtree (n), my student Sharp exclaimed: we should NEVER use B-trees! If Mr.Sharp right, then it is a paradox to say that B-trees are very important! Explain this paradox.
Expert Answer:
Answer rating: 100% (QA)
On the basis of the result one can say that we should never use the Btree But what will that person ... View the full answer
Related Book For
Modeling the Dynamics of Life Calculus and Probability for Life Scientists
ISBN: 978-0840064189
3rd edition
Authors: Frederick R. Adler
Posted Date:
Students also viewed these programming questions
-
For the following, calculate the NPV. Investment amount: ($100,000). Cash flows: Yr1: 25,000 Yr2: 38,000 Yr3: 44,000 Yr4: 28,000. Cost of capital: 15%
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Four hospitals located in one county are cooperating to establish a centralized blood-bank facility to serve them all. On an xy coordinate grid of the county, the hospitals are found at the following...
-
Are international strategies always just a special case of diversification strategies that a firm might pursue? What, if anything, is different about international strategies and diversification...
-
Construct approximate MO diagrams for [O 2 ] and [O 2 ] 2 and confirm that [O 2 ] is paramagnetic, while [O 2 ] 2 is diamagnetic.
-
True or False: The resonant natural frequency of a seismic transducer is in its lower useful range.
-
At the beginning of 2010, Ace Company had the following portfolio of investments in available-for-sale securities (common stock): During 2010 the following transactions occurred: May 3 Purchased C...
-
Provide an analysis of the impact of costs for an organization, to include the following: Describe an example of a sunk cost or opportunity cost from your current or past professional career,...
-
Who do you think is correct, Mark (the unload capacity should be twice as high) or Doug (the two lifts have the same capacity)? Can you give a response to Jessicais there any other difference between...
-
How do you calculate PV of Cash Flows and PV of Terminal Year? (CS Millions, except per share amounts) WACC PV of Cash Flows PV of Terminal Year Enterprise Value Less Net Debt (12/31/18) Equity...
-
Medial Summary: Categorizing information can help when you have a credit problem. The items below are problems consumers face when using credit. Directions: On the following chart, write the number...
-
A poled piezoelectric cylinder made using PZT-DOD type I material, of 5-mm diameter and 12-mm height, is subjected to a force of 700 N. What is the voltage generated across the height of the...
-
On January 1, 2024, Marigold Company purchased 8,568 shares of Swifty Company's common stock for $123,000. Immediately after the stock acquisition, the statements of financial position of Marigold...
-
7. In the coin-flipping situation of problem 1, what is P(H = 4| H is even)?
-
Find an explicit solution y(x), by using the given substitution then solving a linear ODE. dy dx SOLUTION: The chain rule gives du dx dy dx dy dx + y = y, y(0) X = X 1 du 3y dx X y=y=, y(1)=2. u= y....
-
What tools are available to compare companies that differ in size?
-
Create a data model for one of the processes in the end-of-chapter Exercises for Chapter 4. Explain how you would balance the data model and process model.
-
Find and graph the solutions of the following discrete-time dynamical systems for five steps with the given initial condition. Compare the graph of the solution with the graph of the updating...
-
The sample space is S = {0, 1, 2, 3, 4). Suppose that Pr({0}) = 0.2 Pr({1}) = 0.3 Pr({2}) = 0.4 Pr({3}) = 0.1 Pr({4}) = 0.0. Find Pr(A) and Pr(Ac) if A = {0, 1, 2} and Pr(B) if B = {0, 2, 4}. Is Pr(A...
-
What is the genotype at the eye color locus in the first generation? Often geneticists want to change one allele in an out-crossing organism while keeping the rest of the genome the same. For...
-
The equity section of Atrio Ltd. showed the following: share premium 6,101, share capitalordinary 925, share capitalpreference 58, retained earnings 7,420, and treasury shares 2,828. (All amounts are...
-
The following equity accounts are in the ledger of Eudaley Group at December 31, 2025. Instructions Prepare the equity section of the statement of financial position at December 31, 2025. Share...
-
Travis Mordica asks, Since share dividends dont change anything, why declare them? What is your answer to Travis?
Study smarter with the SolutionInn App