Explain why the time needed to do a typical B-tree operation

Assignment Help Computer Engineering
Reference no: EM131851215

Problem

1. If a key in a B-tree is not in a leaf, prove that both its immediate predecessor and immediate successor (under the natural order) are in leaves.

2. Suppose that disk hardware allows us to choose the size of a disk record any way we wish, but that the time it takes to read a record from the disk is a+bd, disk accesses where a and b are constants and d is the order of the B-tree. (One node in the B-tree is stored as one record on the disk.) Let n be the number of entries in the B-tree. Assume for simplicity that all the nodes in the B-tree are full (each node contains d - 1 entries).

(a) Explain why the time needed to do a typical B-tree operation (searching or insertion, for example) is approximately (a + bd)logd n.

(b) Show that the time needed is minimized when the value of d satisfies d(ln d-1)= a/b. (Note that the answer does not depend on the number n of entries in the B-tree.)

(c) Suppose a is 20 milliseconds and b is 0.1 millisecond. (The records are very short.) Find the value of d (approximately) that minimizes the time.

(d) Suppose a is 20 milliseconds and b is 10 milliseconds. (The records are longer.) Find the value of d (approximately) that minimizes the time.

Reference no: EM131851215

Questions Cloud

What is talent management : How would you do a complete background investigation on applicants to minimize concerns about negligent hiring?
What is the single most important leadership behavior : What is the single most important leadership behavior lacking in the organization and how is it negatively affecting employees?
Prepare net-present-value analysis of proposed long runway : Prepare a net-present-value analysis of the proposed long runway.
Write a method that will traverse a linked B-tree : Write a method that will traverse a linked B-tree, visiting all its entries in order traversal of keys (smaller keys first).
Explain why the time needed to do a typical B-tree operation : Explain why the time needed to do a typical B-tree operation (searching or insertion, for example) is approximately (a + bd)logd n.
How much should you be willing to pay for bond : Bond valuation Bond X is noncallable and has 20 years to maturity, 10% annual coupon and $1,000 par value. How much should you be willing to pay for Bond today.
How did welch motivate and inspire employees : Synthesize the following in your analysis of this case study relative to the second ten years that Welch was at the helm of GE.
What is the smallest number of entries : What is the smallest number of entries that, when inserted in an appropriate order, will force a B-tree of order 5 to have height 3 (that is, 3 levels)?
Determine project after-tax cash flows for time zero : Assuming a 40% effective federal and state income tax rate, determine project after-tax cash flows for time zero.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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