Estimate the height of the b plus tree

Assignment Help Database Management System
Reference no: EM1364810

Consider an inverted index containing, for each term, the posting list (i.e. the list of documents and occurrences within documents) for that term. The posting lists are accessed through a B+ tree with the terms serving as search keys. Each leaf of the B+ tree holds a sublist of alphabetically consecutive terms, and, with each term, a pointer to the posting list for that term.

Part a. An artificially small example of a B+ tree is shown here (pdf). (Note only part of the tree is shown in detail.) What nodes of the example B+ tree are visited to find the posting list for "dune"?

Part b. Suppose there are 2 million terms for a collection of 32 million documents of total size 200 gigabytes. We would like each internal node of the B+ tree and each leaf of the B+ tree to fit in one 8-kilobyte page of the file system. Recall that a B+ tree has a parameter m called the order of the tree, and each internal node of a B+ tree has between m+1 and 2m+1 children (except the root, which has between 2 and 2m+1). Assume that each term is represented using 16 bytes, and each pointer to a child in the tree or to a posting list is represented using 8 bytes. Find a value for the order m of the B+ tree so that one 8 kilobyte page can be assigned to each internal node and leaf, and so that an internal node will fill, but not overflow, its page when it has 2m+1 children. If you need to make additional assumptions, state what assumptions you are making.

Part c. For your m of Part b, estimate the height of the B+ tree. (Giving a range of heights is fine.) Also estimate the amount of memory needed to store the tree, including leaves but not including the posting lists themselves.

Part d. Estimate the aggregate size of the posting lists.

Reference no: EM1364810

Questions Cloud

Using expected monetary value as decision criterion : Bill Goodman has been offered the opportunity to invest $15,000 in a start-up company that intends to supply personal digital assistants to physicians in order to enable them to determine the approved medication for each HMO patient they treat.
Operations management-jacobs baby food company : Operations Management-Jacob's Baby Food Company - Jacob's Baby Food Company must go through the following steps to make mashed carrots
Explain the electric flux through the surface of the cube : explain the electric flux through the surface of the cube. Calculate the volume charge density of the atmosphere, assuming it to be uniform between 270 and 420 m.
Trends in medical practice in the united states : What do you consider the most important trends in medical practice in the U.S.? Discuss at least three major trends, and provide your assessment as to whether these are positive or negative trends for medical care in our country.
Estimate the height of the b plus tree : Estimate the height of the B+ tree. (Giving a range of heights is fine.) Also estimate the amount of memory needed to store the tree, including leaves but not including the posting lists themselves.
Operations management-oakwood outpatient clinic : Oakwood Outpatient Clinic is analyzing its operation in an effort to improve performance.
Describe the probability section of the risk management plan : Describe the probability and impacts section of the Risk Management Plan and justify the values assigned
Analyze four eras of business : Examine the four eras of business and make a prediction for what the next era will be like. Explain the rationale behind your prediction.
What is the resultant velocity of the motor boat : What is the resultant velocity of the motor boat. What distance downstream does the boat reach opposite shore.

Reviews

Write a Review

Database Management System Questions & Answers

  Explaining weak relationship and weak entity

What is meant by a weak relationship? Provide an example. What is meant by weak entity? What do you understand by relationship degree?

  Analyse a set of data and write a memo

To analyse a set of data, and write a memo, identifying and explaining your insights into the operation of Todd Restaurants.

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  List all pair of products names which are in same city

List the names of agents that placed an order for customer C003 or customer C006. List all pair of products names that are in the same city, along with their city name.

  Yrace history of the development of databases

In 500 words or less, trace the history of the development of databases beginning with pre-computer days to the present.

  Determining the matrix form of game

Assume a game with two players, A and B, who raise one or both hands concurrently. A wins if total number of hands raised is odd, and B wins in other way.Write down the matrix form of the game. Is there a pure strategy solution? Explain your answer..

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Represent data for sales of individual stores

Explain how you will visually represent the data for the sales of the individual stores and for the time period shown. You want to show the change in sales for each store over time for the past three years.

  Explain role of a database administrator

Explain the role of a database administrator,the tasks performed by this role and why this role is important in Database Management.

  Characteristics of relational database management system

Describe the characteristics of a Relational Database Management System (RDBMS).

  Create a database using oracle packaged procedure

Create a database using Oracle packaged procedure

  Number of leaf-level blocks needed if blocks are full

What is the order P of the B+-tree if B+-tree access structure on the key is constructed? What is the number of leaf-level blocks needed if blocks are approximately 69% full (round up for convenience)?

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