Compute the number of internal pages

Assignment Help Computer Engineering
Reference no: EM132144441

Question :

Suppose we want to build a B+ tree that has space for 200,000 data entries in its leaf pages. Each data entry is made up of a key and its corresponding data value. Let us assume the following specifications.

Each page (leaf or internal) is 4096 bytes long. Each page holds three 8-byte pointers (parent, left sibling, right sibling) in addition to the bytes consumed by all of the keys and their accompanying 8-byte values.

(In the case of leaf pages, these "values" are simply pointers that locate the full data record corresponding to the key (e.g., customer record for the given key.)

We want to use an even number of data entries in the leaf pages. Internally, we also want an even number. The keys have unique values. For all of the following questions, show your work:

a) Suppose each key is 56 bytes long, and suppose we fill the leaf pages to capacity (i.e., as much as possible). Compute the number of leaf pages that we need.

b) Compute the number of internal pages, at each level, that we "need" (i.e., assume that you can fill the parents to capacity (to the maximum even number of keys)). This will result in a structure that has the fewest number of pages. Note, however, that the root can have as few as one key.

Reference no: EM132144441

Questions Cloud

What is the expected price of easy clean stock : What is the expected price of Easy Clean stock in Year 5 (i.e., FIND P5)? [NOTE: Be careful! Round dividend to nearest penny before calculating price.]
What is glude required rate of return : Glude Corp has a market beta of 1.20, a size beta of -0.30, and a value beta of 0.30. What is Glude's required rate of return using the Fama-French model.
Savings account for five years : Mary Smith has $10,000 that she can deposit into a savings account for five years. Bank A compounds interest annually, Bank B twice a year
What could be the possible error : Suppose that you are working with GPS data from an Excel spreadsheet and that you map it in ArcMap.
Compute the number of internal pages : Compute the number of internal pages, at each level, that we "need" (i.e., assume that you can fill the parents to capacity (to the maximum even number of keys)
How much should your client pay for this business : Based on this information, how much should your client pay for this business?
Deposit in his individual retirement : Your client wants to save $500,000 for his retirement. He plans to retire in 20 years. How much must he deposit in his individual retirement
Which of the following characterizes a market order : i. Which of the following characterizes a market order? a) A market order, which is considered a small order, is when 100 shares of a stock are ordered
How that the real data is transferred from the main memory : With neat sketch, explain and show how that the real data is transferred from the main memory to the MBR.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a declaration for a string variable called change

Write an assignment statement that computes the square root of var1, subtracts it from var2 and assigns the result to var3.

  Applications of the stream cipher and the block cipher

Examine the different types of applications of the stream cipher and the block cipher. Select the one (1) that you would prefer to use

  List a variable in the body mass index calculator program

What does it mean to say that Java is strongly typed language? List variable in Body Mass Index Calculator program that have class level scope, and explain why.

  Write an algorithm to decide which commute is cheaper

You want to decide whether you should drive your car to work or take the train. Write an algorithm to decide which commute is cheaper.

  How case tools improved the system development cycle

From your experiences define how CASE tools have improved the system development cycle. If you have no experience with CASE tools, how would you think they would improve the system development cycle?

  Floating-point numbers

1. Convert the 32-bit IEEE floating-point format number C43AF00016 into its decimal representation.

  How were cache directories implemented in memory hierarchy

Define the cache states used in Dash. How were the cache directories implemented in the memory hierarchy?

  How your organization should house its backups

Your organization has approximately 10TB of data, and you need to decide if your organization should have on-site or offsite tape storage.

  Why array names are not assignable variables in c

Why  array names are not assignable variables in c

  Make a template for a function called sum

Write down a template for a function called sum. The function should compute and return the sum of values passed in an array. Another argument send into the function should be the array length.

  What single range of ip addresses would the isp provide

Based on the above information, what single range of IP addresses would the ISP provide to SSK Software to best meet their needs - include the cost per year.

  Is statement a above legal or is casting required explain

What is an abstract class and how does it differ from a regular class? Is statement a above legal, or is casting required? Explain

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd